Update anims + no need to hold space in non realistic wallrunning

This commit is contained in:
Jonny_Bro (Nikita) 2023-08-02 22:34:56 +05:00
parent d28b7f67ec
commit 10d30b4ba0
No known key found for this signature in database
GPG key ID: 28B0D27F8DD5A4C9
7 changed files with 3 additions and 3 deletions

View file

@ -169,7 +169,7 @@ hook.Add("PopulateToolMenu", "Beatrun_ToolMenu", function()
panel:ControlHelp("Forces Purist Mode for all players")
panel:CheckBox("\"Realistic\" wallrunning", "Beatrun_PuristWallrun")
panel:ControlHelp("NOTE:\nYou wallrun a bit further")
panel:ControlHelp("You don't lose speed when starting wallrunning when disabled")
local divider = vgui.Create("DHorizontalDivider")
panel:AddItem(divider)

View file

@ -443,7 +443,7 @@ local function WallrunningCheck(ply, mv, cmd)
end
end
if mv:KeyDown(IN_JUMP) and not ply:OnGround() or mv:KeyPressed(IN_JUMP) then
if not ply:OnGround() or mv:KeyPressed(IN_JUMP) then
local tr = ply.WallrunTrace
local trout = ply.WallrunTraceOut
@ -484,7 +484,7 @@ local function WallrunningCheck(ply, mv, cmd)
end
end
if mv:KeyDown(IN_JUMP) and not ply:OnGround() or mv:KeyPressed(IN_JUMP) then
if not ply:OnGround() or mv:KeyPressed(IN_JUMP) then
local tr = ply.WallrunTrace
local trout = ply.WallrunTraceOut