Left 4 Dead 2

Left 4 Dead 2

Custom Weapon Base
 This topic has been pinned, so it's probably important
Using Custom Weapon Base in community campaigns with assistance of SourceMod plugin!
The instructions assume the players have understood the basic installation and operation of SourceMod platform. If you never installed SourceMod in your dedicated server before, search the instructions about installing SourceMod.

[L4D & L4D2] Mission and Weapons - Info Editor (https://forums.alliedmods.net/showthread.php?t=310586) is a powerful SourceMod plugin, which can easily modify the mission file without extracting or altering the VPK addon. It could help you join custom melee weapons in most community campaigns.

After you installed the Mission and Weapons - Info Editor, edit l4d_info_editor_mission.cfg
Left 4 Dead 2 Dedicated Server\left4dead2\addons\sourcemod\data\l4d_info_editor_mission.cfg
and find the "meleeweapons". You could create a short-cut of l4d_info_editor_mission.cfg on desktop for handy editing later.

To modify "meleeweapons" and join all custom melee weapons. You could also join the riot shield (riotshield) if it's available in your server and no need to join chainsaw in following list. Please note that the maximum quantities of melee weapons are 16 so you have to omit some default melee weapons if the custom weapons in the campaign + weapons of Custom Weapon Base + default melee weapons exceed the limit.
"baseball_bat;crowbar;fireaxe;frying_pan;katana;tonfa;cricket_bat;electric_guitar;golfclub;machete;knife;pitchfork;shovel;barnacle;bow;custom_ammo_pack;custom_shotgun;flamethrower;m72law;sentry;syringe_gun" //All melee weapons (11+2, no chainsaw) + custom weapon base (8) > 16 ***DO NOT USE THEM ALL at the same time!***
Some of community campaigns have their own custom melee weapons that are random spawning so you had better check them with GCFScape (http://nemesis.thewavelength.net/?p=26) before playing any community campaigns.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1881573497 The mission file sometimes defines the "meleeweapons" which are from the author's preference. Supposing you don't find any "meleeweapons" in the mission file, that means the campaign adopts the default settings of melee weapons so you could join any melee weapons you like without worry.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1881574926 The latest Mission and Weapons - Info Editor now supports that custom weapons in the campaign are automatically added on top of your "meleeweapons" string. For instance, if you set following string in the l4d_info_editor_mission.cfg and then play the Blood Tracks campaign:
"meleeweapons" "machete;fireaxe;frying_pan;crowbar;baseball_bat;golfclub;barnacle;bow;custom_ammo_pack;custom_shotgun;flamethrower;m72law;sentry;syringe_gun" //(Default melee weapons (6) + custom weapon base (8) <= 16)
The plugin will join the exclusive weapons in the Blood Tracks campaign actively and override the mission file like following example:
"meleeweapons" "bt_sledge;bt_nail;machete;fireaxe;frying_pan;crowbar;baseball_bat;golfclub;barnacle;bow;custom_ammo_pack;custom_shotgun;flamethrower;m72law;sentry;syringe_gun" //(Weapons in the campaign (2) + default melee weapons (6) + custom weapon base (8) <= 16)
Please note that not every player joining your server has Custom Weapon Base, so you must leave some basic melee weapons for them. You may delete the melee weapons you don't like and let other melee weapons be more possible to appear.
"meleeweapons" "pitchfork;shovel;barnacle;bow;custom_ammo_pack;custom_shotgun;flamethrower;m72law;sentry;syringe_gun" //(Default melee weapons (2) + custom weapon base (8) <= 16)
Certain of community campaigns, like Dark Wood Extended and Resident Evil series by Roku, have their custom melee weapons for rewards of easter egg. These melee weapons are constant positions and you cannot find them in randomly spawning positions. They may be replaced by the melee weapons of Custom Weapon Base even though joining their names in the list of "meleeweapons", so you ought to turn it off while playing these maps. To do this, putting 2 of slash characters ( // ) before it will stop the plugin changing them.
//"meleeweapons" "baseball_bat;crowbar;..." //Temporarily disable the change
You could put many "meleeweapons" in l4d_info_editor_mission.cfg but remember: only use one of them at a time.
//"meleeweapons" "baseball_bat;crowbar;fireaxe;frying_pan;katana;tonfa;pitchfork;shovel;barnacle;bow;custom_ammo_pack;custom_shotgun;flamethrower;m72law;sentry;syringe_gun" //Alternative 1 (Default melee weapons (6+2) + custom weapon base (8) <= 16)
//"meleeweapons" "cricket_bat;electric_guitar;golfclub;machete;knife;pitchfork;shovel;barnacle;bow;custom_ammo_pack;custom_shotgun;flamethrower;m72law;sentry;syringe_gun" //Alternative 2 (Default melee weapons (5+2) + custom weapon base (8) <= 16)
Alternative 1&2 can be used in any campaigns without custom melee weapon. Remember to delete some default weapons in community maps if the total of melee weapons > 16.
Last edited by Morning 鰻魚精奶奶; 13 Nov, 2020 @ 5:24am
< >
Showing 1-9 of 9 comments
Rectus  [developer] 5 Oct, 2019 @ 4:10pm 
Cool, great work!
Originally posted by Rectus:
Cool, great work!
After the joy of several years from Custom Weapon Base, this is what I could help.:lunar2019coolpig:
Seriff Pilcrow 6 Oct, 2019 @ 6:54am 
Tried this tutorial on singleplayer with Warcelona and Day Break, using the Custom Weapons Base, Rectus's CSS weapon unlocker, flamethrower, and pipe shotgun. Custom weapons didn't appear. CSS weapons also didn't appear.

Overall, didn't work.
Last edited by Seriff Pilcrow; 6 Oct, 2019 @ 7:12am
Originally posted by Seriff Pilcrow:
Tried this tutorial on singleplayer
:lunar2019deadpanpig:
Originally posted by Morning 味精奶奶:
If you never installed SourceMod in your dedicated server before, search the instructions about installing SourceMod.

Originally posted by Seriff Pilcrow:
Tried this tutorial on singleplayer with Warcelona and Day Break ... Custom weapons didn't appear.
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1920958701
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1920958770 Overall, zombie brain didn't work.
Last edited by Morning 鰻魚精奶奶; 25 Nov, 2019 @ 10:49am
Boulder Ball 24 Oct, 2019 @ 9:54am 
I have only been using SourceMod for half a year now so I am new to it. Could you provide a screenshot of what your l4d_info_editor_mission.cfg looks like? I'm unsure how to properly edit it :steamsad:
Originally posted by Reggae from Nontendo:
I have only been using SourceMod for half a year now so I am new to it. Could you provide a screenshot of what your l4d_info_editor_mission.cfg looks like? I'm unsure how to properly edit it :steamsad:
It's a config file from l4d_info_editor.zip. After you installed the Mission and Weapons - Info Editor plugin, edit it with notepad or any text editor. https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1897892957
Last edited by Morning 鰻魚精奶奶; 24 Oct, 2019 @ 6:28pm
Supreme Leader 20 Dec, 2021 @ 1:07am 
Could I put the custom weapons before the default weapons so it always load no matter the map?

Also what would happen if the weapon list exceed 16? Does the plugin just auto exclude those at the last of the list or wouldn't work at all?
PöpThèséFøøls 20 Dec, 2021 @ 10:58am 
"what would happen if the weapon list exceed 16" - https://imgur.com/a/ZqMsBmB
Supreme Leader 20 Dec, 2021 @ 11:26am 
Originally posted by PopTheseFools:
"what would happen if the weapon list exceed 16" - https://imgur.com/a/ZqMsBmB
LOL thanks. Hope I never cross that line.
< >
Showing 1-9 of 9 comments
Per page: 1530 50