mirror of
https://github.com/JonnyBro/beatrun.git
synced 2024-12-27 20:43:02 +05:00
should fix server console spam
This commit is contained in:
parent
22a64cde04
commit
920501b258
2 changed files with 4 additions and 4 deletions
|
@ -24,7 +24,7 @@ if SERVER then
|
|||
else
|
||||
for l, b in ipairs(DATATHEFT_LOADOUTS[math.random(#DATATHEFT_LOADOUTS)]) do
|
||||
local wep = v:Give(b)
|
||||
v:GiveAmmo(1000, wep:GetPrimaryAmmoType())
|
||||
v:GiveAmmo(9999, wep:GetPrimaryAmmoType())
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -36,7 +36,7 @@ local function SafetyRollThink(ply, mv, cmd)
|
|||
end
|
||||
end
|
||||
|
||||
if ply:Alive() and ply:GetActiveWeapon():IsValid() and CurTime() > ply:GetSafetyRollTime() then
|
||||
if CLIENT and ply:Alive() and IsValid(ply:GetActiveWeapon()) and CurTime() > ply:GetSafetyRollTime() then
|
||||
if weapons.IsBasedOn(ply:GetActiveWeapon():GetClass(), "mg_base") then
|
||||
RunConsoleCommand("mgbase_debug_vmrender", "1")
|
||||
end
|
||||
|
@ -80,7 +80,7 @@ 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 ply:GetActiveWeapon():IsValid() then
|
||||
if CLIENT and ply:Alive() and IsValid(ply:GetActiveWeapon()) then
|
||||
if weapons.IsBasedOn(ply:GetActiveWeapon():GetClass(), "mg_base") then
|
||||
RunConsoleCommand("mgbase_debug_vmrender", "0")
|
||||
end
|
||||
|
@ -140,7 +140,7 @@ hook.Add("OnPlayerHitGround", "SafetyRoll", function(ply, water, floater, speed)
|
|||
|
||||
ParkourEvent("roll", ply)
|
||||
|
||||
if ply:Alive() and ply:GetActiveWeapon():IsValid() then
|
||||
if CLIENT and ply:Alive() and IsValid(ply:GetActiveWeapon()) then
|
||||
if weapons.IsBasedOn(ply:GetActiveWeapon():GetClass(), "mg_base") then
|
||||
RunConsoleCommand("mgbase_debug_vmrender", "0")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue