Xonotic
sv_keepaway.qh
Go to the documentation of this file.
1 #pragma once
2 
4 #include <common/scores.qh>
5 void ka_Initialize();
6 
8 REGISTER_MUTATOR(ka, false)
9 {
12  {
14  field(SP_KEEPAWAY_PICKUPS, "pickups", 0);
15  field(SP_KEEPAWAY_CARRIERKILLS, "bckills", 0);
16  field(SP_KEEPAWAY_BCTIME, "bctime", SFL_SORT_PRIO_SECONDARY);
17  });
18 
19  ka_Initialize();
20  }
21  return false;
22 }
23 
24 const int KA_BALL_COUNT = 1;
25 
27 
30 
31 void ka_DamageEvent(entity this, entity inflictor, entity attacker, float damage, int deathtype, .entity weaponentity, vector hitloc, vector force);
32 
33 void ka_TouchEvent(entity this, entity toucher);
34 
35 void ka_DropEvent(entity plyr);
#define GameRules_scoring(teams, spprio, stprio, fields)
Definition: sv_rules.qh:53
void ka_Initialize()
Definition: sv_keepaway.qc:296
entity ka_Handler
Definition: sv_keepaway.qh:26
void havocbot_role_ka_collector(entity this)
Definition: sv_keepaway.qc:351
#define MUTATOR_STATIC()
Definition: base.qh:288
const int KA_BALL_COUNT
Definition: sv_keepaway.qh:24
REGISTER_MUTATOR(ka, false)
Definition: sv_keepaway.qh:8
const int SFL_SORT_PRIO_SECONDARY
Scoring priority (NOTE: PRIMARY is used for fraglimit)
Definition: scores.qh:126
entity() spawn
const int SFL_SORT_PRIO_PRIMARY
Definition: scores.qh:127
limitations: NULL cannot be present elements can only be present once a maximum of IL_MAX lists can e...
void havocbot_role_ka_carrier(entity this)
Definition: sv_keepaway.qc:328
void ka_DropEvent(entity plyr)
Definition: sv_keepaway.qc:187
vector(float skel, float bonenum) _skel_get_boneabs_hidden
#define MUTATOR_ONADD
Definition: base.qh:284
IntrusiveList g_kaballs
Definition: sv_keepaway.qh:7
void ka_TouchEvent(entity this, entity toucher)
Definition: sv_keepaway.qc:112
void(entity this) havocbot_role_ka_carrier
void ka_DamageEvent(entity this, entity inflictor, entity attacker, float damage, int deathtype,.entity weaponentity, vector hitloc, vector force)
Definition: sv_keepaway.qc:106