[nexuiz-commits] r8378 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sun Dec 6 14:37:53 EST 2009
Author: div0
Date: 2009-12-06 14:37:53 -0500 (Sun, 06 Dec 2009)
New Revision: 8378
Modified:
trunk/data/qcsrc/server/extensions.qh
Log:
update docs of autocvars
Modified: trunk/data/qcsrc/server/extensions.qh
===================================================================
--- trunk/data/qcsrc/server/extensions.qh 2009-12-06 13:16:01 UTC (rev 8377)
+++ trunk/data/qcsrc/server/extensions.qh 2009-12-06 19:37:53 UTC (rev 8378)
@@ -568,6 +568,14 @@
//a savegame, have the cvar's current value, or the original value at time of
//saving, is UNDEFINED. Restoring a savegame however must not restore the
//cvar values themselves.
+//In case the cvar does NOT exist, then it is automatically created with the
+//value of the autocvar initializer, if given. This is possible with e.g.
+//frikqcc and fteqcc the following way:
+// var float autocvar_whatever = 42;
+//If no initializer is given, the cvar will be initialized to a string
+//equivalent to the NULL value of the given data type, that is, the empty
+//string, 0, or '0 0 0'. However, when automatic cvar creation took place, a
+//warning is printed to the game console.
//DP_QC_CHANGEPITCH
//idea: id Software
More information about the nexuiz-commits
mailing list