Unnamed
public text v1 · immutablefunction GM:ScalePlayerDamage(player,hitgroup,dmginfo)
if not dmginfo:GetAttacker():IsPlayer() then return end
if dmginfo:GetAttacker():GetActiveWeapon():GetClass()=="weapon_stunstick" then
dmginfo:ScaleDamage(0)
end
return dmginfo
end
Timma:
function GM:ScalePlayerDamage(pl,hitgroup,dmginfo )
if not dmginfo:GetAttacker():IsPlayer() then return end
if dmginfo:GetAttacker():GetActiveWeapon():GetClass()=="weapon_stunstick" then
dmginfo:SetDamage(0)
end
end