Advertisement
Chewgum

Untitled

Feb 18th, 2013
57
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("ScaleNPCDamage", "x52_addon.ScaleNPCDamage", function(npc, hitgroup, dmginfo)
  2.     if (npc.x52_vendor) then
  3.         dmginfo:ScaleDamage(0.0)
  4.     end
  5. end)
  6.  
  7. hook.Add("EntityTakeDamage", "x52_addon.EntityTakeDamage", function(entity, dmginfo)
  8.         if (entity.x52_vendor) then
  9.                 dmginfo:ScaleDamage(0.0)
  10.         end
  11. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement