How to Create Custom Melee Weapons

Credits

Submitter
  • P2: Drudge
    Points: 4,437
  • E1: Helper
    EF: 1
  • C1: Member
  • A4: Graduate
    Account Age: 3 years
Samm5506 (Creator/Co-creator)
Key Authors
samm5506
Author

Rating

?/10
Not yet rated.

Additional Info

Genre
Coding/Scripting
Difficulty Level
Intermediate

Stats

Post Count
17
ViewCount
13,694
Date Added
2 years ago
Date Modified
2 years ago

Create completely new melee weapons.

In this tutorial I will tell you how to create completely new melee weapons for L4D2. This will work with custom models with a catch, more on that later though. (Not worth it, unless you feel like experimenting)

Tools Required: Notepad++ GCFscape 1.7.3 or above

Creating A Custom Melee Weapon Script: 1. Open up pak01dir.vpk using GCFscape and navigate to /scripts/melee. 2. Copy meleemanifest.txt and any script located here, except for knife, into the same folder outside of the .vpk file. Example Image 3. Rename the file to anything else (Ex: baseballbat.txt --> sledgehammer.txt). 4. I won't go into much detail here, but replace whatever you want within your new weapon script file. 5. Now open up meleemanifest.txt and add this line before the end bracket: "file" "scripts/melee/.txt" (WITH quotes) Example Image 6. Save and close melee_manifest.txt

Adding Your Custom Melee Weapon into a Campaign: 1. Create a new mission .txt file for your custom campaign OR open an existing campaign<#>.txt. 2. Edit or add the following: "meleeweapons" ";tonfa;fryingpan;machete;electricguitar;baseball_bat;knife" Example Image 3. Save the mission .txt file.

In-Game Use Setup: 1. Open up pak01dir.vpk using Notepad++ 2. Search for the following: "ÿÿmeleemanifest" (No quotes) 3. Replace this with a single letter replacement such as "ÿÿmelee_manefest" 4. [Optional - For placing in official campaigns] Search for the following: "ÿÿcampaign1", "ÿÿcampaign2", "ÿÿcampaign3", "ÿÿcampaign4", "ÿÿcampaign5" 5. [Optional] Replace a single letter for each searched. Example Image 6. Save. 7. Replace your whitelist.cfg file with the one included in the riotshield mod. (See Downloads) 8. Start up L4D2.

Notes: • All custom melee weapons work online/offline when locally hosting and do NOT affect playing normally online.

  • You must be a member

Comments

    • C1: Member
    • A4: Graduate
      Account Age: 2 years

    And a third noob question. When i make a decal thing in hammer how do i make it smaller? It is fucking big O,o

    Bananite
    • C1: Member
    • A4: Graduate
      Account Age: 2 years

    Ok i got another noob question. How do i make zombies spawn in my map?

    Bananite
    • C1: Member
    • A4: Graduate
      Account Age: 2 years

    How can i find the ÿÿmelee_manifest

    Bananite
    • P1: Beggar
      Points: 9
    • C1: Member
    • A4: Graduate
      Account Age: 2 years

    Thanks for this tutorial, I'm not sure to understand it all but I'll try it.

    But... Two things : 1. The pack_dir.vpk can be opened by the vpk.exe located in "C:\Program Files\Steam\SteamApps\common\left 4 dead\bin" if you have Left 4 Dead 1 and ht's SDK. [Edit : Oh, no, everything is empty, I didn't say anything =( ] 2. You don't need to use NotePad++, I'm using Bloc-Notes (Yes, I am French) and it's sensibly the same thing.

    So, now I have a question... We know we can add some Melee Weapons... Is it possible with the "normal" weapons ? And how ? Thanks ^^

    Bananite
    • C1: Member
    • A4: Graduate
      Account Age: 2 years

    Well i got my wep working sorta.....i got the name in,but now i need help...

    im trying to make a gnome of death,im trying to make it so they implode upon hit.anywy i can do that?second is that (and i know what do to sorta) i tested out my test wep,a flaming gnome,and my screen turned to the right..i read something where i turn the melee wep or screen -90.....any help at all?

    Bananite
    • P1: Beggar
      Points: 337
    • C1: Member
    • A4: Graduate
      Account Age: 4 years

    Plese can someone make a shovel as a melee weapon!? :D

    Blow Up Everything!
    • P2: Drudge
      Points: 4,437
    • E1: Helper
      EF: 1
    • C1: Member
    • A4: Graduate
      Account Age: 3 years
    Posted by Alex Longclaw HEEEEEEEEEEEEEELP! Everytime I load a map, after some seconds it starts, this message appears: "Server not able to authenticate user with steam", it seems this always happens to me when I edit the pack01_dir.vpk. Why does this happens? How can I fix it? EDIT: I used the riotshield mod.

    Deleting your old post and reposting it above to the top doesn't help. I'm not sure why you're getting that problem, but try verifying your game's integrity and try installing the mod again.

    • P1: Beggar
      Points: 7
    • C1: Member
    • A4: Graduate
      Account Age: 3 years

    HEEEEEEEEEEEEEELP! Everytime I load a map, after some seconds it starts, this message appears: "Server not able to authenticate user with steam", it seems this always happens to me when I edit the pack01_dir.vpk. Why does this happens? How can I fix it? EDIT: I used the riotshield mod.

    Oh hai :D
    • P1: Beggar
      Points: 58
    • E1: Helper
      EF: 2
    • C1: Member
    • A4: Graduate
      Account Age: 3 years

    Nice tutorial. I expect now thousands of brand new models for melee weapons.

    B gone
    • P2: Drudge
      Points: 4,437
    • E1: Helper
      EF: 1
    • C1: Member
    • A4: Graduate
      Account Age: 3 years
    Posted by Korushi It looks awesome, just 7. Replace your whitelist.cfg file with the one included in the riotshield mod. (See Downloads) Where's this?

    I forgot to include the downloads, I had copied this from my l4dmods.com thread: http://www.l4dmods.com/forums/viewtopic.php?f=37&t=4335

  • You must be a member