17#define REGISTER_DEATHTYPE(id, msg_death, msg_death_by, msg_death_ent, msg_death_ent_by, extra) \
18 REGISTER(Deathtypes, DEATH, id, m_id, new_pure(deathtype)) { \
19 this.m_id += DT_FIRST; \
20 this.nent_name = #id; \
21 this.death_msgextra = extra; \
22 this.death_msgself = msg_death; \
23 this.death_msgmurder = msg_death_by; \
24 this.death_msg_ent_self = msg_death_ent; \
25 this.death_msg_ent_murder = msg_death_ent_by; \
39#define DEATH_ISSPECIAL(t) (t >= DT_FIRST)
40#define DEATH_IS(t, dt) (DEATH_ISSPECIAL(t) && (REGISTRY_GET(Deathtypes, t - DT_FIRST)) == dt)
41#define DEATH_ENT(t) (DEATH_ISSPECIAL(t) ? (REGISTRY_GET(Deathtypes, t - DT_FIRST)) : NULL)
42#define DEATH_ISVEHICLE(t) (DEATH_ISSPECIAL(t) && (REGISTRY_GET(Deathtypes, t - DT_FIRST)).death_msgextra == "vehicle")
43#define DEATH_ISTURRET(t) (DEATH_ISSPECIAL(t) && (REGISTRY_GET(Deathtypes, t - DT_FIRST)).death_msgextra == "turret")
44#define DEATH_ISMONSTER(t) (DEATH_ISSPECIAL(t) && (REGISTRY_GET(Deathtypes, t - DT_FIRST)).death_msgextra == "monster")
45#define DEATH_WEAPONOF(t) (DEATH_ISSPECIAL(t) ? WEP_Null : REGISTRY_GET(Weapons, (t) & DEATH_WEAPONMASK))
46#define DEATH_ISWEAPON(t, w) (DEATH_WEAPONOF(t) == (w))
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
const int HITTYPE_ARMORPIERCE
const int DEATH_WEAPONMASK
entity death_msg_ent_self
const int DEATH_HITTYPEMASK
string Deathtype_Name(int deathtype)
entity death_msg_ent_murder
const int HITTYPE_SECONDARY
#define REGISTER_REGISTRY(id)
#define REGISTRY(id, max)
Declare a new registry.
#define REGISTRY_CHECK(id)
#define REGISTRY_DEFINE_GET(id, null)