]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Fix a bug causing the exterior weapon entity to show on dead players. Apparently...
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 11 Sep 2010 10:53:33 +0000 (13:53 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 11 Sep 2010 10:53:33 +0000 (13:53 +0300)
data/qcsrc/server/cl_weaponsystem.qc

index 66c34c4bbb4f5536ea099c21ff7615ea45c2833b..8c927429d545691ff85fcaa6eed4d80615abdd3f 100644 (file)
@@ -253,7 +253,7 @@ float CL_ExteriorWeaponentity_CustomizeEntityForClient()
 {\r
        // hide the exterior weapon entity of a predator from their prey\r
        // otherwise, the stomach model the predator is transformed in (see Client_customizeentityforclient) will have a weapon model attached to it\r
-       if(self.owner.weaponname == "")\r
+       if(self.owner.weaponname == "" || self.owner.deadflag != DEAD_NO)\r
                return TRUE;\r
        if(other.cvar_chase_active > 0 || other.classname == "observer") // the classname check prevents a bug\r
        {\r