Xonotic
sv_domination.qh
Go to the documentation of this file.
1 #pragma once
2 
4 #define autocvar_g_domination_point_limit cvar("g_domination_point_limit")
8 
10 void dom_Initialize();
11 
12 REGISTER_MUTATOR(dom, false)
13 {
16  {
17  int fraglimit_override = autocvar_g_domination_point_limit;
20 
21  GameRules_teams(true);
22  GameRules_limit_score(fraglimit_override);
24 
26  }
27  return 0;
28 }
29 
30 // score rule declarations
31 const float ST_DOM_TICKS = 1;
32 const float ST_DOM_CAPS = 1;
33 
34 // pps: points per second
35 float total_pps;
36 float pps_red;
37 float pps_blue;
38 float pps_yellow;
39 float pps_pink;
40 
41 // capture declarations
43 .entity sprite;
44 .float captime;
45 
46 // misc globals
49 
50 void AnimateDomPoint(entity this);
void AnimateDomPoint(entity this)
#define MUTATOR_STATIC()
Definition: base.qh:288
IntrusiveList g_dompoints
Definition: sv_domination.qh:9
const float ST_DOM_CAPS
bool autocvar_g_domination_roundbased
Definition: sv_domination.qh:5
int autocvar_g_domination_point_leadlimit
Definition: sv_domination.qh:7
entity() spawn
void GameRules_limit_score(int limit)
Definition: sv_rules.qc:34
limitations: NULL cannot be present elements can only be present once a maximum of IL_MAX lists can e...
int autocvar_g_domination_roundbased_point_limit
Definition: sv_domination.qh:6
float total_pps
float pps_yellow
float domination_teams
float domination_roundbased
float pps_pink
REGISTER_MUTATOR(dom, false)
void GameRules_teams(bool value)
Definition: sv_rules.qc:6
entity sprite
const float ST_DOM_TICKS
float pps_red
void GameRules_limit_lead(int limit)
Definition: sv_rules.qc:44
void dom_Initialize()
float captime
float enemy_playerid
#define MUTATOR_ONADD
Definition: base.qh:284
float pps_blue
#define autocvar_g_domination_point_limit
Definition: sv_domination.qh:4