Page 1 of 1
gametype
Posted: Fri Aug 13, 2004 8:48 pm
by fuhrer
i need to change spawns depenging on the gametype but i cant remember the command to check which gametype u ur using,
something like if(gametype = 1) {do this} but cant remember exactly what it is or how to use it.
help pls
Posted: Fri Aug 13, 2004 8:54 pm
by Splaetos
its a cvar so you have to use getcvar g_gametype.
you can set it to a variable to use later, or just get the cvar when you need it...
level.current_gametype = (getcvar "g_gametype")
i think thats the syntax but im no expert.
Posted: Sat Aug 14, 2004 2:58 am
by Krane
The containerz map have different stuff for TDM and DM...check it out.
Maybe this will work for u
Posted: Sun Aug 15, 2004 3:12 am
by Ric-hard
local.spawn_for_gametype = getcvar "g_gametype"
if (local.spawn_for_gametype == "1")
{
good luck
}
Posted: Sun Aug 15, 2004 7:44 pm
by lizardkid
also admins or those with rcon can do this
rcon g_gametype x
x being:
1 = FFA
2 = TDM
3 = RB
4 = Obj
5 = TOW
6 = Lib
Posted: Sun Aug 15, 2004 9:25 pm
by At0miC
What is TOW and LiB?
Posted: Sun Aug 15, 2004 11:13 pm
by Splaetos
TOW is Tug of War - a Spearhead Game(very fun, but hard to find a good server - needs alot of people)
LIB is Liberation - originaly a Breakthrough gametype where people kileld are imprisoned and then can be released.
There are at least two lib maps for MOHAA tho =) one is the canal mod, and another is my map(soon to be released completely redone) =)