]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/triggers/trigger/flipflop.qc
Rename triggers to mapobjects
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / triggers / trigger / flipflop.qc
diff --git a/qcsrc/common/triggers/trigger/flipflop.qc b/qcsrc/common/triggers/trigger/flipflop.qc
deleted file mode 100644 (file)
index 141f3ea..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-#include "flipflop.qh"
-#ifdef SVQC
-/*QUAKED spawnfunc_trigger_flipflop (.5 .5 .5) (-8 -8 -8) (8 8 8) START_ENABLED
-"Flip-flop" trigger gate... lets only every second trigger event through
-*/
-void flipflop_use(entity this, entity actor, entity trigger)
-{
-    this.state = !this.state;
-    if(this.state)
-        SUB_UseTargets(this, actor, trigger);
-}
-
-spawnfunc(trigger_flipflop)
-{
-    if(this.spawnflags & START_ENABLED)
-    {
-        this.state = true;
-    }
-    this.use = flipflop_use;
-    this.reset = spawnfunc_trigger_flipflop; // perfect resetter
-}
-
-#endif