Advertisement
Guest User

Untitled

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