git wants me to commit, so I will: begin using the improved kill delay code
authorFruitieX <fruitiex@gmail.com>
Sat, 11 Dec 2010 20:02:55 +0000 (22:02 +0200)
committerFruitieX <fruitiex@gmail.com>
Sat, 11 Dec 2010 20:02:55 +0000 (22:02 +0200)
qcsrc/server/cl_client.qc
qcsrc/server/defs.qh

index 274d5cc..6ac29a7 100644 (file)
@@ -1308,7 +1308,7 @@ void ClientKill_TeamChange (float targetteam) // 0 = don't change, -1 = auto, -2
        entity e;
        killtime = autocvar_g_balance_kill_delay;
 
-       if(g_race_qualifying)
+       if(g_race_qualifying || g_cts)
                killtime = 0;
 
        if(self.modelindex && self.deadflag == DEAD_NO)
@@ -1319,15 +1319,6 @@ void ClientKill_TeamChange (float targetteam) // 0 = don't change, -1 = auto, -2
 
        self.killindicator_teamchange = targetteam;
 
-    if(g_cts) // allow an instant kill in CTS
-    {
-        if(self.selfkilltime < time + 3) // prevent spam
-        {
-            self.selfkilltime = max(time, self.selfkilltime) + 2;
-            ClientKill_Now();
-        }
-        return;
-    }
     if(!self.killindicator)
        {
                if(killtime <= 0 || !self.modelindex || self.deadflag != DEAD_NO)
index 5338a10..76ce748 100644 (file)
@@ -659,5 +659,3 @@ float serverflags;
 .float freezetag_frozen;
 .float freezetag_beginrevive_time;
 .float freezetag_revive_progress;
-
-.float selfkilltime; // when to allow another selfkill in CTS