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;
14 SUB_UseTargets(this, actor, trigger);
16 void monoflop_fixed_use(entity this, entity actor, entity trigger)
21 this.nextthink = time + this.wait;
24 SUB_UseTargets(this, actor, trigger);
27 void monoflop_think(entity this)
30 SUB_UseTargets(this, this.enemy, NULL);
33 void monoflop_reset(entity this)
39 spawnfunc(trigger_monoflop)
44 if (this.spawnflags & 1) {
45 this.use = monoflop_fixed_use;
47 this.use = monoflop_use;
49 setthink(this, monoflop_think);
51 this.reset = monoflop_reset;