Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
sv_keepaway.qh
Go to the documentation of this file.
1#pragma once
2
4#include <common/scores.qh>
5
7
10{
13 {
15 {
16 field(SP_KEEPAWAY_PICKUPS, "pickups", 0);
17 field(SP_KEEPAWAY_CARRIERKILLS, "bckills", 0);
18 field(SP_KEEPAWAY_BCTIME, "bctime", SFL_SORT_PRIO_SECONDARY);
19 });
20
21 g_kaballs = IL_NEW();
22 entity ka_Handler = new_pure(ka_Handler);
23 setthink(ka_Handler, ka_Handler_CheckBall);
25 }
26 return false;
27}
28
31
32void ka_DamageEvent(entity this, entity inflictor, entity attacker, float damage, int deathtype, .entity weaponentity, vector hitloc, vector force);
33
35
36void ka_DropEvent(entity plyr);
#define MUTATOR_ONADD
Definition base.qh:309
#define REGISTER_MUTATOR(...)
Definition base.qh:295
#define MUTATOR_STATIC()
Definition base.qh:313
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
limitations: NULL cannot be present elements can only be present once a maximum of IL_MAX lists can e...
const int SFL_SORT_PRIO_SECONDARY
Scoring priority (NOTE: PRIMARY is used for fraglimit) NOTE: SFL_SORT_PRIO_SECONDARY value must be lo...
Definition scores.qh:133
const int SFL_SORT_PRIO_PRIMARY
Definition scores.qh:134
const int INITPRIO_SETLOCATION
Definition constants.qh:98
#define IL_NEW()
#define new_pure(class)
purely logical entities (not linked to the area grid)
Definition oo.qh:67
#define setthink(e, f)
vector
Definition self.qh:92
entity entity toucher
Definition self.qh:72
void
Definition self.qh:72
void havocbot_role_ka_collector(entity this)
void havocbot_role_ka_carrier(entity this)
void ka_Handler_CheckBall(entity this)
void ka_DropEvent(entity plyr)
void ka_DamageEvent(entity this, entity inflictor, entity attacker, float damage, int deathtype,.entity weaponentity, vector hitloc, vector force)
IntrusiveList g_kaballs
Definition sv_keepaway.qh:8
void ka_TouchEvent(entity this, entity toucher)
void ka_Handler_CheckBall(entity this)
#define GameRules_scoring(teams, spprio, stprio, fields)
Definition sv_rules.qh:58
void InitializeEntity(entity e, void(entity this) func, int order)
Definition world.qc:2209