Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function restricted_weapon()
- return {
- ["wpn_pm"] = true,
- ["wpn_midget"] = true
- }
- end
- local active_item = npc:active_item()
- if (active_item and hit.power >= 0.4 and bone_index == npc:get_bone_id("bip01_r_forearm")) then
- local restricted_weapon = restricted_weapon()
- if not (restricted_weapon[active_item]) then
- if (math.random(1,4) == 1) then
- npc:set_item(object.drop, active_item)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement