game_type_depending_stuff:
level.gametype=getcvar g_gametype
if (level.gametype == "2") //will be executed only in TDM
// if (level.gametype == "1") //will be executed only in FFA
{
your stuff here
}
end
I knew you guys would catch on quick! There are a lot of "cvars" you can "get" while the script is running. Start up a map and then type "cvarlist" in the console.
Hint: You can even change them (some of them) with "setcvar".
// set scoreboard messages
setcvar "g_obj_alliedtext1" "This game is: "
setcvar "g_obj_alliedtext2" "" (getcvar g_gametypestring)
I know what g_gametype is just didn't know what number for what gametype also I know you can set g_gametypestring in your script but can you start a map and change the g_gametype number . I mean that stock dm maps made into obj games for example you can run the map and change the g_gametypestring but the axis win does not work I think , so can you change the g_gametype and have it work the same as for an obj game .
I don't think you can run an objective game, if the bsp and script are in the dm folder--I could be wrong. Although, an objective game can be run as a roundbased game without moving the files.
The numbers are 1 - 4 in mohaa and correspond with the list on the multiplayer game selection screen.
I think you would need to make a custom script where objectives / none objectives are disabled or added. I run most of the stock maps as Tdm (including obj maps) which ive disabled the objective on and enabled respawning, and its set to win by kills which works fine.