Don't run copybody for dead players in the stomach
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 27 Feb 2011 17:35:02 +0000 (19:35 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sun, 27 Feb 2011 17:35:02 +0000 (19:35 +0200)
data/qcsrc/server/cl_player.qc

index 45bb087..3a89ad4 100644 (file)
@@ -103,6 +103,10 @@ void WeaponStats_LogKill(float awep, float vwep)
 \r
 void CopyBody(float keepvelocity)\r
 {\r
+       // don't copybody for players inside the stomach\r
+       if(self.fakepredator.classname == "player")\r
+               return;\r
+\r
        local entity oldself;\r
        if (self.effects & EF_NODRAW)\r
                return;\r