Garry's Mod

Garry's Mod

97 次評價
NPC Ammo Drops
   
獎勵
加入最愛
已加入最愛
移除最愛
Content Type: Addon
Addon Type: Weapon
Addon Tags: Fun, Realism
檔案大小
發佈於
更新時間
3.270 KB
2024 年 2 月 23 日 下午 12:38
2024 年 2 月 29 日 下午 5:13
3 項更新註記 (檢視)

訂閱以下載
NPC Ammo Drops

在 Coffee Man 的 1 個收藏中
Coffee Man's Gameplay-Enhancing Addons
61 個項目
描述
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 則留言
Fenix1080 2024 年 11 月 18 日 上午 11:06 
How can I activate this mode
Coffee Man  [作者] 2024 年 3 月 7 日 上午 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 2024 年 3 月 7 日 上午 3:14 
Would it be possible to add a setting to make the items disappear after a bit?
Ygor 2024 年 3 月 5 日 上午 3:47 
i loved your video XD
Home (KOD) 2024 年 3 月 1 日 下午 5: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  [作者] 2024 年 2 月 24 日 下午 5:32 
😎👍
Ciel House 2024 年 2 月 24 日 下午 4:58 
Understood. Keep up the good work on your stuff man, they're some pretty good QoL stuff for gameplay.
Coffee Man  [作者] 2024 年 2 月 24 日 下午 4:57 
It was that one, it was pretty outdated so I reworked it to fit in better for most general cases.
Ciel House 2024 年 2 月 24 日 下午 4: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. . .
Kanye Letsplays 2024 年 2 月 24 日 上午 7:46 
naw naw IM not gonna KILL them...... the big booty combine will then ill just loot the corpses :steammocking: