From d2f29fb17f2b288d60e1aed52587214a62849773 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Sun, 3 Sep 2023 15:36:48 +0500 Subject: [PATCH] quickturn only with Runner Hands --- README.md | 2 +- beatrun/gamemodes/beatrun/gamemode/sh/Quickturn.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8fe003a..c768065 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ All of the settings below can be changed in the configuration menu. * SteamID in the right corner is no longer present. ## Notable changes and fixes done by the community -* Made quick turnaround work only with `Unarmed`. +* Made QuickTurn work only with `Runner Hands`. * Fixed leaderboard sorting in gamemodes. * Fixed grapple usage in courses and gamemodes. * Fixed a crash in DataTheft when touching data bank. diff --git a/beatrun/gamemodes/beatrun/gamemode/sh/Quickturn.lua b/beatrun/gamemodes/beatrun/gamemode/sh/Quickturn.lua index b8fb59f..51c6b07 100644 --- a/beatrun/gamemodes/beatrun/gamemode/sh/Quickturn.lua +++ b/beatrun/gamemodes/beatrun/gamemode/sh/Quickturn.lua @@ -54,7 +54,7 @@ end local standpunch = Angle(-5, 0, 0) local function Quickturn(ply, mv, cmd) - local keypressed = mv:KeyPressed(IN_ATTACK2) + local keypressed = mv:KeyPressed(IN_ATTACK2) and ply:GetActiveWeapon():GetClass() == "runnerhands" if ply:GetWallrun() ~= 0 then if mv:KeyDown(IN_BACK) and mv:KeyPressed(IN_JUMP) or ply:GetQuickturn() then @@ -81,7 +81,7 @@ local function Quickturn(ply, mv, cmd) end end - if not ply:GetQuickturn() and not ply:GetJumpTurn() and not ply:GetCrouchJump() and not ply:GetGrappling() and keypressed and not mv:KeyDown(IN_MOVELEFT) and not mv:KeyDown(IN_MOVERIGHT) and (ply:GetWallrun() > 0 or not ply:OnGround() or ply:GetInfoNum("Beatrun_QuickturnGround", 0) == 1 and not ply:Crouching() and ply:GetActiveWeapon():GetClass() == "runnerhands") then + if not ply:GetQuickturn() and not ply:GetJumpTurn() and not ply:GetCrouchJump() and not ply:GetGrappling() and keypressed and not mv:KeyDown(IN_MOVELEFT) and not mv:KeyDown(IN_MOVERIGHT) and (ply:GetWallrun() > 0 or not ply:OnGround() or ply:GetInfoNum("Beatrun_QuickturnGround", 0) == 1 and not ply:Crouching()) then if ply:GetWallrun() == 0 and not ply:OnGround() then local eyedir = cmd:GetViewAngles() eyedir.x = 0