Garry's Mod

Garry's Mod

217 ratings
MW Base Weapon Drop Replacement Script (world spawns and npc drops randomizer)
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Fun, Roleplay, Scenic
File Size
Posted
Updated
21.955 KB
5 Oct, 2022 @ 6:24am
24 Mar, 2024 @ 9:37pm
16 Change Notes ( view )

Subscribe to download
MW Base Weapon Drop Replacement Script (world spawns and npc drops randomizer)

Description
Enemies drop MW Base weapon corresponding to their held weapon.
Can also change world spawns.



use mgbase_precacheatts 1

Console Commands:
mgbase_npc_drops_randomize 1/0 (default set to 0)
Randomizes npc drop if the npc is already holding an MW base weapon.

mgbase_npc_drops_despawn_time 1-9999
Despawns the converted weapon after a set amount of seconds.

mgbase_convert_world_weapons 1/0
Replaces weapons spawned by the map.

mgbase_convert_world_weapons_delay 0-60
Delays the process of converting weapons.

mgbase_npc_drops_convert_to_mgbase 1/0

mgbase_npc_drops_convert_to_mgbase_randomize_atts 1/0

mgbase_npc_drops_convert_to_mgbase_method ON_KILLED / ON_CREATION
ON_KILLED means the weapon entity is created on kill, creating lag on every kill.
ON_CREATION means the weapon entity is created alongside the npc entity, creating lag when an npc is spawned. (mass lag on maps with large amounts of npcs)

mgbase_npc_drops_convert_to_mgbase_delayed_generate 1/0
When using ON_CREATION, every time an npc is created, set a 1 second delay that renews itself for every npc creation below 1 second, after npcs stopped spawning, start generating an MW base weapon on every spawned npc one by one with a delay. This will show progress of the entities spawning rather than just simply being frozen.


mgbase_npc_drops_cleanup_weapons
Removes all MW base weapons on the map.

mgbase_npc_drops_recreate_tables
In case NPCs aren't dropping weapons this might fix it.

If you want to donate:
[sociabuzz.com]it'd be very much appreciated and a huge motivation booster.


if you're interested in a personalized addon / want features added to a preexisting addon:
[forms.gle]


For questions, news, updates, etc: Discord[discord.gg]
96 Comments
Motloop 1 Jun @ 4:12am 
Can you make it for arc9?
Omarb10legends 22 Apr, 2024 @ 6:30pm 
hmm, well wouldn't those addons interfere with this?
Froze  [author] 22 Apr, 2024 @ 4:18pm 
mmm i think there's already a total replacer addon
Omarb10legends 22 Apr, 2024 @ 3:36pm 
One more thing I wanted to add, but have you every considered expanding this addon? Making it so like you can choose what weapons from any swep can be dropped, and what class they would fall into?

Not requesting, just a random idea. That will be on the drawing board.
Froze  [author] 25 Mar, 2024 @ 4:49pm 
@Omarb10 will consider
@Crafty_ will look into this
Clefable_Recon ʕ º ᴥ ºʔ 25 Mar, 2024 @ 4:07pm 
is it still normal for dropped guns to have incorrect type? Like an SMG1 is dropped as AR; pistol dropped as SMG
Omarb10legends 25 Mar, 2024 @ 6:30am 
I meant to say small chance, not smaller as they of course don't drop
Omarb10legends 25 Mar, 2024 @ 6:29am 
Froze I do have a question, do you think there would be a chance you could incorporate a chance that lmgs, or snipers have a smaller chance of spawning when dropped? It's something I've noticed that never drops for the time I've used this addon.


No i'm not demanding it, just asking if it's a possibility. Forgive me if it comes off annoying
Froze  [author] 24 Mar, 2024 @ 9:38pm 
fixed
tysm for reporting this bug has been in the addon since forever unnoticed hahaha
Froze  [author] 24 Mar, 2024 @ 9:16pm 
will look into this