Team Fortress 2
S7 Jan 31, 2016 @ 2:16pm
3D Character HUD Model
Anyone got any idea how to make it so that your Character Model is facing to the side instead of diagonally (in any way)? To be specific, I'm looking for some code that I'd be able to put in my autoexec or something like that.
< >
Showing 1-3 of 3 comments
alreev Jan 31, 2016 @ 2:23pm 
I think you could only do it via mods. At least that's what most custom HUD did.
Copy paste ♥♥♥♥ from old forums:
Go into your custom folder and create a new folder. Name it whatever you want. Go into the folder you just created and create a folder named "resource" inside of it. Inside the resource folder, create a folder named "ui". Then create a RES file named "hudplayerclass". Open up the document and put in this:
"Resource/UI/HudPlayerClass.res" { // player class data "HudPlayerClass" { "ControlName" "EditablePanel" "fieldName" "HudPlayerClass" "xpos" "0" "ypos" "0" "ypos_minmode" "18" "zpos" "1" "wide" "f0" "tall" "480" "visible" "1" "enabled" "1" } "PlayerStatusClassImage" { "ControlName" "CTFClassImage" "fieldName" "PlayerStatusClassImage" "xpos" "25" [$WIN32] "xpos_minmode" "15" [$WIN32] "ypos" "r88" [$WIN32] "ypos_minmode" "r54" [$WIN32] "xpos" "57" [$X360] "ypos" "r110" [$X360] "zpos" "2" "wide" "75" "wide_minmode" "37" "tall" "75" "tall_minmode" "37" "visible" "1" "enabled" "1" "image" "../hud/class_scoutred" "scaleImage" "1" } "PlayerStatusSpyImage" { "ControlName" "CTFImagePanel" "fieldName" "PlayerStatusSpyImage" "xpos" "3" [$WIN32] "xpos_minmode" "-5" [$WIN32] "ypos" "r67" [$WIN32] "ypos_minmode" "r44" [$WIN32] "xpos" "35" [$X360] "ypos" "r89" [$X360] "zpos" "2" "wide" "55" "wide_minmode" "27" "tall" "55" "tall_minmode" "27" "visible" "1" "enabled" "1" "image" "../hud/class_spyred" "scaleImage" "1" "teambg_2" "../hud/class_spyred" "teambg_3" "../hud/class_spyblue" } "PlayerStatusSpyOutlineImage" { "ControlName" "CTFImagePanel" "fieldName" "PlayerStatusSpyOutlineImage" "xpos" "3" [$WIN32] "xpos_minmode" "-5" [$WIN32] "ypos" "r67" [$WIN32] "ypos_minmode" "r44" [$WIN32] "xpos" "35" [$X360] "ypos" "r89" [$X360] "zpos" "7" "wide" "55" "wide_minmode" "27" "tall" "55" "tall_minmode" "27" "visible" "0" "enabled" "1" "image" "../hud/class_spy_outline" "scaleImage" "1" } "PlayerStatusClassImageBG" { "ControlName" "CTFImagePanel" "fieldName" "PlayerStatusClassImageBG" "xpos" "9" [$WIN32] "xpos_minmode" "-10" [$WIN32] "ypos" "r60" [$WIN32] "ypos_minmode" "r40" [$WIN32] "xpos" "41" [$X360] "ypos" "r82" [$X360] "zpos" "1" "wide" "100" "tall" "50" "visible" "1" "enabled" "1" "scaleImage" "1" "image" "../hud/character_red_bg" "teambg_2" "../hud/character_red_bg" "teambg_2_lodef" "../hud/character_red_bg_lodef" "teambg_3" "../hud/character_blue_bg" "teambg_3_lodef" "../hud/character_blue_bg_lodef" } "classmodelpanelBG" { "ControlName" "CTFImagePanel" "fieldName" "classmodelpanelBG" "xpos" "-1" [$WIN32] "xpos_minmode" "-15" [$WIN32] "ypos" "r60" [$WIN32] "ypos_minmode" "r40" [$WIN32] "xpos" "41" [$X360] "ypos" "r82" [$X360] "zpos" "1" "wide" "109" "tall" "50" "visible" "1" "enabled" "1" "scaleImage" "1" "image" "../hud/character_red_bg_clipped" "teambg_2" "../hud/character_red_bg_clipped" "teambg_2_lodef" "../hud/character_red_bg_lodef_clipped" "teambg_3" "../hud/character_blue_bg_clipped" "teambg_3_lodef" "../hud/character_blue_bg_lodef_clipped" } "classmodelpanel" { "ControlName" "CTFPlayerModelPanel" "fieldName" "classmodelpanel" "xpos" "0" [$WIN32] "xpos_minmode" "0" [$WIN32] "ypos" "r214" [$WIN32] "ypos_minmode" "r88" [$WIN32] "zpos" "2" "wide" "100" "wide_minmode" "52" "tall" "200" "tall_minmode" "102" "autoResize" "0" "pinCorner" "0" "visible" "1" "enabled" "1" "render_texture" "0" "fov" "12" "allow_rot" "1" "disable_speak_event" "1" "model" { "force_pos" "1" "angles_x" "0" "angles_y" "172" "angles_z" "0" "origin_x" "200" "origin_y" "0" "origin_z" "-60" "frame_origin_x" "0" "frame_origin_y" "0" "frame_origin_z" "0" "spotlight" "1" "modelname" "" "animation" { "name" "PRIMARY" "activity" "ACT_MP_STAND_PRIMARY" "default" "1" } "animation" { "name" "SECONDARY" "activity" "ACT_MP_STAND_SECONDARY" } "animation" { "name" "MELEE" "activity" "ACT_MP_STAND_MELEE" } "animation" { "name" "BUILDING" "activity" "ACT_MP_STAND_BUILDING" } "animation" { "name" "PDA" "activity" "ACT_MP_STAND_PDA" } "animation" { "name" "ITEM1" "activity" "ACT_MP_STAND_ITEM1" } "animation" { "name" "ITEM2" "activity" "ACT_MP_STAND_ITEM2" } "animation" { "name" "MELEE_ALLCLASS" "activity" "ACT_MP_STAND_MELEE_ALLCLASS" } "animation" { "name" "PRIMARY2" "activity" "ACT_MP_STAND_PRIMARY" } "animation" { "name" "SECONDARY2" "activity" "ACT_MP_STAND_SECONDARY2" } } "customclassdata" { "undefined" { } "Scout" { "fov" "25" "angles_x" "-17" "angles_x_minmode" "-10" "angles_y" "220" "angles_z" "-10" "origin_x" "105" "origin_y" "-1" "origin_z" "-82" "origin_z_minmode" "-52" } "Sniper" { "fov" "25" "angles_x" "-10" "angles_x_minmode" "0" "angles_y" "172" "angles_z" "0" "origin_x" "130" "origin_y" "-3" "origin_z" "-97" "origin_z_minmode" "-57" } "Soldier" { "fov" "25" "angles_x" "-10" "angles_x_minmode" "-3" "angles_y" "170" "angles_z" "0" "origin_x" "145" "origin_y" "-5" "origin_y_minmode" "-8" "origin_z" "-90" "origin_z_minmode" "-50" } "Demoman" { "fov" "25" "angles_x" "-13" "angles_x_minmode" "-3" "angles_y" "200" "angles_z" "0" "origin_x" "138" "origin_y" "-4" "origin_z" "-93" "origin_z_minmode" "-53" } "Medic" { "fov" "20" "angles_x" "-5" "angles_x_minmode" "3" "angles_y" "178" "angles_z" "0" "origin_x" "150" "origin_y" "-5" "origin_z" "-96" "origin_z_minmode" "-60" } "Heavy" { "fov" "20" "angles_x" "-5" "angles_x_minmode" "0" "angles_y" "200" "angles_y_minmode" "210" "angles_z" "0" "origin_x" "200" "origin_y" "0" "origin_z" "-102" "origin_z_minmode" "-60" } "Pyro" { "fov" "20" "angles_x" "-5" "angles_x_minmode" "0" "angles_y" "172" "angles_z" "0" "origin_x" "175" "origin_y" "-5" "origin_z" "-90" "origin_z_minmode" "-50" } "Spy" { "fov" "20" "angles_x" "-5" "angles_x_minmode" "3" "angles_y" "160" "angles_z" "0" "origin_x" "160" "origin_y" "0" "origin_y_minmode" "-3" "origin_z" "-95" "origin_z_minmode" "-60" } "Engineer" { "fov" "20" "angles_x" "-10" "angles_x_minmode" "0" "angles_y" "168" "angles_z" "0" "origin_x" "140" "origin_x_minmode" "160" "origin_y" "-2" "origin_y_minmode" "-7" "origin_z" "-82" "origin_z_minmode" "-52" } } } }
Scroll down to the bottom until you get to "customclassdata". Then edit the numbers until you get what you like.

"fov": controls the model size. Lower numbers make it bigger, while higher ones make it smaller.
"angles_x": higher numbers provide a top-down view, lower numbers provide a bottom-up view.
"angles_y": lower numbers turn the character to its right, higher numbers turn it to its left. Since you want to turn your models to the side, I would recommend a value of 135 or 270.
"angles_z": higher numbers turn the character counter-clockwise, lower numbers turn the character model clockwise.
"origin_x": higher numbers move the character farther away, lower numbers bring him closer.
"origin_y": higher numbers move your character to the left, lower numbers move him to the right.
"origin_z": higher numbers move him up, lower numbers move him down.

If you use minimal hud, edit the values that have "_minmode" at the end. If there none, then the values will be the same in both hud modes. You can also add in values like "angles_z_minmode" or "origin_x_minmode" to have different values for both hud modes.

When you find the settings you like, repeat the steps for every other class!

TL;DR: Copy/Paste my code and put 135/270 in "angles_y".
My god that takes a lot of space.
Last edited by alreev; Jan 31, 2016 @ 2:24pm
S7 Jan 31, 2016 @ 2:24pm 
Thanks, this is exactly what I needed :)
HungryBanker Jan 31, 2016 @ 3:15pm 
Originally posted by nupzz. racca:
Anyone got any idea how to make it so that your Character Model is facing to the side instead of diagonally (in any way)? To be specific, I'm looking for some code that I'd be able to put in my autoexec or something like that.

Well, you could rotate the scoreboard thumbnail models, if mouse input is enabled.
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Jan 31, 2016 @ 2:16pm
Posts: 3