mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-28 12:53:02 +05:00
quickturn only with Runner Hands
This commit is contained in:
parent
bb172c12cf
commit
d2f29fb17f
2 changed files with 3 additions and 3 deletions
|
@ -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.
|
* SteamID in the right corner is no longer present.
|
||||||
|
|
||||||
## Notable changes and fixes done by the community
|
## 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 leaderboard sorting in gamemodes.
|
||||||
* Fixed grapple usage in courses and gamemodes.
|
* Fixed grapple usage in courses and gamemodes.
|
||||||
* Fixed a crash in DataTheft when touching data bank.
|
* Fixed a crash in DataTheft when touching data bank.
|
||||||
|
|
|
@ -54,7 +54,7 @@ end
|
||||||
local standpunch = Angle(-5, 0, 0)
|
local standpunch = Angle(-5, 0, 0)
|
||||||
|
|
||||||
local function Quickturn(ply, mv, cmd)
|
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 ply:GetWallrun() ~= 0 then
|
||||||
if mv:KeyDown(IN_BACK) and mv:KeyPressed(IN_JUMP) or ply:GetQuickturn() 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
|
||||||
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
|
if ply:GetWallrun() == 0 and not ply:OnGround() then
|
||||||
local eyedir = cmd:GetViewAngles()
|
local eyedir = cmd:GetViewAngles()
|
||||||
eyedir.x = 0
|
eyedir.x = 0
|
||||||
|
|
Loading…
Reference in a new issue