Garry's Mod
204 ψήφοι
NPCs / Players drop ammo on death
   
Βραβείο
Αγαπημένο
Αγαπημένο
Μη αγαπημένο
Content Type: Addon
Addon Type: Effects
Addon Tags: Fun, Realism
Μέγεθος αρχείου
Αναρτήθηκε
Ενημερώθηκε
27.454 KB
5 Ιουλ 2019, 10:03
16 Οκτ 2023, 9:20
31 σημειώσεις αλλαγών ( προβολή )

Συνδρομή για λήψη
NPCs / Players drop ammo on death

ΠΕΡΙΓΡΑΦΗ
Console Commands

ChanceOfAmmo Chance of ammo drops. ( Default is 100, value determines chances. 50 = 50% chance etc. Affects both NPC and player chances. )

NPCDropAmmo Should NPCs drop ammo. ( 1 = Yes 0 = No. Default is 1 )

NPCDropAltAmmo Should NPCs drop secondary ammo. ( 1 = Yes 0 = No. Default is 1 )

PlayerDropAmmo Should Players drop ammo. ( 1 = Yes 0 = No. Default is 1 )

PlayerDropAltAmmo Should Players drop secondary ammo. ( 1 = Yes 0 = No. Default is 1 )

DisableNPCWeaponDrop Prevent NPC's from dropping their weapons. ( 1 = Yes 0 = No. Default is 0 )

These options and more can be found under the 'NPC Drops' tab under settings.

What does it do?

When an NPC is killed, they will drop ammo depending on the options chosen by the player. Ammo types are based on HL2 ammo types (Pistol ammo, 357 ammo, SMG1 ammo etc.)

To modify these options, use the Ammo Drop Settings menu found under the NPC Drops tab.

If you are using ArcCW's "Replace default HL2 entities" command, this addon will automatically convert to ArcCW's custom ammo entities.
Δημοφιλείς συζητήσεις ΠΡΟΒΟΛΗ ΟΛΩΝ (1)
0
5 Αυγ 2019, 6:46
ΕΠΙΣΗΜΑΣΜΕΝΟ: Incase you want to create your own version
Sergeant Pan
68 σχόλια
Sergeant Pan  [Δημιουργός] 6 Ιαν, 23:04 
@WolfOS

That means you have an addon that is replacing the default HL2 ammo entities. If you're using something like Total Replacer to replace the ammo with something else then that is the source of the issue.
M. Winters 6 Ιαν, 15:16 
There's a weird bug with this addon, im not sure what exact concoction causes it to occur, but anytime i kill an enemy, some random spot on the map will eject a stack of ammo, typically of every single ammo type to exist in base game Half Life 2.
Sergeant Pan  [Δημιουργός] 31 Δεκ 2023, 11:40 
@Th3TopMuglet

Any NPC with a weapon that uses base HL2 ammo should work fine. I haven't tested this with VJ Base but there shouldn't be any problems.
Th3TopMuglet 31 Δεκ 2023, 9:58 
does this work on VJ base npcs
Ronnie1001 16 Οκτ 2023, 8:54 
Yes but that applies to all combine soldiers, not just the elites.
In HL2 only elites drop the AR2 orbs
Sergeant Pan  [Δημιουργός] 15 Οκτ 2023, 23:54 
@Ronnie1001

There's an option in Ammo Drop Settings to make only Combine Soldiers drop AR2 Orbs. It's under the "Disable AR2 Orb Drops" option.
Ronnie1001 15 Οκτ 2023, 15:22 
Sorry to ask something again but could you add a config to make only elites drop ar2 orbs (Like in hl2)
Ronnie1001 14 Οκτ 2023, 0:43 
I see, thanks for responding, its a bit annoying but more pistol ammo never hurt I suppose :steamhappy:
Sergeant Pan  [Δημιουργός] 14 Οκτ 2023, 0:40 
@Ronnie1001

If the weapons don't have ammo types defined then there's not much I can do. There's no real way to disable it, other than disabling pistol ammo drops (which affects all weapons.) Making a whole system for weapon-specific drops is beyond my capabilities.
Ronnie1001 13 Οκτ 2023, 23:32 
Npcs that have custom weapons default to dropping pistol ammo, could you disable this or possibly make it so that you can set what custom weapons drop which type of ammo?