Xonotic
sv_tdm.qh File Reference
+ Include dependency graph for sv_tdm.qh:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

 REGISTER_MUTATOR (tdm, false)
 
void tdm_Initialize ()
 

Variables

int autocvar_g_tdm_point_leadlimit
 
int autocvar_g_tdm_point_limit
 
bool autocvar_g_tdm_team_spawns
 

Function Documentation

◆ REGISTER_MUTATOR()

REGISTER_MUTATOR ( tdm  ,
false   
)

Definition at line 9 of file sv_tdm.qh.

References MUTATOR_ONADD, MUTATOR_STATIC, and tdm_Initialize().

10 {
13  {
15  }
16  return 0;
17 }
#define MUTATOR_STATIC()
Definition: base.qh:288
#define MUTATOR_ONADD
Definition: base.qh:284
void tdm_Initialize()
Definition: sv_tdm.qc:53
+ Here is the call graph for this function:

◆ tdm_Initialize()

void tdm_Initialize ( )

Definition at line 53 of file sv_tdm.qc.

References autocvar_g_tdm_point_leadlimit, autocvar_g_tdm_point_limit, autocvar_g_tdm_team_spawns, GameRules_limit_lead(), GameRules_limit_score(), GameRules_spawning_teams(), GameRules_teams(), InitializeEntity(), NULL, and tdm_DelayedInit().

Referenced by REGISTER_MUTATOR().

54 {
55  GameRules_teams(true);
59 
60  InitializeEntity(NULL, tdm_DelayedInit, INITPRIO_GAMETYPE);
61 }
void GameRules_spawning_teams(bool value)
Used to disable team spawns in team modes.
Definition: sv_rules.qc:22
int autocvar_g_tdm_point_leadlimit
Definition: sv_tdm.qh:5
void GameRules_limit_score(int limit)
Definition: sv_rules.qc:34
bool autocvar_g_tdm_team_spawns
Definition: sv_tdm.qh:6
void GameRules_teams(bool value)
Definition: sv_rules.qc:6
#define NULL
Definition: post.qh:17
void InitializeEntity(entity e, void(entity this) func, int order)
Definition: world.qc:2146
void GameRules_limit_lead(int limit)
Definition: sv_rules.qc:44
void tdm_DelayedInit(entity this)
Definition: sv_tdm.qc:31
int autocvar_g_tdm_point_limit
Definition: sv_tdm.qh:4
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Variable Documentation

◆ autocvar_g_tdm_point_leadlimit

int autocvar_g_tdm_point_leadlimit

Definition at line 5 of file sv_tdm.qh.

Referenced by tdm_Initialize().

◆ autocvar_g_tdm_point_limit

int autocvar_g_tdm_point_limit

Definition at line 4 of file sv_tdm.qh.

Referenced by tdm_Initialize().

◆ autocvar_g_tdm_team_spawns

bool autocvar_g_tdm_team_spawns

Definition at line 6 of file sv_tdm.qh.

Referenced by tdm_Initialize().