2 /*QUAKED spawnfunc_trigger_monoflop (.5 .5 .5) (-8 -8 -8) (8 8 8)
3 "Mono-flop" trigger gate... turns one trigger event into one "on" and one "off" event, separated by a delay of "wait"
5 void monoflop_use(entity this, entity actor, entity trigger)
7 this.nextthink = time + this.wait;
12 SUB_UseTargets(this, actor, trigger);
14 void monoflop_fixed_use(entity this, entity actor, entity trigger)
18 this.nextthink = time + this.wait;
21 SUB_UseTargets(this, actor, trigger);
24 void monoflop_think(entity this)
27 SUB_UseTargets(this, this.enemy, NULL);
30 void monoflop_reset(entity this)
36 spawnfunc(trigger_monoflop)
40 if(this.spawnflags & 1)
41 this.use = monoflop_fixed_use;
43 this.use = monoflop_use;
44 setthink(this, monoflop_think);
46 this.reset = monoflop_reset;