From ae369d1408c75c8309c2cb6cf2a74a67fc34a2cb Mon Sep 17 00:00:00 2001 From: div0 Date: Sun, 6 Dec 2009 19:37:53 +0000 Subject: [PATCH] update docs of autocvars git-svn-id: svn://svn.icculus.org/nexuiz/trunk@8378 f962a42d-fe04-0410-a3ab-8c8b0445ebaa --- data/qcsrc/server/extensions.qh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/data/qcsrc/server/extensions.qh b/data/qcsrc/server/extensions.qh index a5aa85a31..eb671bcdb 100644 --- a/data/qcsrc/server/extensions.qh +++ b/data/qcsrc/server/extensions.qh @@ -568,6 +568,14 @@ float(float a) tan = #475; // returns tangent value (which is simply sin(a)/cos( //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 -- 2.39.2