Xonotic
sv_keyhunt.qh
Go to the documentation of this file.
1 #pragma once
2 
4 #define autocvar_g_keyhunt_point_limit cvar("g_keyhunt_point_limit")
7 void kh_Initialize();
8 
9 REGISTER_MUTATOR(kh, false)
10 {
13  {
14  GameRules_teams(true);
18 
19  kh_Initialize();
20  }
21  return 0;
22 }
23 
26 
27 #define FOR_EACH_KH_KEY(v) for(v = kh_worldkeylist; v; v = v.kh_worldkeynext )
28 
29 // ALL OF THESE should be removed in the future, as other code should not have to care
30 
31 // used by bots:
33 .entity kh_next;
34 
35 USING(kh_Think_t, void());
36 void kh_StartRound();
37 void kh_Controller_SetThink(float t, kh_Think_t func);
bool autocvar_g_keyhunt_team_spawns
Definition: sv_keyhunt.qh:6
bool kh_tracking_enabled
Definition: sv_keyhunt.qh:32
#define MUTATOR_STATIC()
Definition: base.qh:288
void GameRules_spawning_teams(bool value)
Used to disable team spawns in team modes.
Definition: sv_rules.qc:22
entity() spawn
void() kh_Think_t
Definition: sv_keyhunt.qh:35
void GameRules_limit_score(int limit)
Definition: sv_rules.qc:34
void kh_Initialize()
Definition: sv_keyhunt.qc:974
void kh_StartRound()
Definition: sv_keyhunt.qc:911
entity kh_worldkeylist
Definition: sv_keyhunt.qh:24
REGISTER_MUTATOR(kh, false)
Definition: sv_keyhunt.qh:9
int autocvar_g_keyhunt_point_leadlimit
Definition: sv_keyhunt.qh:5
void GameRules_teams(bool value)
Definition: sv_rules.qc:6
#define autocvar_g_keyhunt_point_limit
Definition: sv_keyhunt.qh:4
void GameRules_limit_lead(int limit)
Definition: sv_rules.qc:44
entity kh_worldkeynext
Definition: sv_keyhunt.qh:25
#define USING(name, T)
Definition: _all.inc:72
void kh_Controller_SetThink(float t, kh_Think_t func)
Definition: sv_keyhunt.qc:148
#define MUTATOR_ONADD
Definition: base.qh:284
entity kh_next
Definition: sv_keyhunt.qh:33