Garry's Mod
94 voti
NPC Ammo Drops
   
Premio
Aggiungi ai preferiti
Preferito
Rimuovi dai preferiti
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun, Realism
Dimensioni del file
Pubblicato in data
Aggiornato in data
3.270 KB
23 feb, ore 12:38
29 feb, ore 17:13
3 note di rilascio ( visualizza )

Sottoscrivi per scaricare
NPC Ammo Drops

In 1 collezione di Coffee Man
Coffee Man's Gameplay-Enhancing Addons
61 elementi
Descrizione
Simple ammo drop system for Garry's Mod. Makes specific NPC types occasionally drop useful items when they're killed.

Doubles as an updated (albeit simplified) re-release of a now deleted addon.





Features:
  • npc_ammodrops 1 to enable NPC ammo drops.

  • When one of the allowed NPCs is killed, they have specific chances of dropping items. Each percentage chance is separate from one another, meaning that NPCs can end up dropping multiple items, if the chances trigger. The full list is:

    - 70% for a random Ammo Box (includes most Half Life 2 ammo types)
    - 20% for another random Ammo Box.
    - 15% for a Hand Grenade.
    - 20% for a Health Vial.
    - 20% for a Health Kit.
    - 25% for a Battery.

  • Only the following NPCs can drop items upon kill:

    - npc_combine_s
    - npc_metropolice
    - npc_zombie
    - npc_zombie_torso
    - npc_fastzombie
    - npc_fastzombie_torso
    - npc_poisonzombie
    - npc_zombine
    - npc_antlion
    - npc_antlion_worker
    - npc_hunter
    - npc_citizen
    - monster_human_assassin

  • Items spawn around the NPC's pelvis area, causing them to occasionally shoot off the NPC in a comical fashion.

Limitations:
  • This addon has only been tested for Single Player. There may be unnoticed bugs during multiplayer matches.

  • This public release is extremely simplified for compatibility reasons and does not include additional checks which gives the player items more dynamically. Weapon item drops were also removed.




Credits:


12 commenti
Fenix1080 18 nov, ore 11:06 
How can I activate this mode
Coffee Man  [autore] 7 mar, ore 5:30 
I won't add this option to the public addon as a lot of players are not going to like timed drops, and I'm too lazy to add customization options, but if you want to add it for yourself, you can download the addon and use:

timer.Simple(300, function()
if IsValid(ENTITYNAME) then
ENTITYNAME:Remove()
end
end)


Add it in every if section and replace ENTITYNAME with the name of the entity that drops for that particular if section. For that example, the timer is 300 seconds, so the entity would get removed after 300 seconds (or 5 minutes) if it's still valid on the map. You can change the 300 seconds to something else if you don't like it.
Autumnis 7 mar, ore 3:14 
Would it be possible to add a setting to make the items disappear after a bit?
Ygor 5 mar, ore 3:47 
i loved your video XD
Home (KOD) 1 mar, ore 17:17 
Would like to know if its possible to implement a setting that makes the random items only drop when scoring headshots on NPCs.
Coffee Man  [autore] 24 feb, ore 17:32 
😎👍
DISCOUNT CODE: BABBIT 24 feb, ore 16:58 
Understood. Keep up the good work on your stuff man, they're some pretty good QoL stuff for gameplay.
Coffee Man  [autore] 24 feb, ore 16:57 
It was that one, it was pretty outdated so I reworked it to fit in better for most general cases.
DISCOUNT CODE: BABBIT 24 feb, ore 16:56 
I think I noticed the deleted addon when searching through stuff to remove, was it in regards to NPC drops that you did, or. . .
im having cold visions 24 feb, ore 7:46 
naw naw IM not gonna KILL them...... the big booty combine will then ill just loot the corpses :steammocking: