15 #define REGISTER_DEATHTYPE(id, msg_death, msg_death_by, extra) \ 16 REGISTER(Deathtypes, DEATH, id, m_id, new_pure(deathtype)) { \ 17 this.m_id += DT_FIRST; \ 18 this.nent_name = #id; \ 19 this.death_msgextra = extra; \ 20 this.death_msgself = msg_death; \ 21 this.death_msgmurder = msg_death_by; \ 35 #define DEATH_ISSPECIAL(t) (t >= DT_FIRST) 36 #define DEATH_IS(t, dt) (DEATH_ISSPECIAL(t) && (REGISTRY_GET(Deathtypes, t - DT_FIRST)) == dt) 37 #define DEATH_ENT(t) (DEATH_ISSPECIAL(t) ? (REGISTRY_GET(Deathtypes, t - DT_FIRST)) : NULL) 38 #define DEATH_ISVEHICLE(t) (DEATH_ISSPECIAL(t) && (REGISTRY_GET(Deathtypes, t - DT_FIRST)).death_msgextra == "vehicle") 39 #define DEATH_ISTURRET(t) (DEATH_ISSPECIAL(t) && (REGISTRY_GET(Deathtypes, t - DT_FIRST)).death_msgextra == "turret") 40 #define DEATH_ISMONSTER(t) (DEATH_ISSPECIAL(t) && (REGISTRY_GET(Deathtypes, t - DT_FIRST)).death_msgextra == "monster") 41 #define DEATH_WEAPONOF(t) (DEATH_ISSPECIAL(t) ? WEP_Null : REGISTRY_GET(Weapons, (t) & DEATH_WEAPONMASK)) 42 #define DEATH_ISWEAPON(t, w) (DEATH_WEAPONOF(t) == (w)) const int HITTYPE_SPLASH
automatically set by RadiusDamage
REGISTRY(Weapons, 72) STATIC_INIT(WeaponPickup)
#define REGISTRY_CHECK(id)
#define REGISTER_REGISTRY(id)
const int DEATH_WEAPONMASK
const int HITTYPE_ARMORPIERCE
#define REGISTRY_DEFINE_GET(id, null)
#define BIT(n)
Only ever assign into the first 24 bits in QC (so max is BIT(23)).
const int HITTYPE_SECONDARY
const int DEATH_HITTYPEMASK
string Deathtype_Name(int deathtype)