mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-28 12:53:02 +05:00
hide mw base weapons when rolling
This commit is contained in:
parent
30fb6bcf13
commit
0347a6f6e8
1 changed files with 4 additions and 0 deletions
|
@ -13,6 +13,8 @@ local function SafetyRollThink(ply, mv, cmd)
|
|||
mv:SetButtons(bit.band(mv:GetButtons(), bit.bnot(IN_DUCK)))
|
||||
end
|
||||
|
||||
if CurTime() > ply:GetSafetyRollTime() and weapons.IsBasedOn(ply:GetActiveWeapon():GetClass(), "mg_base") then RunConsoleCommand("mgbase_debug_vmrender", "1") end
|
||||
|
||||
if CurTime() < ply:GetSafetyRollTime() then
|
||||
ply.FootstepLand = false
|
||||
|
||||
|
@ -126,6 +128,8 @@ hook.Add("OnPlayerHitGround", "SafetyRoll", function(ply, water, floater, speed)
|
|||
|
||||
ParkourEvent("roll", ply)
|
||||
|
||||
if (weapons.IsBasedOn(ply:GetActiveWeapon():GetClass(), "mg_base")) then RunConsoleCommand("mgbase_debug_vmrender", "0") end
|
||||
|
||||
local ang = ply:EyeAngles()
|
||||
local land = ply:GetVelocity()
|
||||
ang.x = 0
|
||||
|
|
Loading…
Reference in a new issue