From 358fa13ab368b3dd17a3d15d1a6b7ea14f5739ce Mon Sep 17 00:00:00 2001 From: JetBoom Date: Sat, 20 Dec 2014 12:20:04 -0500 Subject: [PATCH] Fix client side error when shooting player legs. --- gamemodes/zombiesurvival/gamemode/shared.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamemodes/zombiesurvival/gamemode/shared.lua b/gamemodes/zombiesurvival/gamemode/shared.lua index 95c51bb..074b7ee 100644 --- a/gamemodes/zombiesurvival/gamemode/shared.lua +++ b/gamemodes/zombiesurvival/gamemode/shared.lua @@ -456,7 +456,7 @@ function GM:ScalePlayerDamage(pl, hitgroup, dmginfo) end end - if (hitgroup == HITGROUP_LEFTLEG or hitgroup == HITGROUP_RIGHTLEG) and self:PlayerShouldTakeDamage(pl, dmginfo:GetAttacker()) then + if SERVER and (hitgroup == HITGROUP_LEFTLEG or hitgroup == HITGROUP_RIGHTLEG) and self:PlayerShouldTakeDamage(pl, dmginfo:GetAttacker()) then pl:AddLegDamage(dmginfo:GetDamage()) end end