#ifdef SVQC
.float triggerhealtime;
void trigger_heal_touch()
-{
+{SELFPARAM();
if (self.active != ACTIVE_ACTIVE)
return;
if (other.iscreature)
{
if (other.takedamage)
- if (!other.deadflag)
+ if (!IS_DEAD(other))
if (other.triggerhealtime < time)
{
EXACTTRIGGER_TOUCH;
{
other.health = min(other.health + self.health, self.max_health);
other.pauserothealth_finished = max(other.pauserothealth_finished, time + autocvar_g_balance_pause_health_rot);
- sound (other, CH_TRIGGER, self.noise, VOL_BASE, ATTEN_NORM);
+ _sound (other, CH_TRIGGER, self.noise, VOL_BASE, ATTEN_NORM);
}
}
}
}
-void spawnfunc_trigger_heal()
+spawnfunc(trigger_heal)
{
self.active = ACTIVE_ACTIVE;