Left 4 Dead 2

Left 4 Dead 2

Custom Scripted Weapons
179 kommentarer
Rectus  [ophavsmand] 22. mar. kl. 16:20 
See the FAQ posts in the mod pages for troubleshooting tips.
SnowyTavera 22. mar. kl. 16:03 
no me aparce el mod enla workshop
Rectus  [ophavsmand] 18. jan. 2022 kl. 11:59 
Whoa, that's some dedication. Great job!
PöpThèséFøøls 18. jan. 2022 kl. 11:55 
potat 13. jan. 2022 kl. 0:56 
nvm its working now sorry
Rectus  [ophavsmand] 12. jan. 2022 kl. 0:14 
When the map loads, does it print the names of the custom weapons to console in blue text?
potat 11. jan. 2022 kl. 22:48 
still not working :(
Rectus  [ophavsmand] 11. jan. 2022 kl. 2:02 
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 kl. 1:58 
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 kl. 13:26 
okay sorry
Rectus  [ophavsmand] 25. dec. 2021 kl. 13:24 
If it modifies melee weapons, it likely will not be possible.
SupremeJustice63 25. dec. 2021 kl. 13:23 
ah

any idea if this mod could work around it?
Rectus  [ophavsmand] 25. dec. 2021 kl. 13:19 
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 kl. 13:16 
does this still conflict with Drop the treasure mod?
Rectus  [ophavsmand] 24. dec. 2021 kl. 2:40 
It should be fixed now.
Rectus  [ophavsmand] 24. dec. 2021 kl. 2:14 
Thanks, I'll fix it then.
PöpThèséFøøls 24. dec. 2021 kl. 2:12 
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  [ophavsmand] 24. dec. 2021 kl. 2:11 
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 kl. 1:57 
There's an error in campaign1.txt - https://imgur.com/a/0f9FQsB
PöpThèséFøøls 19. dec. 2021 kl. 13:14 
actually you were right, the limit is probably 16, it's dead center won't load it for some reason...
Rectus  [ophavsmand] 19. dec. 2021 kl. 12:58 
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 kl. 12:56 
do you mind if i upload my edited cwb? (your weapons are still in list, only l4d's are shortened)
Rectus  [ophavsmand] 19. dec. 2021 kl. 12:04 
It's possible. I had the impression it was 16, but haven't tested it myself.
PöpThèséFøøls 19. dec. 2021 kl. 12:01 
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  [ophavsmand] 19. dec. 2021 kl. 11:54 
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 kl. 11:47 
yes, I even unloaded all mods beside cwb and packs
Rectus  [ophavsmand] 19. dec. 2021 kl. 11:43 
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 kl. 11:40 
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  [ophavsmand] 19. dec. 2021 kl. 11:31 
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 kl. 11:26 
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  [ophavsmand] 19. dec. 2021 kl. 11:08 
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 kl. 10:26 
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  [ophavsmand] 19. dec. 2021 kl. 0:51 
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 kl. 16:14 
Is there a limit set for adding new weapons? Becasue I added one and controller won't see it.
Rectus  [ophavsmand] 20. apr. 2020 kl. 22:39 
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 kl. 22:18 
is there anyway of having this compatable with other script addons?
Rectus  [ophavsmand] 7. mar. 2020 kl. 2:32 
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 kl. 2:05 
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
Music&Manga 26. feb. 2020 kl. 14:39 
@rectus
I see then ok I understand thank you
Rectus  [ophavsmand] 26. feb. 2020 kl. 2:41 
It would be possible, but I'm not planning on adding the knife.
Music&Manga 26. feb. 2020 kl. 2:16 
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 kl. 7:22 
Yeah I noticed it after I posted the comment sorry :p, love your mods keep it up please!
Rectus  [ophavsmand] 16. feb. 2020 kl. 0:48 
It does have limited ammo, check the gauge on it.
Coochie Criminal 15. feb. 2020 kl. 19:22 
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 kl. 10:42 
Love this.
zhezhiMASTER 20. jan. 2020 kl. 7:03 
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 kl. 14:04 
Can you make the sniper rifle which can shot a huge explosion? The sniper which can be charge and shot
Zaxel 27. nov. 2019 kl. 9:25 
Where the gauss gun from HL1?
Flaming Oddball 7. nov. 2019 kl. 19:17 
You guys gonna make a crossbow at some point ?
LaserEyedTreefrog 12. okt. 2019 kl. 15:49 
how about like a med gun like from tf2