From c91f0c1da9b1da46e9202cd2b905d13396f26a03 Mon Sep 17 00:00:00 2001 From: BenCat07 Date: Fri, 26 Jan 2018 17:37:44 +0100 Subject: [PATCH] Fix se_shoot not working on flaregun --- src/hacks/LagExploit.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/hacks/LagExploit.cpp b/src/hacks/LagExploit.cpp index 7dbca7a9..8a70bfcb 100644 --- a/src/hacks/LagExploit.cpp +++ b/src/hacks/LagExploit.cpp @@ -158,8 +158,10 @@ void CreateMove() amount = 2 * 90; } } - else if (CanShoot() && bIsHolding && !bWasHolding) - amount = 1 * 90; + else if (CanShoot() && bIsHolding && !bWasHolding && g_pLocalPlayer->weapon()->m_iClassID != CL_CLASS(CTFFlareGun)) + amount = 1 * 90; + else if (CanShoot() && bIsHolding && !bWasHolding && g_pLocalPlayer->weapon()->m_iClassID == CL_CLASS(CTFFlareGun)) + amount = 2 * 90; else if (bWasHolding && !bIsHolding) amount = 1 * 90; @@ -172,8 +174,10 @@ void CreateMove() { if (not g_pLocalPlayer->holding_sniper_rifle) { - if (CanShoot() && bIsHolding && !bWasHolding) + if (CanShoot() && bIsHolding && !bWasHolding && g_pLocalPlayer->weapon()->m_iClassID != CL_CLASS(CTFFlareGun)) amount = 1 * 90; + else if (CanShoot() && bIsHolding && !bWasHolding && g_pLocalPlayer->weapon()->m_iClassID == CL_CLASS(CTFFlareGun)) + amount = 2 * 90; else if (bWasHolding && !bIsHolding) amount = 1 * 90; bWasHolding = (g_pUserCmd->buttons & IN_ATTACK) ||