Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hook.Add( "EntityTakeDamage", "EntityDamageExample", function( target, dmginfo )
- local attacker = dmginfo:GetAttacker()
- if target:IsValid() and attacker:IsPlayer() then
- local actwep = attacker:GetActiveWeapon()
- if IsValid(actwe ) and actwep:GetClass() == "weapon_crowbar" then
- dmginfo:ScaleDamage( 5 )
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement