Left 4 Dead 2

Left 4 Dead 2

(MSC) All Melee Weapons Random Spawn
29 Comments
HeavyFromPootis(soupz) 16 Apr @ 9:42pm 
does this by chance allow the knife to spawn in the passing?
PR3TZELL 7 Jun, 2022 @ 3:02pm 
That's actually awesome. Can't wait to see how much they let us do!
[FoRcE]army_guy3  [author] 6 Jun, 2022 @ 1:21pm 
hey, sorry for late reply. My steam broke and didn't notify me of any new messages since last month. It finally crashed and when I started it, I had like 60 notifications.

I'm told from l4d2 developers that a feature has been approved that I asked for that will allow us to do more advanced things like loading melee scripts without the mission file.

However, I've also been told there is no ETA of this feature so it could be awhile.
PR3TZELL 16 May, 2022 @ 4:20pm 
It works! You have definitely fixed the crashing issue and it appears to work fine with most of my unlockers so that's fun. I'm assuming for this mod to function the official weapons must be in the melee list for their spawns to be replaced. I was wondering if there was a way for the spawns to be replaced without any official weapons being in the melee list for that campaign. Thanks for the fix!
[FoRcE]army_guy3  [author] 11 May, 2022 @ 8:09pm 
Hey, Can you test it again?

I found a stupid mistake I did in the auto load processor system for the MSC that could cause an infinite loop crash.

This caused crashes with srcds, but I don't know if it's the cause of the client crash.
PR3TZELL 10 May, 2022 @ 10:54am 
Still experiencing that same crash
[FoRcE]army_guy3  [author] 5 May, 2022 @ 7:59am 
Can you let me know if that still crashes?
PR3TZELL 29 Apr, 2022 @ 6:41pm 
eh about 33% maybe slightly less.
[FoRcE]army_guy3  [author] 29 Apr, 2022 @ 6:38pm 
about what % does it crash during loading?
PR3TZELL 29 Apr, 2022 @ 5:11pm 
So both the master script and this addon work fine independently. No crashes. However, when they are used in tandem, this results in the crash to desktop from the campaign loading screen.
PR3TZELL 29 Apr, 2022 @ 5:02pm 
I have deduced that I have no idea whats causing the crashes. I removed all of my addons and the problem is persisting with only the addons I have added being your scripts. Thanks for the help btw
[FoRcE]army_guy3  [author] 29 Apr, 2022 @ 4:54pm 
I mean addon. Can you link an addon that causes the crash.
PR3TZELL 29 Apr, 2022 @ 4:52pm 
Thats the thingg I have no idea whats causing the crash. None of my mods contain any vscripts. They onl;y add models, sounds, melee scripts, and modified mission scripts to the game. I don't know why there would be any conflicting scripts
[FoRcE]army_guy3  [author] 29 Apr, 2022 @ 12:52pm 
Can you link one script that causes crash?
PR3TZELL 29 Apr, 2022 @ 12:50pm 
As far as I know. I haven't had time to test it with all of my mods but I figured the random melee spawns would allow the custom weapons to spawn more frequently. Unfortunately the farthest I got was the loading screen before the game crashed to desktop. I looked into it and couldn't figure out what was conflicting.
[FoRcE]army_guy3  [author] 29 Apr, 2022 @ 12:45pm 
Did this crash start happening recently or has it always been there as far as you know?
PR3TZELL 29 Apr, 2022 @ 10:55am 
I haven't tried this with every one of the mods I've uploaded, but so far whenever you try to start a campaign with my mods (mission scripts + weapon pack) and this script with the master script, it stops loading midway and crashes the game. I am unsure what is causing this, but I'm assuming its the Master Script conflicting with something on my end. I only assume this because I extracted your script and paired it with a different scriptmode_addon.nut (PopTheseFools/Rectus's version) and It appeared to work fine with the custom weapons.
[FoRcE]army_guy3  [author] 29 Apr, 2022 @ 10:39am 
A crash for the person with your mod or a crash for other people that join them?

A crash with an error or just a CTD?

Which of your mods causes this issue?
PR3TZELL 29 Apr, 2022 @ 9:55am 
More specifically, when paired with some of the custom weapon mods I've uploaded it causes a crash.
PR3TZELL 28 Apr, 2022 @ 12:46pm 
Huge fan of this script! It works beautifully with official weapons, but I was wondering if there was a way to get this to work with custom melee weapons as well?
[FoRcE]army_guy3  [author] 14 Jan, 2022 @ 2:37pm 
I can look into it. :P
W 14 Jan, 2022 @ 2:34pm 
can you make a gun random spawn?
[FoRcE]army_guy3  [author] 28 Dec, 2020 @ 5:14pm 
If you pair this addon and that addon then yes you can.
LittleBigSmoak 28 Dec, 2020 @ 2:58pm 
That doesnt really answer if its possible though. I'm tired of just seeing pans and machetes
[FoRcE]army_guy3  [author] 28 Dec, 2020 @ 2:13pm 
The mapper chooses what melee weapons are loaded by default in the campaign.

This script randomizes melee weapons that are loaded into that specific campaign.

I do have another melee script that works with this that will load all melee weapons to official campaigns.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2203207388
LittleBigSmoak 28 Dec, 2020 @ 3:56am 
So does this make it so you could potentially find a fireaxe on the parish bridge instead of just frying pans and machetes?
[FoRcE]army_guy3  [author] 30 Oct, 2020 @ 7:53am 
The default of a weapon_melee_spawn is to use what the mapper set it to use. This script forces all spawners to use all precached melee scripts.
XxEeNnXxEeIi 30 Oct, 2020 @ 7:25am 
Is the default game still random all melee spawn normally?