Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --gives a 1:3 chance of NPCs dropping their primary weapon if they are shot in the right forearm or upper right arm. Pistols cannot be dropped.
- if npc and (bone_index == 33 or bone_index == 34) then
- rnd = math.random(1,3)
- if rnd == 2 then
- local active_item = npc:active_item()
- local no_drop_items = {bolt = true, wpn_knife = true, wpn_binoc = true, wpn_beretta = true, wpn_colt1911 = true, wpn_desert_eagle = true,
- wpn_fort = true, wpn_hpsa = true, wpn_pb = true, wpn_pm = true, wpn_sig220 = true, wpn_usp = true, wpn_walther = true}
- if active_item and not no_drop_items[active_item:section()] then
- npc:drop_item(active_item)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement