Left 4 Dead 2

Left 4 Dead 2

Custom Scripted Weapons
179 Comments
Rectus  [author] 22 Mar @ 4:20pm 
See the FAQ posts in the mod pages for troubleshooting tips.
SnowyTavera 22 Mar @ 4:03pm 
no me aparce el mod enla workshop
Rectus  [author] 18 Jan, 2022 @ 11:59am 
Whoa, that's some dedication. Great job!
potat 13 Jan, 2022 @ 12:56am 
nvm its working now sorry
Rectus  [author] 12 Jan, 2022 @ 12:14am 
When the map loads, does it print the names of the custom weapons to console in blue text?
potat 11 Jan, 2022 @ 10:48pm 
still not working :(
Rectus  [author] 11 Jan, 2022 @ 2:02am 
Make sure you are playing on a loncal server on an official map, and you don't have any other mods interfering.
potat 11 Jan, 2022 @ 1:58am 
i cant spawn all the wepons
it just says NULL Ent 'weapon_m72law' in GiveNamedItem! in the console
and also only the bow and the rocket launcher spawns the others do not
help pls thx
SupremeJustice63 25 Dec, 2021 @ 1:26pm 
okay sorry
Rectus  [author] 25 Dec, 2021 @ 1:24pm 
If it modifies melee weapons, it likely will not be possible.
SupremeJustice63 25 Dec, 2021 @ 1:23pm 
ah

any idea if this mod could work around it?
Rectus  [author] 25 Dec, 2021 @ 1:19pm 
No idea. Most conflicting mods add new melee weapons or modify them, so if it does that there is a big chance it will.
SupremeJustice63 25 Dec, 2021 @ 1:16pm 
does this still conflict with Drop the treasure mod?
Rectus  [author] 24 Dec, 2021 @ 2:40am 
It should be fixed now.
Rectus  [author] 24 Dec, 2021 @ 2:14am 
Thanks, I'll fix it then.
PöpThèséFøøls 24 Dec, 2021 @ 2:12am 
It does, can't play survival mode: says "download add-on"
also by removing these excessive lines fixed laser pack spawn ability on DC
Rectus  [author] 24 Dec, 2021 @ 2:11am 
Heh, looks like I must have pasted an entire copy of the script in there. Luckily it's there in a way that still makes it parse correctly, and just adds extra keys the game doesn't do anything with. It doesn't seem to do any harm, so I don't think there is any point in releasing an update just to fix that.

Thanks for pointing it out though.
PöpThèséFøøls 24 Dec, 2021 @ 1:57am 
There's an error in campaign1.txt - https://imgur.com/a/0f9FQsB
PöpThèséFøøls 19 Dec, 2021 @ 1:14pm 
actually you were right, the limit is probably 16, it's dead center won't load it for some reason...
Rectus  [author] 19 Dec, 2021 @ 12:58pm 
Not at all, go ahead. Feel free to delete my weapons as well. I think I added a laser pistol entry I never finished.
PöpThèséFøøls 19 Dec, 2021 @ 12:56pm 
do you mind if i upload my edited cwb? (your weapons are still in list, only l4d's are shortened)
Rectus  [author] 19 Dec, 2021 @ 12:04pm 
It's possible. I had the impression it was 16, but haven't tested it myself.
PöpThèséFøøls 19 Dec, 2021 @ 12:01pm 
ok I got it what's wrong.
it works on c2m1 becasue there's 14 melee weapons and laser pack comes 15th

so limit is 15 weapons?
Rectus  [author] 19 Dec, 2021 @ 11:54am 
Does running mission_reload in dev mode return any errors, and does the weapon show up in melee_dump_weapons?
PöpThèséFøøls 19 Dec, 2021 @ 11:47am 
yes, I even unloaded all mods beside cwb and packs
Rectus  [author] 19 Dec, 2021 @ 11:43am 
Your vscripts shouldn't matter at this stage, if they don't work, the weapon wil still spawn and work as a regular melee wepon. Have you verified that that it actuall loads the right mission file?
PöpThèséFøøls 19 Dec, 2021 @ 11:40am 
seems like there is something wrong

Registered custom weapon script custom_laser_pack
Registered custom weapon script custom_ammo_pack
weapon_melee_spawn specifying an invalid melee weapon ( for this campaign? ) : custom_laser_pack
weapon_melee_spawn failed to spawn a melee weapon - using string 'custom_laser_pack'

did I miss some line or wrote it incorrectly?
{
classname = "upgrade_spawn"
targetname = "laser"
origin = Vector(0, 0, 0)
angles = Vector(0, 0, 0)
spawnflags = 2
laser_sight = 1
upgradepack_incendiary = 0
upgradepack_explosive = 0
}
Rectus  [author] 19 Dec, 2021 @ 11:31am 
Do you have the stock version of the custom weapon base installed, or something else with mission files. It could be taking priority over your version.
PöpThèséFøøls 19 Dec, 2021 @ 11:26am 
compiled working models
custom_laser_pack .txt and .nut files with correct entity/model names
added line in scriptedmode_addon.nut in local weapons
added weapon in mission file

no idea what's wrong
Rectus  [author] 19 Dec, 2021 @ 11:08am 
That error suggests the issue is either with the mission file or the melee weapon script. Make sure that the game is loading the right mission file.
PöpThèséFøøls 19 Dec, 2021 @ 10:26am 
Even with less than 16 melee weapons in list it still won't see it with give command:

Attempted to create unknown entity type weapon_custom_laser_pack!
NULL Ent 'weapon_custom_laser_pack' in GiveNamedItem!
Rectus  [author] 19 Dec, 2021 @ 12:51am 
Yes, there is a limit of 16 melee weapons in a mission file if I remember right.
PöpThèséFøøls 18 Dec, 2021 @ 4:14pm 
Is there a limit set for adding new weapons? Becasue I added one and controller won't see it.
Rectus  [author] 20 Apr, 2020 @ 10:39pm 
The only way is to merge the conflicing scripts. There are a few mods around that do that with some of the popular script mods.
Banjo 20 Apr, 2020 @ 10:18pm 
is there anyway of having this compatable with other script addons?
Rectus  [author] 7 Mar, 2020 @ 2:32am 
If they aren't firing, the scripts aren't running. Check for conflicting addons or try removing any other script mods.
turret_man 7 Mar, 2020 @ 2:05am 
how can get these weapon's ammo?
i was spawn the bow, it doesn't have arrow
and LAW was doesn't shoot the rocket
flamethrower doesn't have gauge bar
musicshootout198 26 Feb, 2020 @ 2:39pm 
@rectus
I see then ok I understand thank you
Rectus  [author] 26 Feb, 2020 @ 2:41am 
It would be possible, but I'm not planning on adding the knife.
musicshootout198 26 Feb, 2020 @ 2:16am 
Ok I got one question for counter strike weapons and before that I just wanna say that these weapons including the barnacle guns look so amazing and should be official weapons (and for barnacle gun it should be like an Easter egg just saying) anyway back to the question and it might be dumb to ask but would you ever manage to get the counter strike knife? Like this is my honest question and I’m sorry if that was dumb to ask
Coochie Criminal 16 Feb, 2020 @ 7:22am 
Yeah I noticed it after I posted the comment sorry :p, love your mods keep it up please!
Rectus  [author] 16 Feb, 2020 @ 12:48am 
It does have limited ammo, check the gauge on it.
Coochie Criminal 15 Feb, 2020 @ 7:22pm 
The flamethrower is op tho lmao, could you give it like a little bar like the chainsaw? I dont think anyone will miss the chainsaw if you just replace it with the flamethrower
Coochie Criminal 15 Feb, 2020 @ 10:42am 
Love this.
zhezhiMASTER 20 Jan, 2020 @ 7:03am 
Well,it's pretty good,but i had a strange feeling while playing it.The flamethrower and the SDL are too strong that they break the balance.
HHG#hoho8292011 16 Jan, 2020 @ 2:04pm 
Can you make the sniper rifle which can shot a huge explosion? The sniper which can be charge and shot
Zaxel 27 Nov, 2019 @ 9:25am 
Where the gauss gun from HL1?
Flaming Oddball 7 Nov, 2019 @ 7:17pm 
You guys gonna make a crossbow at some point ?
LaserEyedTreefrog 12 Oct, 2019 @ 3:49pm 
how about like a med gun like from tf2