mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-27 20:43:02 +05:00
real
This commit is contained in:
parent
a9df972ee4
commit
5e5a80302b
1 changed files with 8 additions and 8 deletions
|
@ -13,8 +13,8 @@ local function SafetyRollThink(ply, mv, cmd)
|
|||
mv:SetButtons(bit.band(mv:GetButtons(), bit.bnot(IN_DUCK)))
|
||||
end
|
||||
|
||||
if ply:Alive() and CLIENT and CurTime() > ply:GetSafetyRollTime() and weapons.IsBasedOn(ply:GetActiveWeapon():GetClass(), "mg_base") then
|
||||
RunConsoleCommand("mgbase_debug_vmrender", "1")
|
||||
if ply:Alive() and CLIENT and CurTime() > ply:GetSafetyRollTime() then
|
||||
if weapons.IsBasedOn(ply:GetActiveWeapon():GetClass(), "mg_base") then RunConsoleCommand("mgbase_debug_vmrender", "1")end
|
||||
end
|
||||
|
||||
if CurTime() < ply:GetSafetyRollTime() then
|
||||
|
@ -76,8 +76,8 @@ 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 CLIENT and weapons.IsBasedOn(ply:GetActiveWeapon():GetClass(), "mg_base") then
|
||||
RunConsoleCommand("mgbase_debug_vmrender", "1")
|
||||
if ply:Alive() and CLIENT then
|
||||
if weapons.IsBasedOn(ply:GetActiveWeapon():GetClass(), "mg_base") then RunConsoleCommand("mgbase_debug_vmrender", "1") end
|
||||
end
|
||||
|
||||
local ang = cmd:GetViewAngles()
|
||||
|
@ -115,8 +115,8 @@ hook.Add("SetupMove", "EvadeRoll", function(ply, mv, cmd)
|
|||
net.Send(ply)
|
||||
end
|
||||
|
||||
if ply:Alive() and CLIENT and weapons.IsBasedOn(ply:GetActiveWeapon():GetClass(), "mg_base") then
|
||||
RunConsoleCommand("mgbase_debug_vmrender", "0")
|
||||
if ply:Alive() and CLIENT then
|
||||
if weapons.IsBasedOn(ply:GetActiveWeapon():GetClass(), "mg_base") then RunConsoleCommand("mgbase_debug_vmrender", "0") end
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
@ -138,8 +138,8 @@ hook.Add("OnPlayerHitGround", "SafetyRoll", function(ply, water, floater, speed)
|
|||
|
||||
ParkourEvent("roll", ply)
|
||||
|
||||
if ply:Alive() and CLIENT and weapons.IsBasedOn(ply:GetActiveWeapon():GetClass(), "mg_base") then
|
||||
RunConsoleCommand("mgbase_debug_vmrender", "0")
|
||||
if ply:Alive() and CLIENT then
|
||||
if weapons.IsBasedOn(ply:GetActiveWeapon():GetClass(), "mg_base") then RunConsoleCommand("mgbase_debug_vmrender", "0") end
|
||||
end
|
||||
|
||||
local ang = ply:EyeAngles()
|
||||
|
|
Loading…
Reference in a new issue