Advertisement
Guest User

Untitled

a guest
May 28th, 2015
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1.  
  2.  
  3. function restricted_weapon()
  4. return {
  5. ["wpn_pm"] = true,
  6. ["wpn_midget"] = true
  7. }
  8. end
  9.  
  10.  
  11. local active_item = npc:active_item()
  12. if (active_item and hit.power >= 0.4 and bone_index == npc:get_bone_id("bip01_r_forearm")) then
  13. local restricted_weapon = restricted_weapon()
  14. if not (restricted_weapon[active_item]) then
  15. if (math.random(1,4) == 1) then
  16. npc:set_item(object.drop, active_item)
  17. end
  18. end
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement