]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/t_plats.qc
Predator progress causes your prey progress to drop more quickly and the other way...
[voretournament/voretournament.git] / data / qcsrc / server / t_plats.qc
index 4a71a49adcecc32f5132cf60b7919204dc356e84..641bb564f9bda9f474c7b03548a9a94d40388f34 100644 (file)
@@ -412,7 +412,7 @@ void spawnfunc_func_bobbing()
        if (self.noise != "")\r
        {\r
                precache_sound(self.noise);\r
-               soundto(MSG_INIT, self, CHAN_TRIGGER, self.noise, VOL_BASE, ATTN_IDLE);\r
+               soundto(MSG_INIT, self, CHAN_TRIGGER, self.noise, VOL_BASE, ATTN_IDLE, 0);\r
        }\r
        if (!self.speed)\r
                self.speed = 4;\r
@@ -1404,8 +1404,14 @@ float SECRET_1ST_DOWN = 4;               // 1st move is down from arrow
 float SECRET_NO_SHOOT = 8;             // only opened by trigger\r
 float SECRET_YES_SHOOT = 16;   // shootable even if targeted\r
 \r
-\r
+// This is a bug in the code .. this is the HACK to work around the bug since casts don't exist yet.\r
+#ifdef GMQCC\r
+void fd_secret_use_core(entity, entity, float, float, vector, vector)\r
+#else\r
+void fd_secret_use();\r
+void fd_secret_use_core() { fd_secret_use(); }\r
 void fd_secret_use()\r
+#endif\r
 {\r
        local float temp;\r
        string message_save;\r
@@ -1455,6 +1461,12 @@ void fd_secret_use()
                sound(self, CHAN_TRIGGER, self.noise2, VOL_BASE, ATTN_NORM);\r
 };\r
 \r
+#ifdef GMQCC\r
+void fd_secret_use() {\r
+       fd_secret_use_core(nil, nil, nil, nil, nil, nil);\r
+}\r
+#endif\r
+\r
 // Wait after first movement...\r
 void fd_secret_move1()\r
 {\r
@@ -1610,7 +1622,7 @@ void spawnfunc_func_door_secret()
        {\r
                self.health = 10000;\r
                self.takedamage = DAMAGE_YES;\r
-               self.event_damage = fd_secret_use;\r
+               self.event_damage = fd_secret_use_core;\r
        }\r
        self.oldorigin = self.origin;\r
        if (!self.wait)\r
@@ -1660,7 +1672,7 @@ void spawnfunc_func_fourier()
        if (self.noise != "")\r
        {\r
                precache_sound(self.noise);\r
-               soundto(MSG_INIT, self, CHAN_TRIGGER, self.noise, VOL_BASE, ATTN_IDLE);\r
+               soundto(MSG_INIT, self, CHAN_TRIGGER, self.noise, VOL_BASE, ATTN_IDLE, 0);\r
        }\r
 \r
        if (!self.speed)\r
@@ -1797,7 +1809,7 @@ void spawnfunc_func_vectormamamam()
        if (self.noise != "")\r
        {\r
                precache_sound(self.noise);\r
-               soundto(MSG_INIT, self, CHAN_TRIGGER, self.noise, VOL_BASE, ATTN_IDLE);\r
+               soundto(MSG_INIT, self, CHAN_TRIGGER, self.noise, VOL_BASE, ATTN_IDLE, 0);\r
        }\r
 \r
        if(!self.targetfactor)\r