From: MirceaKitsune Date: Thu, 17 Nov 2011 16:10:33 +0000 (+0200) Subject: Apply all properties of the weapon model to the display digits X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=94e7f3052a9c5a67175bd1b0f4a5f444cf48f209;p=voretournament%2Fvoretournament.git Apply all properties of the weapon model to the display digits --- diff --git a/data/qcsrc/server/cl_weaponsystem.qc b/data/qcsrc/server/cl_weaponsystem.qc index 590c42c3..e4fc0bd8 100644 --- a/data/qcsrc/server/cl_weaponsystem.qc +++ b/data/qcsrc/server/cl_weaponsystem.qc @@ -1589,12 +1589,20 @@ void W_DisplayThink() self = world; return; } - self.nextthink = time; if(gettagindex(self.owner.weaponentity, "weapon")) setattachment(self, self.owner.weaponentity, "weapon"); else if(gettagindex(self.owner.weaponentity, "tag_weapon")) setattachment(self, self.owner.weaponentity, "tag_weapon"); + self.origin_z = self.owner.weaponentity.weaponentity.origin_z; + self.scale = self.owner.weaponentity.weaponentity.scale; + self.effects = self.owner.weaponentity.weaponentity.effects; + self.alpha = self.owner.weaponentity.weaponentity.alpha; + self.colormap = self.owner.weaponentity.weaponentity.colormap; + self.colormod = self.owner.weaponentity.weaponentity.colormod; // used by the regurgitating colors + self.glowmod = self.owner.weaponentity.weaponentity.glowmod; + + self.nextthink = time; } void W_DisplaySetup(entity own, float num, float load)