mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-27 20:43:02 +05:00
hide mw base weapons on evade roll
This commit is contained in:
parent
9d5832a5e4
commit
102f7c4a14
1 changed files with 8 additions and 0 deletions
|
@ -76,6 +76,10 @@ 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
|
||||
RunConsoleCommand("mgbase_debug_vmrender", "1")
|
||||
end
|
||||
|
||||
local ang = cmd:GetViewAngles()
|
||||
|
||||
ply:SetViewOffset(Vector(0, 0, 64))
|
||||
|
@ -110,6 +114,10 @@ hook.Add("SetupMove", "EvadeRoll", function(ply, mv, cmd)
|
|||
net.WriteBool(true)
|
||||
net.Send(ply)
|
||||
end
|
||||
|
||||
if ply:Alive() and weapons.IsBasedOn(ply:GetActiveWeapon():GetClass(), "mg_base") then
|
||||
RunConsoleCommand("mgbase_debug_vmrender", "0")
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
|
|
Loading…
Reference in a new issue