All pastes #911885 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-02-20 23:55 UTC
rendered paste body
function 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:
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