void trigger_teleport_use(entity this, entity actor, entity trigger);
#define TDEATHLOOP(o) \
- entity head; \
- vector deathmin; \
- vector deathmax; \
- float deathradius; \
- deathmin = (o) + player.mins; \
- deathmax = (o) + player.maxs; \
+ vector deathmin = (o) + player.mins; \
+ vector deathmax = (o) + player.maxs; \
if(telefragmin != telefragmax) \
{ \
if(deathmin.x > telefragmin.x) deathmin.x = telefragmin.x; \
if(deathmax.y < telefragmax.y) deathmax.y = telefragmax.y; \
if(deathmax.z < telefragmax.z) deathmax.z = telefragmax.z; \
} \
- deathradius = max(vlen(deathmin), vlen(deathmax)); \
- for(head = findradius(o, deathradius); head; head = head.chain) \
- if(head != player) \
- if(head.takedamage) \
- if(boxesoverlap(deathmin, deathmax, head.absmin, head.absmax))
+ float deathradius = max(vlen(deathmin), vlen(deathmax)); \
+ for (entity head = findradius(o, deathradius); head; head = head.chain) \
+ if (head != player && head.takedamage && boxesoverlap(deathmin, deathmax, head.absmin, head.absmax))
float check_tdeath(entity player, vector org, vector telefragmin, vector telefragmax);
float tdeath_hit;
}
#define BEGIN_CHEAT_FUNCTION() \
- float cheating, attempting; \
- cheating = 0; attempting = 0
+ float cheating = 0, attempting = 0
#define DID_CHEAT() \
++cheating
#define ADD_CHEATS(e,n) \