some minor fixes

This commit is contained in:
Jonny_Bro (Nikita) 2023-09-09 12:26:07 +05:00
parent 169aa9c694
commit 703e0f7ec9
2 changed files with 8 additions and 14 deletions

View file

@ -448,12 +448,7 @@ local worldarm = {
ladderclimbhangstart = true, ladderclimbhangstart = true,
snatchscar = true, snatchscar = true,
jumpcoil = true, jumpcoil = true,
jumpturnlandidle = true, jumpturnlandidle = true
water_swimfwd = true,
water_swimright = true,
water_swimleft = true,
water_swimback = true,
water_float = true
} }
local ignorezarm = { local ignorezarm = {
@ -463,12 +458,7 @@ local ignorezarm = {
hangfoldedheaveup = true, hangfoldedheaveup = true,
wallrunverticalstart = true, wallrunverticalstart = true,
diestandlong = true, diestandlong = true,
vaultontohigh = true, vaultontohigh = true
water_swimfwd = true,
water_swimright = true,
water_swimleft = true,
water_swimback = true,
water_float = true
} }
local nocyclereset = { local nocyclereset = {

View file

@ -13,7 +13,9 @@ local function SafetyRollThink(ply, mv, cmd)
mv:SetButtons(bit.band(mv:GetButtons(), bit.bnot(IN_DUCK))) mv:SetButtons(bit.band(mv:GetButtons(), bit.bnot(IN_DUCK)))
end end
if CurTime() > ply:GetSafetyRollTime() and weapons.IsBasedOn(ply:GetActiveWeapon():GetClass(), "mg_base") then RunConsoleCommand("mgbase_debug_vmrender", "1") end if ply:Alive() and CurTime() > ply:GetSafetyRollTime() and weapons.IsBasedOn(ply:GetActiveWeapon():GetClass(), "mg_base") then
RunConsoleCommand("mgbase_debug_vmrender", "1")
end
if CurTime() < ply:GetSafetyRollTime() then if CurTime() < ply:GetSafetyRollTime() then
ply.FootstepLand = false ply.FootstepLand = false
@ -128,7 +130,9 @@ hook.Add("OnPlayerHitGround", "SafetyRoll", function(ply, water, floater, speed)
ParkourEvent("roll", ply) ParkourEvent("roll", ply)
if (weapons.IsBasedOn(ply:GetActiveWeapon():GetClass(), "mg_base")) then RunConsoleCommand("mgbase_debug_vmrender", "0") end if ply:Alive() and weapons.IsBasedOn(ply:GetActiveWeapon():GetClass(), "mg_base") then
RunConsoleCommand("mgbase_debug_vmrender", "0")
end
local ang = ply:EyeAngles() local ang = ply:EyeAngles()
local land = ply:GetVelocity() local land = ply:GetVelocity()