]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Kill another re-spawn related gamemode specific reference or 2, also fix argument...
authorMario <mario@smbclan.net>
Mon, 6 Mar 2017 07:54:57 +0000 (17:54 +1000)
committerMario <mario@smbclan.net>
Mon, 6 Mar 2017 07:54:57 +0000 (17:54 +1000)
qcsrc/server/client.qc
qcsrc/server/mutators/mutator/gamemode_race.qc

index 5506a9d0fa353d290f71c6776ea5aa2a9e503adf..478ffaca9e22a62d0ee8e18416de451b65757bb5 100644 (file)
@@ -931,11 +931,9 @@ void ClientKill_TeamChange (entity this, float targetteam) // 0 = don't change,
 
        killtime = autocvar_g_balance_kill_delay;
 
-       if(g_race_qualifying || g_cts)
-               killtime = 0;
-
     if(MUTATOR_CALLHOOK(ClientKill, this, killtime))
        return;
+    killtime = M_ARGV(1, float);
 
        this.killindicator_teamchange = targetteam;
 
index c41586c0464d141bcdfb90c1840277688af2a52a..c4c8f087e495d388dfc360ca3cc895724894b771 100644 (file)
@@ -102,6 +102,12 @@ float WinningCondition_QualifyingThenRace(float limit)
        return wc;
 }
 
+MUTATOR_HOOKFUNCTION(rc, ClientKill)
+{
+       if(g_race_qualifying)
+               M_ARGV(1, float) = 0; // killtime
+}
+
 MUTATOR_HOOKFUNCTION(rc, AbortSpeedrun)
 {
        entity player = M_ARGV(0, entity);