Merge remote branch 'origin/master' into fruitiex/ctsfix
authorFruitieX <fruitiex@gmail.com>
Sat, 11 Dec 2010 19:53:03 +0000 (21:53 +0200)
committerFruitieX <fruitiex@gmail.com>
Sat, 11 Dec 2010 19:53:03 +0000 (21:53 +0200)
1  2 
defaultXonotic.cfg
qcsrc/server/autocvars.qh
qcsrc/server/cl_client.qc
qcsrc/server/miscfunctions.qc

Simple merge
Simple merge
@@@ -1300,18 -1306,15 +1311,24 @@@ void ClientKill_TeamChange (float targe
        if(g_race_qualifying)
                killtime = 0;
  
+       if(self.modelindex && self.deadflag == DEAD_NO)
+       {
+               killtime = max(killtime, self.clientkill_nexttime - time);
+               self.clientkill_nexttime = time + killtime + autocvar_g_balance_kill_antispam;
+       }
        self.killindicator_teamchange = targetteam;
  
 -      if(!self.killindicator)
 +    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)
                {
Simple merge