From 81dce2f203bac89194c0990d9d9d7d3bd57a8a22 Mon Sep 17 00:00:00 2001 From: "M.Millar" <62162171+mmillar-bolis@users.noreply.github.com> Date: Thu, 26 May 2022 10:58:51 -0700 Subject: [PATCH] Apply CROWBAR_FIX_RAPID_CROWBAR to knife (#251) This will apply the crowbar swing delay fix to the knife, preventing rapid melee. --- dlls/gearbox/knife.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/gearbox/knife.cpp b/dlls/gearbox/knife.cpp index 42df2821..9c76ebed 100644 --- a/dlls/gearbox/knife.cpp +++ b/dlls/gearbox/knife.cpp @@ -228,7 +228,12 @@ int CKnife::Swing(int fFirst) } m_pPlayer->m_iWeaponVolume = KNIFE_BODYHIT_VOLUME; if (!pEntity->IsAlive()) + { +#if CROWBAR_FIX_RAPID_CROWBAR + m_flNextPrimaryAttack = GetNextAttackDelay(0.25); +#endif return TRUE; + } else flVol = 0.1;