From 8b473445119d19f21fba8b9576beb903c0b762ed Mon Sep 17 00:00:00 2001 From: TimePath Date: Thu, 10 Dec 2015 13:19:11 +1100 Subject: [PATCH] wframe_send: stop sending switchdelay --- qcsrc/common/weapons/all.qc | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/qcsrc/common/weapons/all.qc b/qcsrc/common/weapons/all.qc index fc3bd9167..b18d6991a 100644 --- a/qcsrc/common/weapons/all.qc +++ b/qcsrc/common/weapons/all.qc @@ -562,8 +562,10 @@ NET_HANDLE(wframe, bool isNew) switch (viewmodel.state) { case WS_RAISE: + viewmodel.weapon_switchdelay = activeweapon.switchdelay_raise; + break; case WS_DROP: - viewmodel.weapon_switchdelay = ReadFloat(); + viewmodel.weapon_switchdelay = activeweapon.switchdelay_drop; break; default: viewmodel.weapon_switchdelay = 0; @@ -587,16 +589,6 @@ void wframe_send(entity actor, entity weaponentity, vector a, bool restartanim) WriteByte(channel, weaponentity.state); WriteFloat(channel, weaponentity.weapon_nextthink); WriteByte(channel, weaponentity.m_alpha * 255); - Weapon w = Weapons_from(actor.weapon); - switch (weaponentity.state) - { - case WS_RAISE: - WriteFloat(channel, w.switchdelay_raise); - break; - case WS_DROP: - WriteFloat(channel, w.switchdelay_drop); - break; - } } #endif -- 2.39.2