hide mw base weapons when rolling

This commit is contained in:
Jonny_Bro (Nikita) 2023-09-08 21:40:09 +05:00
parent 30fb6bcf13
commit 0347a6f6e8

View file

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