3 /*QUAKED spawnfunc_trigger_monoflop (.5 .5 .5) (-8 -8 -8) (8 8 8)
4 "Mono-flop" trigger gate... turns one trigger event into one "on" and one "off" event, separated by a delay of "wait"
6 void monoflop_use(entity this, entity actor, entity trigger)
8 this.nextthink = time + this.wait;
13 SUB_UseTargets(this, actor, trigger);
15 void monoflop_fixed_use(entity this, entity actor, entity trigger)
19 this.nextthink = time + this.wait;
22 SUB_UseTargets(this, actor, trigger);
25 void monoflop_think(entity this)
28 SUB_UseTargets(this, this.enemy, NULL);
31 void monoflop_reset(entity this)
37 spawnfunc(trigger_monoflop)
41 if(this.spawnflags & MONOFLOP_FIXED)
42 this.use = monoflop_fixed_use;
44 this.use = monoflop_use;
45 setthink(this, monoflop_think);
47 this.reset = monoflop_reset;