X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Ftriggers%2Ftrigger%2Fheal.qc;h=5d4f2d0b3a2cf26a15508c630cc47bb19f90cc38;hb=c26d994a788be2bc2eadf6891da23916cf428311;hp=6d68610b5cf8ddb5afb7c2101a0b3ffacdb83f5b;hpb=153e558088db2813f7f7dd5367244b5470f4d425;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/triggers/trigger/heal.qc b/qcsrc/common/triggers/trigger/heal.qc index 6d68610b5..5d4f2d0b3 100644 --- a/qcsrc/common/triggers/trigger/heal.qc +++ b/qcsrc/common/triggers/trigger/heal.qc @@ -1,7 +1,7 @@ #ifdef SVQC .float triggerhealtime; void trigger_heal_touch() -{ +{SELFPARAM(); if (self.active != ACTIVE_ACTIVE) return; @@ -19,13 +19,13 @@ void trigger_heal_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;