3 #include "../gamemode.qh"
5 int autocvar_g_tdm_point_limit;
6 int autocvar_g_tdm_point_leadlimit;
7 bool autocvar_g_tdm_team_spawns;
8 void tdm_DelayedInit(entity this);
10 REGISTER_MUTATOR(tdm, false)
14 if (time > 1) // game loads at time 1
15 error("This is a game type and it cannot be added at runtime.");
16 InitializeEntity(NULL, tdm_DelayedInit, INITPRIO_GAMETYPE);
18 GameRules_teams(true);
19 GameRules_limit_score(autocvar_g_tdm_point_limit);
20 GameRules_limit_lead(autocvar_g_tdm_point_leadlimit);
21 GameRules_spawning_teams(autocvar_g_tdm_team_spawns);
24 MUTATOR_ONROLLBACK_OR_REMOVE
26 // we actually cannot roll back tdm_Initialize here
27 // BUT: we don't need to! If this gets called, adding always
33 LOG_INFO("This is a game type and it cannot be removed at runtime.");