diff --git a/quakec/fallout2/triggers.qc b/quakec/fallout2/triggers.qc index 8751d316d..4fceafba1 100644 --- a/quakec/fallout2/triggers.qc +++ b/quakec/fallout2/triggers.qc @@ -488,13 +488,22 @@ trigger_setskill ============================================================================== */ +void() trigger_skill_touch = +{ + if (other.classname != "player") + return; + + cvar_set ("skill", self.message); +}; + /*QUAKED trigger_setskill (.5 .5 .5) ? sets skill level to the value of "message". Only used on start map. */ void() trigger_setskill = { - remove (self); + InitTrigger (); + self.touch = trigger_skill_touch; };