Advertisement
Guest User

Untitled

a guest
Apr 4th, 2020
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. hook.Add( "EntityTakeDamage", "EntityDamageExample", function( target, dmginfo )
  2.     local attacker = dmginfo:GetAttacker()
  3.     if target:IsValid() and attacker:IsPlayer() then
  4.         local actwep = attacker:GetActiveWeapon()
  5.         if IsValid(actwe ) and actwep:GetClass() == "weapon_crowbar" then
  6.             dmginfo:ScaleDamage( 5 )
  7.         end
  8.     end
  9. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement