From 94e7f3052a9c5a67175bd1b0f4a5f444cf48f209 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Thu, 17 Nov 2011 18:10:33 +0200 Subject: [PATCH] Apply all properties of the weapon model to the display digits --- data/qcsrc/server/cl_weaponsystem.qc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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) -- 2.39.2