Merge remote branch 'origin/master' into fruitiex/racefixes
authorFruitieX <rasse@rasse-laptop.(none)>
Tue, 26 Oct 2010 15:42:55 +0000 (18:42 +0300)
committerFruitieX <rasse@rasse-laptop.(none)>
Tue, 26 Oct 2010 15:42:55 +0000 (18:42 +0300)
1  2 
defaultXonotic.cfg
qcsrc/client/hud.qc
qcsrc/common/constants.qh
qcsrc/server/cl_client.qc
qcsrc/server/clientcommands.qc
qcsrc/server/defs.qh
qcsrc/server/g_world.qc

Simple merge
Simple merge
Simple merge
@@@ -1305,25 -1305,14 +1305,30 @@@ void ClientKill_TeamChange (float targe
  
  void ClientKill (void)
  {
-       ClientKill_TeamChange(0);
+       if((g_arena || g_ca) && ((champion && champion.classname == "player" && player_count > 1) || player_count == 1)) // don't allow a kill in this case either
+       {
+               // do nothing
+       }
+       else
+               ClientKill_TeamChange(0);
  }
  
 +void CTS_ClientKill_Think (void)
 +{
 +      self = self.owner; // set self to the player to be killed
 +      sprint(self, "^1You were killed in order to prevent cheating!");
 +      ClientKill_Now();
 +}
 +
 +void CTS_ClientKill (float t) // silent version of ClientKill
 +{
 +      entity e;
 +      e = spawn();
 +      e.owner = self;
 +      e.think = CTS_ClientKill_Think;
 +      e.nextthink = t;
 +}
 +
  void DoTeamChange(float destteam)
  {
        float t, c0;
Simple merge
Simple merge
Simple merge