#ifdef SVQC
void trigger_hurt_use()
-{
+{SELFPARAM();
if(IS_PLAYER(activator))
self.enemy = activator;
else
.float triggerhurttime;
void trigger_hurt_touch()
-{
+{SELFPARAM();
if (self.active != ACTIVE_ACTIVE)
return;
self.enemy = world; // I still hate you all
}
- Damage (other, self, own, self.dmg, DEATH_HURTTRIGGER, other.origin, '0 0 0');
+ Damage (other, self, own, self.dmg, DEATH_HURTTRIGGER.m_id, other.origin, '0 0 0');
}
}
else if(other.damagedbytriggers)
if(other.takedamage)
{
EXACTTRIGGER_TOUCH;
- Damage(other, self, self, self.dmg, DEATH_HURTTRIGGER, other.origin, '0 0 0');
+ Damage(other, self, self, self.dmg, DEATH_HURTTRIGGER.m_id, other.origin, '0 0 0');
}
}
.entity trigger_hurt_next;
entity trigger_hurt_last;
entity trigger_hurt_first;
-void spawnfunc_trigger_hurt()
+spawnfunc(trigger_hurt)
{
EXACTTRIGGER_INIT;
self.active = ACTIVE_ACTIVE;
- self.move_touch = self.touch = trigger_hurt_touch;
+ self.touch = trigger_hurt_touch;
self.use = trigger_hurt_use;
self.enemy = world; // I hate you all
if (!self.dmg)