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

Display Class-specific elements?

A Question for Team Fortress 2

No ads for members. Membership is 100% free. Sign up!

Question Solved

This Question was answered and a solution was chosen.

Could anybody answer me please?

Ok, so, I've got this HUD I've made with hudcreator and I've been editing it manually for a bit now. I started adding stylish icons and all, and now I wonder, how can I make them display only when I'm playing as a certain class?

example: i've got 2 icons stacked on each other on the right side of my screen, the 1st one is a sticky grenade Icon, while the 2nd (behind the 1st one) is an Engineer-related Icon to signify metal. I want it so that only the 1st one appears when I'm playing Demo and the 2nd appears only when i'm playing Engie.

(I sincerely apologize for the low quality screenshots.)
example images

what i've got as of now: (in HudPlayerHealth.res)

"ControlName" "CExLabel"
"fieldName" "customLabel_5"
"xpos" "643"
"ypos" "395"
"zpos" "10"
"wide" "45"
"tall" "70"
"visible" "1"
"enabled" "1"
"labelText" "G "
"textAlignment" "north-west"
"font" "ToonHUDIcons65"
"fgcolor" "149 255 0 255"
"ControlName" "CExLabel"
"fieldName" "customLabel_6"
"xpos" "643"
"ypos" "395"
"zpos" "10"
"wide" "35"
"tall" "55"
"visible" "1"
"enabled" "1"
"labelText" "M "
"textAlignment" "north-west"
"font" "ToonHUDIcons65"
"fgcolor" "159 159 159 255"
Sign up to access this!
  • Delta Player avatar
    Delta Player Joined 4y ago
    Lurking around
    1,103 points Ranked 23785th
    13 medals 1 rare
    • Returned 1000 times Medal icon
    • One month a member Medal icon
    • Returned 100 times Medal icon
    • 6 months a member Medal icon
    • 1 year a member Medal icon
    • Reached 1,000 Points Medal icon
    access_time 2mo edit 2mo
    A. HUDs are very picky on what can and what cannot be shown on screen.
    B. Class specific things cannot be done, however, there are two elements to do what you want. Using the engineer's metal element and demoman's stickies element you can separate the icons into those two categories. Here's a website to check to fine out where to edit and morph things around for your HUD: TF2 HUD Editing Guide - DoodlesStuff
    Keep in mind, HUDs are very finicky with certain elements.
    URL to post:


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


Sign up to access this!
Sign up to access this!
Sign up to access this!


Sign up to access this!



  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • 0
  • 174
  • 2
  • 2mo

More Other/Misc Questions