Team Fortress 2 Icon TF2 Tutorial

How to hex hats

Attention Gamer! 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

Stop Lurking!

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)

Comments

  • Stormcrowx avatar
    Stormcrowx Offline
    Member Joined 5 years ago
    Report post
    3 years ago:
    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
  • frank..... avatar
    frank..... Offline
    Member Joined 3 years ago
    125 points Ranked 23126th
    Report post
    3 years ago:
    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..
  • OkamiTakahashi avatar
    Member Joined 6 years ago
    Report post
    5 years ago:
    What about hexing player models so they can be ported as separate addons for Gmod?
    TF2 player
  • corruptPaladin avatar
    Member Joined 5 years ago
    430 points Ranked 9345th
    Report post
    5 years ago:
    Would this work with hexing custom particles?
    [cf] Corrupted Paladin
  • Dackstrus avatar
    Dackstrus Offline
    Member Joined 7 years ago
    Report post
    6 years ago:
    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
  • blaholtzen avatar
    blaholtzen Offline
    Member Joined 7 years ago
    157 points Ranked 19925th
    Report post
    6 years ago:
    @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
  • StormriderShift avatar
    Member Joined 8 years ago
    2,517 points Ranked 1778th
    Report post
    6 years ago:
    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
  • Streetsurf94 avatar
    Member Joined 7 years ago
    Report post
    6 years ago:
    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
  • chubbs avatar
    chubbs Offline
    Member Joined 7 years ago
    204 points Ranked 16594th
    Report post
    6 years ago:
    I fucking love you mate. You deserve a medal.

    9.7/10

  • blaholtzen avatar
    blaholtzen Offline
    Member Joined 7 years ago
    157 points Ranked 19925th
    Report post
    6 years ago:
    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

Share

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

More embeddable images

Bookmark and Share

Credits

Key Authors
blaholtzen
tutorial

Submitter

blaholtzen avatar
blaholtzen Offline
Member Joined 7 years ago
157 points Ranked 19925th

blaholtzen
Creator
Send a Private Message to the submitter

Category

Details

Difficulty Level
Intermediate Difficulty

Attributes

Stats

Posts
14
Views
17,784
Date Added
6 years ago
Nov 8 2010 @ 4:54pm UTC
Date Modified
3 years ago
Apr 17 2014 @ 7:51pm UTC
Date Updated
6 years ago
Nov 8 2010 @ 4:54pm UTC

Rating

9.8/10 by 2 raters