How to hex hats

A Tutorial for Team Fortress 2

Hello world. We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending blaholtzen points.
  • Post: Give blaholtzen your thoughts on this Tutorial.
  • Vote: Help blaholtzen win the Monthly Awards.
  • Rate: Give this Tutorial a rating out of 10.
  • Flag: Alert moderators and warn members of a problem with this Tutorial.
  • Watch: Get notified when this Tutorial is updated.
Mascot

Interested?

Sign up

Already a Bananite? Login

learn to make a downloaded hat replace any hat

Ever downloaded a hat or misc item that didn't replace what you wanted it to? With this tutorial and the power of hexing this will no longer be a problem! ........................................................................................................................................................... Required software links: - GCFscape - XVI32 lets say i want to this hat to replace the Grenadier's Softcap; now this hat was made long before the Grenadier's Softcap was in the game so it can only replace older soldier hats, so we'll need to hex it. First step is easy, in this example we'll first install the gibus replacement by dragging the model and material folders into our tf folder. Then go into your model folder and navigate to where your hat is. in this case root/models/player/items/soldier, here we'll now find the "soldier\_domination" -files. Now you want to replace all the "soldier\_domination" to "grenadier\_softcap", make sure that you don't remove any "dx90"-lines or such just the "soldier\_domination" (the easiest way to know what filename a certain hat uses is to use the model viewer in source SDK (can be downloaded via steam)or GCFScape) Now you need to download a little program called XVI32. you can also use notepad/notepad++ but its safer to use XVI32 as having the wrong number of spaces/characters will "fuck up" the .mdl file; after installing XVI32 open it up and drag your "grenadier\_softcap.mdl" file into it. You'll see a bunch of code, near the beginning of the code that starts with "IDST" you'll see that it still says "soldier\_domination.mdl" this is the line that needs to be edited. Replace that with "grenadier\_softcap.mdl" just like before. In this case the previous name was one character longer then the new one (so you'll end up with "grenadier\_softcap.mdll") when this happens you need to go over to the other field and replace that last "6C" with "00" (underlined with red). MAKE SURE YOU DON'T REMOVE ANY LINES, KEEP YOUR FINGER OF THE BACKSPACE AND DELETE BUTTONS! now just save and you're done, if it doesn't work check for any misspelling thats usually the reason. if it still doesn't work redo it from the start. (if anything is unclear or anything like that PM me)

Posts

  • 1
  • 2
  • 3y
    i followed these instructions exactly several times and nothing works. There is no misspelling, however I did try to replace a pyro specific cosmetic with an allclass. Does this mean I have to change the "allclass" to "pyro" in the mdl? And does the name of the replacement file have to be exactly the same length of the original? Please help.
    Bananite
  • 4y
    frank..... avatar
    frank..... Offline
    Member Joined 4y
    125 points Ranked 24787th
    can you hex a skin that has only the materials? (this is a weird question and i know the answer is no)
    ʕ•ᴥ• ʔ I dun liek u..
  • 6y
    OkamiTakahashi avatar
    Member Joined 7y
    1,077 points Ranked 4420th
    7 medals 1 rare
    • 6 years a member Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    • 1 year a member Medal icon
    • 2 years a member Medal icon
    • 4 years a member Medal icon
    What about hexing player models so they can be ported as separate addons for Gmod?
    TF2 player
  • 6y
    corruptPaladin avatar
    Member Joined 6y
    430 points Ranked 10097th
    Would this work with hexing custom particles?
    [cf] Corrupted Paladin
  • 6y
    Dackstrus avatar
    Dackstrus Offline
    Member Joined 8y
    How to turn a mod from Targe to Screen? The backpack's model updates, but the ingame model is completly gone.
    http://www.gamebanana.com/skins/82957
    Bananite
  • 7y
    blaholtzen avatar
    blaholtzen Offline
    Member Joined 8y
    157 points Ranked 21365th
    @StormriderShift

    I looked too, apparently the holy mackerel lies without its own folder in the c_weapons folder

    @Streetsurf94

    the problem is that the revolver uses W and v models, while l'etranger uses a C model, you could try to hex it for both of the W and V but i'm not sure if that'd work... however valve is going to turn all weapons into C models soon, then it should be doable
    Im a Bagerpig avatar
    Mantra
    Im a Bagerpig
  • 7y
    StormriderShift avatar
    Member Joined 8y
    2,517 points Ranked 1865th
    I tried using this to swap a sandman skin to replace the holy mackerel but when I was looking through GCFScape I couldn't find the folder the the model for the mackerel so I just made one in c_items called c_holymackerel. It unfortunately didn't work so would you suggest anything to help? the skin was team coloured as well so that probably didn't help much.
    Bananite
  • 7y
    hey cool tool, thx. but i have one problem. i tried to make a l'etrange model work for the revolver, and all that happened was the skin was placed on the revolver model. this is the l'etrange model i want, http://www.fpsbanana.com/skins/104242 does it not work because the l'etrange is a c_item and the revolver is a v_weapon?
    Bananite
  • 7y
    chubbs avatar
    chubbs Offline
    Member Joined 8y
    204 points Ranked 17863rd
    I fucking love you mate. You deserve a medal.

    9.7/10

  • 7y
    blaholtzen avatar
    blaholtzen Offline
    Member Joined 8y
    157 points Ranked 21365th
    yes, in fact i think all the weapons you listed can be swapped with each other, demo, soldier, scout and pyro can all hold each others meele weapons (with some clipping in some cases though) for other weapons i think it works as long as they use the same animation
    Im a Bagerpig avatar
    Mantra
    Im a Bagerpig
  • 1
  • 2

Embed

Share banner
Image URL:
HTML embed code:
BB embed code:
Markdown embed code:

Credits

Key Authors
blaholtzen
tutorial

Submitter

blaholtzen avatar
blaholtzen Offline
Member Joined 8y
157 points Ranked 21365th

blaholtzen
Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!
Sign up to access this!

Category

Details

Difficulty Level
Intermediate Difficulty

Attributes

Stats

Posts
14
Views
18,755
Date Added
7y
Date Modified
4y

Scores

88 bScore
9.8 Rating

2 voters

Sign up to access this!

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • Share on Google+
bcp.crwdcntrl.net tracking pixel