L4D2 Custom Melee Weapons
Left 4 Dead 2 allows for user created custom melee weapons. Weapons can add to the overall atmosphere of a map and give players an incentive to check out what cool things you've done. This tutorial covers the process from rigging through packaging your weapon into a VPK file for easy download; it does not, however, cover any modeling or texturing. If you looking for a tutorial on how to model weapons, you will be able to find tutorials through Google. This guide uses 3DS Max 2010. Other modeling programs will work fine, as long as you have the correct plugins to handle SMD import/export rigging.
This tutorial covers creating both the v_ and w_ models, so that your weapon looks correct in both your 1st person and 3rd person views (as well as displaying correctly for other survivors).
To do: Update tutorial with correct bone rotation for v_melee models.
You need the following tools in order to create a working melee weapon:
- Left 4 Dead 2 Authoring Tools
- Cannonfodder's MDLDecompiler
- 3DS Max 2010 (or similar program)
- Wunderboy's 3DS Max SMD export plug-in Version 1.5
- Wunderboy's 3DS Max SMD import plug-in Version 1.0
- GCFScape Version 1.7.5
Picking a Weapon
Creating custom animations takes a lot of work, and is something out of the scope of this guide. Thus, we will be picking a melee weapon of similar size and proportion to what we are creating. In my case, I am creating an ice axe, which has similar animations to the crowbar. Obviously, not every kind of melee weapon is possible - for example, Cloud's Buster Sword from Final Fantasy VII would be too large to work with any animation set (to my knowledge, at least). Examine the weapon you plan on using. Test it in first and third person and look closely at the animations. That general movement will be the same for your custom weapon, so make sure it seems realistic.
SetupYou will need to create multiple folders for the basic setup. The first of these is your addon folder.
C:\Program Files\Steam\steamapps\common\left 4 dead 2\left4dead2\addons\weapon_name
left4dead2\addons\weapon_name\modelsrc left4dead2\addons\weapon_name\scripts left4dead2\addons\weapon_name\scripts\melee left4dead2\addons\weapon_name\materials left4dead2\addons\weapon_name\missions
To do: This tutorial is incomplete and needs to be finished.