15 if(!
g_tdm || !this.
cnt) {
delete(
this);
return; }
25 this.
cnt = teamcolor - 1;
26 this.
team = teamcolor;
36 LOG_TRACE(
"No \"tdm_team\" entities found on this map, creating them anyway.");
65 M_ARGV(1,
string) =
"tdm_team";
#define MUTATOR_HOOKFUNCTION(...)
const int CBC_ORDER_EXCLUSIVE
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
const int INITPRIO_GAMETYPE
#define new_pure(class)
purely logical entities (not linked to the area grid)
void GameRules_limit_score(int limit)
void GameRules_teams(bool value)
void GameRules_limit_lead(int limit)
#define GameRules_spawning_teams(value)
Used to disable team spawns in team modes.
void tdm_SpawnTeam(string teamname, int teamcolor)
void tdm_DelayedInit(entity this)
int autocvar_g_tdm_teams_override
int autocvar_g_tdm_point_limit
int autocvar_g_tdm_point_leadlimit
bool autocvar_g_tdm_team_spawns
entity TeamBalance_CheckAllowedTeams(entity for_whom)
Checks whether the player can join teams according to global configuration and mutator settings.
void InitializeEntity(entity e, void(entity this) func, int order)