]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/mutators/gamemode_cts.qc
Allow turning off damage from lava and slime in instagib, as it used to be
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / mutators / gamemode_cts.qc
index 1c1ce481b787275dc96dceddf2acf86f5bcaa0d8..04c589ce181a3d920bd0bd744ff923eb08f7e4e3 100644 (file)
@@ -1,3 +1,10 @@
+#include "gamemode_cts.qh"
+#include "../_all.qh"
+
+#include "gamemode.qh"
+
+#include "../race.qh"
+
 // legacy bot roles
 .float race_checkpoint;
 void havocbot_role_cts()
@@ -96,7 +103,7 @@ MUTATOR_HOOKFUNCTION(cts_PlayerPhysics)
                                self.movement_y = -M_SQRT1_2 * wishspeed;
                }
        }
-       
+
        return false;
 }
 
@@ -130,7 +137,7 @@ MUTATOR_HOOKFUNCTION(cts_ResetMap)
                cvar_set("timelimit", ftos(race_timelimit));
                cts_ScoreRules();
        }
-       
+
        return false;
 }
 
@@ -148,7 +155,7 @@ MUTATOR_HOOKFUNCTION(cts_ClientConnect)
 {
        race_PreparePlayer();
        self.race_checkpoint = -1;
-       
+
        if(IS_REAL_CLIENT(self))
        {
                string rr = CTS_RECORD;
@@ -195,7 +202,7 @@ MUTATOR_HOOKFUNCTION(cts_PlayerSpawn)
        self.race_respawn_spotref = spawn_spot;
 
        self.race_place = 0;
-       
+
        return false;
 }
 
@@ -318,7 +325,7 @@ MUTATOR_DEFINITION(gamemode_cts)
 
        MUTATOR_ONREMOVE
        {
-               print("This is a game type and it cannot be removed at runtime.");
+               LOG_INFO("This is a game type and it cannot be removed at runtime.");
                return -1;
        }