]> de.git.xonotic.org Git - voretournament/voretournament.git/commitdiff
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 45bb087aac07774ba84a20a19117d4aa849f1d63..3a89ad46a23e2236117cf37f871afa17632a1e6b 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