X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fcommon%2Ftriggers%2Ftrigger%2Fmonoflop.qc;h=5129ce35cdf11d20dfd2b567ca2b6f1efbb9d26c;hp=45ce761e035d85a5b344828e26170458b1b514c5;hb=5b22584122d4354ab7819853d0fa5219d14d832e;hpb=716ff3ef08bec1385bfa04c0470ce7c332cb01e7 diff --git a/qcsrc/common/triggers/trigger/monoflop.qc b/qcsrc/common/triggers/trigger/monoflop.qc index 45ce761e03..5129ce35cd 100644 --- a/qcsrc/common/triggers/trigger/monoflop.qc +++ b/qcsrc/common/triggers/trigger/monoflop.qc @@ -3,7 +3,7 @@ "Mono-flop" trigger gate... turns one trigger event into one "on" and one "off" event, separated by a delay of "wait" */ void monoflop_use() -{ +{SELFPARAM(); self.nextthink = time + self.wait; self.enemy = activator; if(self.state) @@ -12,7 +12,7 @@ void monoflop_use() SUB_UseTargets(); } void monoflop_fixed_use() -{ +{SELFPARAM(); if(self.state) return; self.nextthink = time + self.wait; @@ -22,20 +22,20 @@ void monoflop_fixed_use() } void monoflop_think() -{ +{SELFPARAM(); self.state = 0; activator = self.enemy; SUB_UseTargets(); } void monoflop_reset() -{ +{SELFPARAM(); self.state = 0; self.nextthink = 0; } void spawnfunc_trigger_monoflop() -{ +{SELFPARAM(); if(!self.wait) self.wait = 1; if(self.spawnflags & 1)