How to get server var
Hello,
How can I get vars from the server in AngelScript ?
ie i want to have the actual server value of g_teams_maxplayers
thx
Jerm's
How can I get vars from the server in AngelScript ?
ie i want to have the actual server value of g_teams_maxplayers
thx
Jerm's
i would try to creaet a cVar object, the same way its done for a
new cvar, but with the name of one that already exists. probably
not the brightest idea... worth a shot tho.
aha, you can just use the variable maxPlayersPerTeam. it should be
set, if i interpret the source right ("game/g_ascript.c" also
readable here http://www.warsow.net/wiki/ind.....ion_C_file).
yes, i found that too but it seems that this variable is not
updated when you callvote maxteamplayers during the game.
i'll make a new test,
thx
i'll make a new test,
thx
cVar g_teams_maxplayers( "g_teams_pmaxplayers", "1",
CVAR_SERVERINFO|CVAR_ARCHIVE );
this seems to work, thx
this seems to work, thx

