Garry's Mod

Garry's Mod

MW Base Weapon Drop Replacement Script (world spawns and npc drops randomizer)
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
Clefable_Recon ʕ º ᴥ ºʔ 24 Mar, 2024 @ 11:17am 
Also, another potential bug: picked up guns will despawn from your inventory after sprinting or changing between weapons. Any fix?
Omarb10legends 24 Mar, 2024 @ 11:06am 
Using ARccw weapons? The Npcs just use default half life 2 weapons, I don't give them anything custom.

I thought you needed the NPC support addon for this to work properly.
Clefable_Recon ʕ º ᴥ ºʔ 24 Mar, 2024 @ 11:05am 
still doesnt work for me. I have mgbase_precacheatts and mgbase_npc_drops_convert_to_mgbase all set to 1
Froze  [author] 24 Mar, 2024 @ 10:52am 
it works
Clefable_Recon ʕ º ᴥ ºʔ 24 Mar, 2024 @ 10:29am 
I suppose this does not work with unofficial compressed version of the Base?
Froze  [author] 23 Mar, 2024 @ 9:14pm 
the error is related to the NPC Support addon, i recommend using arccw for npcs not mwb
Froze  [author] 23 Mar, 2024 @ 7:38pm 
will look into the problem
Omarb10legends 23 Mar, 2024 @ 1:49pm 
Also, do you thin you could edit it so the hl2 .357 doesnt always spawn the .357 on mw base. maybe just convert to any pistol or different type of revolver?
Omarb10legends 23 Mar, 2024 @ 12:23pm 
[Modern Warfare 2019 SWEPs NPC Support] lua/mwbnpcweps/replace_weapons.lua:78: attempt to index a nil value
1. v - lua/mwbnpcweps/replace_weapons.lua:78
2. Run - lua/includes/modules/hook.lua:96
3. unknown - lua/includes/modules/weapons.lua:48


also this error
Omarb10legends 23 Mar, 2024 @ 12:22pm 
Froze just to let you, this addon is causing a problem where you're unable to select the RGL-80 as a player
Froze  [author] 12 Mar, 2024 @ 5:50am 
the addon creates the weapon right when an enemy dies if you use mgbase_npc_drops_convert_to_mgbase_method ON_KILLED so yes it will create lag when killing an enemy
OnlineFix Child Worker 10 Mar, 2024 @ 9:56am 
idk why but this mod causes a huge microstutter everytime i kill an npc
Froze  [author] 8 Oct, 2023 @ 12:03am 
updated, set it to mgbase_npc_drops_despawn_time 0
Froze  [author] 7 Oct, 2023 @ 11:59pm 
ty for the report will fix soon
jnasher 7 Oct, 2023 @ 8:48pm 
also theres no way to make the despawn timer infinite
jnasher 7 Oct, 2023 @ 8:46pm 
mgbase_npc_drops_despawn_time will unequip and then delete the weapon even if its inside of your inventory
Froze  [author] 30 Sep, 2023 @ 6:16am 
read the description and activate the console commands
engine 30 Sep, 2023 @ 4:59am 
0/10, does not work
Orgamorsh 21 Sep, 2023 @ 5:47pm 
What is that weapon pickup mod you have in the gif?
Frank Blaskovich 14 Aug, 2023 @ 11:29pm 
Thanks!
Froze  [author] 14 Aug, 2023 @ 10:40pm 
mgbase_npc_drops_despawn_time 1-9999 (seconds)
Froze  [author] 14 Aug, 2023 @ 10:35pm 
sure it'll be configurable through console.
Frank Blaskovich 14 Aug, 2023 @ 10:06pm 
Hope I'm not being too much of a bother, but is there anyway to make the guns despawn after a certain amount of time?
Frank Blaskovich 14 Aug, 2023 @ 9:53pm 
Thank you!!!!
Froze  [author] 14 Aug, 2023 @ 9:09pm 
sorry i forgot about this, now marksman drops have a 30% chance of turning into snipers
Frank Blaskovich 14 Aug, 2023 @ 7:27pm 
Thx
Froze  [author] 6 Aug, 2023 @ 9:16pm 
oh right, will be updated
Frank Blaskovich 6 Aug, 2023 @ 5:09pm 
Will this mod be updated to support the sniper rifles?
Froze  [author] 11 Jul, 2023 @ 6:28pm 
Great idea and doable, i will consider it but dunno if i have the time.
I4Q 11 Jul, 2023 @ 12:42pm 
Your addons for MWB are very impressive! Good job, thank you! I would like to ask if you have considered the idea of making a full-fledged system of slots for weapons. Now the player can carry a pistol and any second weapon to make a bias into realism. That is, there are only two slots available
Frank Blaskovich 5 Jul, 2023 @ 11:25am 
yess
Froze  [author] 5 Jul, 2023 @ 5:13am 
ok so weapons based on weapon_ar2 will have a 20% chance of becoming an LMG. that soudnds ok?
Froze  [author] 3 Jul, 2023 @ 7:03pm 
oh right yes will be implemented later
Frank Blaskovich 3 Jul, 2023 @ 1:27pm 
LMGs?
SuccMeSolidTV 18 May, 2023 @ 12:56pm 
having same issue as homedawg (solidus), there's no error or message resembling that when it happens
Froze  [author] 17 May, 2023 @ 8:07pm 
hmm i need to review my code first since there's no errors.
is there anything about "clientside (or cs) entity removed" in console?
Solidus 17 May, 2023 @ 8:02pm 
Not sure if its just me, but when using the ON_CREATION method, the weapons suddenly disappear after some time. Whether I pick them up or leave them on the ground, after a minute or two, they disappear.
Froze  [author] 18 Jan, 2023 @ 10:23pm 
some time later yes
Frank Blaskovich 18 Jan, 2023 @ 4:52pm 
Will this mod be updated to support the sniper rifles?