Although Q3A and Q3TA damage the player at the ticrate, CPMA and DeFRaG
hard-code trigger_hurt to 20hz (matching Q3A/Q3TA default ticrate) to
make gameplay consistent across all ticrates.
On higher ticrate servers, this fixes the torches on dfwc04-3, the lava
on ct3dm5, etc.
// only do the EXACTTRIGGER_TOUCH checks when really needed (saves some cpu)
if (toucher.iscreature)
{
- if (time >= toucher.triggerhurttime + ((q3compat && !(this.spawnflags & HURT_SLOW)) ? autocvar_sys_ticrate : 1))
+ if (time >= toucher.triggerhurttime + (q3compat && !(this.spawnflags & HURT_SLOW) ? 0.05 : 1))
{
EXACTTRIGGER_TOUCH(this, toucher);
toucher.triggerhurttime = time;