I've been trying to make the health cross invisible for the past 3 days and it doesn't want to work, I can't even move it, I don't know what I'm doing wrong.
Account Details | |
---|---|
SteamID64 | 76561198868640679 |
SteamID3 | [U:1:908374951] |
SteamID32 | STEAM_0:1:454187475 |
Country | Canada, Province of Quebec |
Signed Up | May 17, 2020 |
Last Posted | April 22, 2021 at 7:46 PM |
Posts | 9 (0 per day) |
Game Settings | |
---|---|
In-game Sensitivity | |
Windows Sensitivity | |
Raw Input | |
DPI |
|
Resolution |
|
Refresh Rate |
Hardware Peripherals | |
---|---|
Mouse | |
Keyboard | |
Mousepad | |
Headphones | |
Monitor |
WiethoofdThe reason your BG currently doesn't show is because you've set it to wide & tall 0. Fix this first.
The path as it currently is with ../vgui/replay is correct.
Oh I got it work perfectly now, thanks you helped alot.
WiethoofdYou should have at least the following:In theory the above should work./tf/custom/yourhud/materials/vgui/replay/thumbnails/health_over_bg.vmt // fixed path to vtf /tf/custom/yourhud/materials/vgui/replay/thumbnails/health_over_bg.vtf // custom bg image /tf/custom/yourhud/resource/ui/hudplayerhealth.res // modified hud file /tf/custom/yourhud/info.vdf // hud { ui_version 3 }
Okay I've done it, currently, my VMT looks like this
"UnlitGeneric"
{
"$translucent" "1"
"$baseTexture" "vgui\replay\thumbnails\health_over_bg"
"$alpha" "1"
"$vertexalpha" "1"
"$vertexcolor" "1"
"$no_fullbright" "1"
"$ignorez" "1"
"%keywords" "tf"
"Proxies"
{
"AnimatedTexture"
{
"animatedtexturevar" "$basetexture"
"animatedtextureframenumvar" "$frame"
"animatedtextureframerate" "15"
}
}
}
And my hudplayerhealth.res looks like this
"PlayerStatusHealthImageBG"
{
"ControlName" "ImagePanel"
"fieldName" "PlayerStatusHealthImageBG"
"xpos" "73"
"xpos_minmode" "58"
"ypos" "33"
"zpos" "3"
"wide" "0"
"tall" "0"
"visible" "1"
"enabled" "1"
"image" "../vgui/replay/thumbnails/health_over_bg"
"scaleImage" "1"
}
Alright that's what I needed to know, however would the vmt and hudplayerhealth.res directory be materials/vgui/replay/thumbnails/health_over_bg or /vgui/replay/thumbnails/health_over_bg?
WiethoofdI just extracted the original .vmt and uploaded it, but that should indeed be modified to reflect it's new path, good catch.
Heres the thing, do I have to put all my things inside of the tf directory or inside of tf/custom/myhud/materials/vgui/replay/thumbnails ?
WiethoofdObamaGamingcurrently this is what it looks likeDid you also extract the .vmt with the VTF in the new folder when you moved it?
https://imgur.com/a/6vVi4He.png
I did move the VMT and VTF inside of my hud's folders. But looks like the VMT you sent me doesn't have the same directory.
WiethoofdMove the file to materials/vgui/replay/thumbnails and make a VMT for it (copy the original) and point your hudplayerhealth image to the changed path.
The image should now work with sv_pure 2 without preloading.
Hmm I dunno, currently this is what it looks like let me know if I did it correctly because it doesn't seem to work at the moment.
WiethoofdMove the file to materials/vgui/replay/thumbnails and make a VMT for it (copy the original) and point your hudplayerhealth image to the changed path.
The image should now work with sv_pure 2 without preloading.
I'll give this a shot I'll see if it works.
So yesterday I made my own hudplayerhealth changes and one of them was an animated background for the health_over_bg.vtf file. It worked perfectly when I tested it on cp_badlands with bots. However on casual, it doesn't seem to work, it's only the default health_over_bg.vtf file. Is there a way to fix it? Cheers.