From bf30db96f468fab84ce8797af76db7218ca4a46e Mon Sep 17 00:00:00 2001 From: Lewdcifer <83784372+Lewdcifer@users.noreply.github.com> Date: Sun, 9 May 2021 22:14:52 +0800 Subject: [PATCH] Update Warp.cpp Made Flamethrower M1 to work with rapidfire (hopefully I didn't screw up anything cause I don't know how to code) --- src/hacks/Warp.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hacks/Warp.cpp b/src/hacks/Warp.cpp index 594c652a..4a3a5a1b 100644 --- a/src/hacks/Warp.cpp +++ b/src/hacks/Warp.cpp @@ -225,9 +225,9 @@ bool shouldRapidfire() // Mouse 1 is held, do it. bool buttons_pressed = current_user_cmd && current_user_cmd->buttons & IN_ATTACK; - // Unless we are on a flamethrower, where we only want m2. + // Unless we are on a flamethrower, where we want both m1 and m2. if (LOCAL_W->m_iClassID() == CL_CLASS(CTFFlameThrower)) - buttons_pressed = current_user_cmd && current_user_cmd->buttons & IN_ATTACK2; + buttons_pressed = current_user_cmd && current_user_cmd->buttons & (IN_ATTACK | IN_ATTACK2); if (g_pLocalPlayer->holding_sniper_rifle) {