From: MirceaKitsune Date: Sat, 11 Sep 2010 10:53:33 +0000 (+0300) Subject: Fix a bug causing the exterior weapon entity to show on dead players. Apparently... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fb6a3a8d5b5b0b7f327d38aa9fa6118f12c1eccd;p=voretournament%2Fvoretournament.git Fix a bug causing the exterior weapon entity to show on dead players. Apparently, CL_ExteriorWeaponentity_CustomizeEntityForClient was setting the model back when you were dead... not sure why. --- diff --git a/data/qcsrc/server/cl_weaponsystem.qc b/data/qcsrc/server/cl_weaponsystem.qc index 66c34c4b..8c927429 100644 --- a/data/qcsrc/server/cl_weaponsystem.qc +++ b/data/qcsrc/server/cl_weaponsystem.qc @@ -253,7 +253,7 @@ float CL_ExteriorWeaponentity_CustomizeEntityForClient() { // hide the exterior weapon entity of a predator from their prey // otherwise, the stomach model the predator is transformed in (see Client_customizeentityforclient) will have a weapon model attached to it - if(self.owner.weaponname == "") + if(self.owner.weaponname == "" || self.owner.deadflag != DEAD_NO) return TRUE; if(other.cvar_chase_active > 0 || other.classname == "observer") // the classname check prevents a bug {