From e1a11cbcb74fbc81c877020452c68de3002cbdce Mon Sep 17 00:00:00 2001 From: Steam Deck User Date: Fri, 13 Jan 2023 12:44:11 -0500 Subject: [PATCH] SERVER: Restore dual wield frame updates --- source/server/weapons/frames_core.qc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/server/weapons/frames_core.qc b/source/server/weapons/frames_core.qc index 72ed942..a50e258 100644 --- a/source/server/weapons/frames_core.qc +++ b/source/server/weapons/frames_core.qc @@ -107,11 +107,12 @@ void () W_Frame_Update = // note: call whenever weapon frames are called! if (self.anim_weapon_time > time) return; //don't call every frame, if it is the animations will play too fast + + if (IsDualWeapon(self.weapon)) + W2_Frame_Update(); self.anim_weapon_time = time + self.weapon_animduration; - - if (self.weaponframe != self.weaponframe_end && !self.anim_reversed) { // continue an animation @@ -161,7 +162,8 @@ void () W_Frame_Update = temp(S_RIGHT); } - W2_Frame_Update(); + if (!IsDualWeapon(self.weapon)) + W2_Frame_Update(); }; float(string path) model_should_hide_weapon2 =