aboutsummaryrefslogtreecommitdiff
path: root/gamemode/core/combat/sv_weaponswing.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/core/combat/sv_weaponswing.lua')
-rw-r--r--gamemode/core/combat/sv_weaponswing.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/gamemode/core/combat/sv_weaponswing.lua b/gamemode/core/combat/sv_weaponswing.lua
index 0b37c0a..29afd7a 100644
--- a/gamemode/core/combat/sv_weaponswing.lua
+++ b/gamemode/core/combat/sv_weaponswing.lua
@@ -91,6 +91,7 @@ end
--Create a fake thing in front of the player, do the swing animations, and record them.
concommand.Add("artery_recordanimations",function(ply,cmd,args)
+ if not ply:IsAdmin() then return end
local e = ply
e:SetAngles(Angle(0,0,0))
e:SetEyeAngles(Angle(0,0,0))
@@ -177,6 +178,7 @@ concommand.Add("artery_checkSwingable",function(ply,cmd,args)
end)
concommand.Add("artery_clearswingable",function(ply,cmd,args)
+ if not ply:IsAdmin() then return end
swingable = {}
end)