Fix client side error when shooting player legs.
This commit is contained in:
parent
6d6f98ba75
commit
358fa13ab3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue