Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

How to hex hats - A Tutorial for Team Fortress 2

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)
1-10 of 14
1
Pages
  • 1
  • 2
Go to page:
  • Stormcrowx avatar
    Stormcrowx Joined 10y ago
    Offline
    7y
    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
    URL to post:
  • frank..... avatar
    frank..... Joined 7y ago
    Offline
    125 points Ranked 72,468th
    7y
    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..
    URL to post:
  • OkamiTakahashi avatar
    OkamiTakahashi Joined 11y ago
    Offline
    10,736 points Ranked 657th
    14 medals 2 legendary 2 rare
    • Returned 5000 times Medal icon
    • 10 years a member Medal icon
    • 6 years a member Medal icon
    • Returned 1000 times Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    9y
    What about hexing player models so they can be ported as separate addons for Gmod?
    A Man of Many Mods...Installed
    URL to post:
  • corruptPaladin avatar
    corruptPaladin Joined 10y ago
    Offline
    505 points Ranked 48,786th
    9y
    Would this work with hexing custom particles?
    [cf] Corrupted Paladin
    URL to post:
  • Dackstrus avatar
    Dackstrus Joined 12y ago
    Offline
    10y
    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
    URL to post:
  • blaholtzen avatar
    blaholtzen Joined 11y ago
    Offline
    202 points Ranked 62,260th
    11y
    @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
    URL to post:
  • StormriderShift avatar
    StormriderShift Joined 12y ago
    Offline
    2,618 points Ranked 20,672nd
    9 medals 1 legendary 1 rare
    • 10 years a member Medal icon
    • 6 years a member Medal icon
    • Reached 1,000 Points Medal icon
    • Reached 2,500 Points Medal icon
    • One month a member Medal icon
    • 6 months a member Medal icon
    11y
    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
    URL to post:
  • 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
    URL to post:
  • chubbs avatar
    chubbs Joined 11y ago
    Offline
    204 points Ranked 62,074th
    11y
    I fucking love you mate. You deserve a medal.
    URL to post:
  • blaholtzen avatar
    blaholtzen Joined 11y ago
    Offline
    202 points Ranked 62,260th
    11y
    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
    URL to post: