This commit is contained in:
Jonny_Bro (Nikita) 2023-09-11 18:43:31 +05:00
parent a9df972ee4
commit 5e5a80302b

View file

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