4 /*QUAKED spawnfunc_trigger_flipflop (.5 .5 .5) (-8 -8 -8) (8 8 8) START_ENABLED
5 "Flip-flop" trigger gate... lets only every second trigger event through
7 void flipflop_use(entity this, entity actor, entity trigger)
9 if(this.active != ACTIVE_ACTIVE)
12 this.state = !this.state;
14 SUB_UseTargets(this, actor, trigger);
17 spawnfunc(trigger_flipflop)
19 this.active = ACTIVE_ACTIVE;
20 this.state = (this.spawnflags & START_ENABLED);
21 this.use = flipflop_use;
22 this.reset = spawnfunc_trigger_flipflop; // perfect resetter