quickturn only with Runner Hands

This commit is contained in:
Jonny_Bro (Nikita) 2023-09-03 15:36:48 +05:00
parent bb172c12cf
commit d2f29fb17f
2 changed files with 3 additions and 3 deletions

View file

@ -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.

View file

@ -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