News: Celebrating over 10 years serving the creative community

Author Topic: [HL2] Fixed Annabelle and Alyxgun hud icons  (Read 458 times)

charlie

  • Roach
  • *
  • Posts: 21
  • i hate underscores.
[HL2] Fixed Annabelle and Alyxgun hud icons
« on: February 22, 2019, 02:15:47 PM »
requires some other stuff to work properly, see bottom of post.

so, after screwing around the the clientscheme.res file for a while, i figured out how to load in custom fonts and get them working in weapon scripts. after figuring that out i decided to fix up the annabelle's and alyxgun's scripts because someone already made hud icons for them. so, here it is. (also includes an optional script for the crossbow to have its icon changed from having a magazine to its actual in-game appearance and includes support for episodes since they use a different clientscheme.res file.)

i didn't include everything necessary for this to work as the other stuff isn't mine, so in order for this to work, you need:
https://gamebanana.com/guis/34111 the hud font, stick it in the resource folder
https://gamebanana.com/skins/78680 annabelle view model, stick it in the models folder (don't use the script or else it won't use the hud icon)
https://gamebanana.com/skins/78671 alyxgun view model, stick it in the models folder (don't use the script or else it won't use the hud icon)

also, don't pack this into a .vpk, for some reason packing it into a .vpk doesn't load the font, but if it is in a folder the font loads fine. don't ask me why.