Hey all,
why can I change sv_hostname without a "set", but g_allowvote needs a "set", otherwise it wont change?
Regards
Hey all,
why can I change sv_hostname without a "set", but g_allowvote needs a "set", otherwise it wont change?
Regards
timescale 0.01
Because sv_hostname is default set and used in the engine. g_allowvote is probably not set yet.
kung foo man (18th November 2012)
Undefined = need set
Defined = just cvar
No ... No ... this is not possible .......
kung foo man (30th January 2013)
If some var is already set as a cvar, it doesnt need set.
If it is not, cod will auto-assume its a command, thus it needs set.
This way you can fuck with players that do /quit a lot, by setclientcvar("quit","hehehe");. The client then would need to do /cmd quit in order to actually quit the game.
After the first set command of a cvar, future operations will not require the "set" prefix.
kung foo man (30th January 2013)