]> de.git.xonotic.org Git - voretournament/voretournament.git/blobdiff - data/qcsrc/server/cl_weaponsystem.qc
Add a cvar that allows disabling the vore system. Yes, it's the core part Vore Tourna...
[voretournament/voretournament.git] / 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