3 #include "../gamemode.qh"
5 #define autocvar_g_invasion_point_limit cvar("g_invasion_point_limit")
6 int autocvar_g_invasion_teams;
7 bool autocvar_g_invasion_team_spawns;
9 void invasion_Initialize();
11 REGISTER_MUTATOR(inv, false)
15 if (time > 1) // game loads at time 1
16 error("This is a game type and it cannot be added at runtime.");
18 invasion_Initialize();
20 cvar_settemp("g_monsters", "1");
22 SetLimits(autocvar_g_invasion_point_limit, autocvar_leadlimit_override, autocvar_timelimit_override, -1);
23 if (autocvar_g_invasion_teams >= 2)
26 if (autocvar_g_invasion_team_spawns)
27 have_team_spawns = -1; // request team spawns
31 MUTATOR_ONROLLBACK_OR_REMOVE
33 // we actually cannot roll back invasion_Initialize here
34 // BUT: we don't need to! If this gets called, adding always
40 LOG_INFO("This is a game type and it cannot be removed at runtime.");
56 float inv_monsters_perteam[17];
58 float inv_monsterskill;
60 const float ST_INV_KILLS = 1;