mirror of
https://github.com/JonnyBro/beatrun.git
synced 2025-01-31 12:07:27 +05:00
will it work?????????
This commit is contained in:
parent
a3a054a3af
commit
a9df972ee4
2 changed files with 5 additions and 5 deletions
|
@ -55,7 +55,7 @@ end
|
|||
local standpunch = Angle(-5, 0, 0)
|
||||
|
||||
local function Quickturn(ply, mv, cmd)
|
||||
local keypressed = mv:KeyPressed(IN_ATTACK2) and ply:Alive() and ply:GetActiveWeapon():GetClass() == "runnerhands"
|
||||
local keypressed = ply:Alive() and 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
|
||||
|
|
|
@ -13,7 +13,7 @@ local function SafetyRollThink(ply, mv, cmd)
|
|||
mv:SetButtons(bit.band(mv:GetButtons(), bit.bnot(IN_DUCK)))
|
||||
end
|
||||
|
||||
if ply:Alive() and CurTime() > ply:GetSafetyRollTime() and weapons.IsBasedOn(ply:GetActiveWeapon():GetClass(), "mg_base") then
|
||||
if ply:Alive() and CLIENT and CurTime() > ply:GetSafetyRollTime() and weapons.IsBasedOn(ply:GetActiveWeapon():GetClass(), "mg_base") then
|
||||
RunConsoleCommand("mgbase_debug_vmrender", "1")
|
||||
end
|
||||
|
||||
|
@ -76,7 +76,7 @@ end)
|
|||
|
||||
hook.Add("SetupMove", "EvadeRoll", function(ply, mv, cmd)
|
||||
if ply:GetJumpTurn() and ply:OnGround() and mv:KeyPressed(IN_BACK) then
|
||||
if ply:Alive() and weapons.IsBasedOn(ply:GetActiveWeapon():GetClass(), "mg_base") then
|
||||
if ply:Alive() and CLIENT and weapons.IsBasedOn(ply:GetActiveWeapon():GetClass(), "mg_base") then
|
||||
RunConsoleCommand("mgbase_debug_vmrender", "1")
|
||||
end
|
||||
|
||||
|
@ -115,7 +115,7 @@ hook.Add("SetupMove", "EvadeRoll", function(ply, mv, cmd)
|
|||
net.Send(ply)
|
||||
end
|
||||
|
||||
if ply:Alive() and weapons.IsBasedOn(ply:GetActiveWeapon():GetClass(), "mg_base") then
|
||||
if ply:Alive() and CLIENT and weapons.IsBasedOn(ply:GetActiveWeapon():GetClass(), "mg_base") then
|
||||
RunConsoleCommand("mgbase_debug_vmrender", "0")
|
||||
end
|
||||
end
|
||||
|
@ -138,7 +138,7 @@ hook.Add("OnPlayerHitGround", "SafetyRoll", function(ply, water, floater, speed)
|
|||
|
||||
ParkourEvent("roll", ply)
|
||||
|
||||
if ply:Alive() and weapons.IsBasedOn(ply:GetActiveWeapon():GetClass(), "mg_base") then
|
||||
if ply:Alive() and CLIENT and weapons.IsBasedOn(ply:GetActiveWeapon():GetClass(), "mg_base") then
|
||||
RunConsoleCommand("mgbase_debug_vmrender", "0")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue