round_handler_Spawn(Surv_CanRoundStart, Surv_CanRoundEnd, Surv_RoundStart);
round_handler_Init(5, autocvar_g_surv_warmup, surv_timetobeat);
EliminatedPlayers_Init(Surv_IsEliminated);
- ActivateTeamplay();
- SetLimits(autocvar_g_surv_point_limit, autocvar_g_surv_point_leadlimit,
- autocvar_timelimit_override, -1);
+ GameRules_teams(true);
+ GameRules_limit_score(autocvar_g_surv_point_limit);
+ GameRules_limit_lead(autocvar_g_surv_point_leadlimit);
}
/// \brief Returns the name of the template of the given player.
REGISTER_MUTATOR(surv, false)
{
+ MUTATOR_STATIC();
MUTATOR_ONADD
{
- if (time > 1) // game loads at time 1
- {
- error("This is a game type and it cannot be added at runtime.");
- }
Surv_Initialize();
}
-
- MUTATOR_ONROLLBACK_OR_REMOVE
- {
- // we actually cannot roll back dm_Initialize here
- // BUT: we don't need to! If this gets called, adding always
- // succeeds.
- }
-
- MUTATOR_ONREMOVE
- {
- error("This is a game type and it cannot be removed at runtime.");
- return -1;
- }
-
return 0;
}