Upvote Upvoted 262 Downvote Downvoted
1 ⋅⋅ 126 127 128 129 130 131 132 ⋅⋅ 202
HUD editing: short questions, quick answers
posted in Customization
3841
#3841
whitelist.tf
1 Frags +

DataBoil, make sure the following convar is set to 0, otherwise hud_reloadscheme won't have any effect:

vgui_cache_res_files 0

--------

CubekolIf you are editing main menu it will not show changes when you type hud_reloadscheme.
The best option for seeing changes without restarting the game is to change antialiasing level.

Correct, toggling mat_antialias between two values should make main menu stuff refresh (if cache res files is 0)

Be aware that it works only for main menu, if you are editing something like backpackpanel you need to restart your game every time you want to see changes.

Wrong, having toggleconsole bound to back tick/tilde ( ` or ~ ) allows you to open console in those panels and then enable vgui_drawtree 1. Having Highlight Selected ticked and selecting the correct parent in the tree with hud elements and clicking 'Reload Scheme (Highlighted)' will reload backpack/store panel stuff.

Reopening lobby panels will also reload them and you can even use a reloadscheme button in most backpack/store/loadout panels so you don't have to enable console and can do it with a press of a button.

DataBoil, make sure the following convar is set to 0, otherwise hud_reloadscheme won't have any effect:
[code]vgui_cache_res_files 0[/code]

--------
[quote=Cubekol]If you are editing main menu it will not show changes when you type hud_reloadscheme.
The best option for seeing changes without restarting the game is to change antialiasing level.[/quote]
Correct, toggling mat_antialias between two values should make main menu stuff refresh (if cache res files is 0)
[quote]Be aware that it works only for main menu, if you are editing something like backpackpanel you need to restart your game every time you want to see changes.[/quote]
Wrong, having [i]toggleconsole[/i] bound to back tick/tilde ( ` or ~ ) allows you to open console in those panels and then enable [i]vgui_drawtree 1[/i]. Having [i]Highlight Selected[/i] ticked and selecting the correct parent in the tree with hud elements and clicking 'Reload Scheme (Highlighted)' will reload backpack/store panel stuff.

Reopening lobby panels will also reload them and you can even use a [url=https://github.com/Wiethoofd/WietHUD/blob/master/alternatives/reloadscheme_button.res]reloadscheme[/url] button in most backpack/store/loadout panels so you don't have to enable console and can do it with a press of a button.
3842
#3842
0 Frags +

How does one change the BG colour of the weapon/hat panels for stock, hovering over and deselected items?
Image

How does one change the BG colour of the weapon/hat panels for stock, hovering over and deselected items?
[url=https://s17.postimg.org/cwttmmbf3/Untitled.png]Image[/url]
3843
#3843
0 Frags +

http://pastebin.com/F9wJstJ3

need help finding which lines to delete to prevent the buff/low hp animations (the white and red flashing crosses)

http://pastebin.com/F9wJstJ3

need help finding which lines to delete to prevent the buff/low hp animations (the white and red flashing crosses)
3844
#3844
0 Frags +
whttp://pastebin.com/F9wJstJ3

need help finding which lines to delete to prevent the buff/low hp animations (the white and red flashing crosses)

Any line involving PlayerStatusHealthBonusImage, if it's just the flashing cross you want to stop from flashing. To remove it entirely you'd edit inside hudplayerhealth.res and move it to xpos and ypos 9999 or some other value far offscreen.

[quote=w]http://pastebin.com/F9wJstJ3

need help finding which lines to delete to prevent the buff/low hp animations (the white and red flashing crosses)[/quote]
Any line involving PlayerStatusHealthBonusImage, if it's just the flashing cross you want to stop from flashing. To remove it entirely you'd edit inside hudplayerhealth.res and move it to xpos and ypos 9999 or some other value far offscreen.
3845
#3845
1 Frags +

I can't seem to find out why my hud keeps on removing buttons.

http://image.prntscr.com/image/ee446948b5504928a3ab0467d2a81df9.png

They sometimes appear but when I click on item button or open the console it disappears.

I can't seem to find out why my hud keeps on removing buttons.

[img]http://image.prntscr.com/image/ee446948b5504928a3ab0467d2a81df9.png[/img]

They sometimes appear but when I click on item button or open the console it disappears.
3846
#3846
0 Frags +
puoi1I can't seem to find out why my hud keeps on removing buttons.

http://image.prntscr.com/image/ee446948b5504928a3ab0467d2a81df9.png

They sometimes appear but when I click on item button or open the console it disappears.

check in hudanimations for mMenu_Playlist_Expand, mMenu_Playlist_Collapse and mMenu_Playlist_Collapse_Immediate

the console triggers mMenu_Playlist_Collapse_Immediate and the Find A Game button triggers the other two. Seems strange if your items button causes them to move though

----------------------------------------------------------------------------------------------------------------------

How do I edit the different parts of the halloween hud?

[quote=puoi1]I can't seem to find out why my hud keeps on removing buttons.

[img]http://image.prntscr.com/image/ee446948b5504928a3ab0467d2a81df9.png[/img]

They sometimes appear but when I click on item button or open the console it disappears.[/quote]

check in hudanimations for mMenu_Playlist_Expand, mMenu_Playlist_Collapse and mMenu_Playlist_Collapse_Immediate

the console triggers mMenu_Playlist_Collapse_Immediate and the Find A Game button triggers the other two. Seems strange if your items button causes them to move though

----------------------------------------------------------------------------------------------------------------------

How do I edit the different parts of the halloween hud?
3847
#3847
0 Frags +

What is the file that edits the scores in carnival of carnage (e.g. duck count, player count, goal count)

What is the file that edits the scores in carnival of carnage (e.g. duck count, player count, goal count)
3848
#3848
-1 Frags +
duck_What is the file that edits the scores in carnival of carnage (e.g. duck count, player count, goal count)XenThePybroHow do I edit the different parts of the halloween hud?

huditemeffectmeter_kartcharge - Kart charge
hudbosshealth.res - Health of boss (e.g. Merasmus)
hudspellselection - Spell menu
hudminigame_base - Ducks and everything other

Show Content
are you guys seriously too lazy to use vgui_drawtree 1 command ?
[quote=duck_]What is the file that edits the scores in carnival of carnage (e.g. duck count, player count, goal count)[/quote]
[quote=XenThePybro]
How do I edit the different parts of the halloween hud?[/quote]
huditemeffectmeter_kartcharge - Kart charge
hudbosshealth.res - Health of boss (e.g. Merasmus)
hudspellselection - Spell menu
hudminigame_base - Ducks and everything other

[spoiler]are you guys seriously too lazy to use vgui_drawtree 1 command ?[/spoiler]
3849
#3849
0 Frags +
Cubekolduck_What is the file that edits the scores in carnival of carnage (e.g. duck count, player count, goal count)XenThePybroHow do I edit the different parts of the halloween hud?huditemeffectmeter_kartcharge - Kart charge
hudbosshealth.res - Health of boss (e.g. Merasmus)
hudspellselection - Spell menu
hudminigame_base - Ducks and everything other
Show Content
are you guys seriously too lazy to use vgui_drawtree 1 command ?

I tried and I found the kart charge, boss health, wheel of doom and the spell menu but I wanted to check to make sure I was not missing anything.

[quote=Cubekol][quote=duck_]What is the file that edits the scores in carnival of carnage (e.g. duck count, player count, goal count)[/quote]
[quote=XenThePybro]
How do I edit the different parts of the halloween hud?[/quote]
huditemeffectmeter_kartcharge - Kart charge
hudbosshealth.res - Health of boss (e.g. Merasmus)
hudspellselection - Spell menu
hudminigame_base - Ducks and everything other

[spoiler]are you guys seriously too lazy to use vgui_drawtree 1 command ?[/spoiler][/quote]

I tried and I found the kart charge, boss health, wheel of doom and the spell menu but I wanted to check to make sure I was not missing anything.
3850
#3850
0 Frags +

What file(s) do I have to edit to readjust my ammo box? Somehow while equipping the cow mangler, my ammo appears in the bottom right corner (like default) instead of in the middle of my screen next to my health.
My hud: http://www.teamfortress.tv/18297/bxhud-cb#bottom

What file(s) do I have to edit to readjust my ammo box? Somehow while equipping the cow mangler, my ammo appears in the bottom right corner (like default) instead of in the middle of my screen next to my health.
My hud: http://www.teamfortress.tv/18297/bxhud-cb#bottom
3851
#3851
0 Frags +
Chill_ColinsWhat file(s) do I have to edit to readjust my ammo box? Somehow while equipping the cow mangler, my ammo appears in the bottom right corner (like default) instead of in the middle of my screen next to my health.
My hud: http://www.teamfortress.tv/18297/bxhud-cb#bottom

Hypnotize has updated this hud I believe, so if the bxhud that you have is outdated you may want to check his thread to see if just moving to a more current version of it will fix your problems.

But if you're having an issue with an item effect bar showing up as a default bar, your hud probably doesn't have that specific file within your hud files, usually found in resource -> ui, you can grab the file from the default hud files and edit it to work with the rest of your hud

[quote=Chill_Colins]What file(s) do I have to edit to readjust my ammo box? Somehow while equipping the cow mangler, my ammo appears in the bottom right corner (like default) instead of in the middle of my screen next to my health.
My hud: http://www.teamfortress.tv/18297/bxhud-cb#bottom[/quote]
Hypnotize has updated this hud I believe, so if the bxhud that you have is outdated you may want to check his thread to see if just moving to a more current version of it will fix your problems.

But if you're having an issue with an item effect bar showing up as a default bar, your hud probably doesn't have that specific file within your hud files, usually found in resource -> ui, you can grab the file from the default hud files and edit it to work with the rest of your hud
3852
#3852
0 Frags +
Chill_ColinsWhat file(s) do I have to edit to readjust my ammo box? Somehow while equipping the cow mangler, my ammo appears in the bottom right corner (like default) instead of in the middle of my screen next to my health.
My hud: http://www.teamfortress.tv/18297/bxhud-cb#bottom

scrips/hudlayout.res, search for ammo
resource/ui/hudammoweapons

---------------------------------------------------------------------------------------------------------------------------------------------------

Why is basechat.res not in the stock hud files and if it is can you please help me find it?

[quote=Chill_Colins]What file(s) do I have to edit to readjust my ammo box? Somehow while equipping the cow mangler, my ammo appears in the bottom right corner (like default) instead of in the middle of my screen next to my health.
My hud: http://www.teamfortress.tv/18297/bxhud-cb#bottom[/quote]


scrips/hudlayout.res, search for ammo
resource/ui/hudammoweapons

---------------------------------------------------------------------------------------------------------------------------------------------------

Why is basechat.res not in the stock hud files and if it is can you please help me find it?
3853
#3853
0 Frags +

There's something really weird going on with my targetID's TargetNameLabel settings:

Show Content
Show Content

Here's my TargetNameLabel info, I'm using Shounic's edit of yahud at 1080p

		"TargetNameLabel"
	{	
		"ControlName"		"CExLabel"
		"fieldName"		"TargetNameLabel"
		"font"			"Medium14"				//Medium12
		"xpos"			"45"
		"ypos"			"14"	
		"zpos"			"7"
		"wide"			"300"
		"tall"			"26"
		"fgcolor"		"Black"
		"autoResize"		"0"
		"pinCorner"		"0"
		"visible"		"1"
		"enabled"		"1"
		"labelText"		"%targetname%"
		"textAlignment"		"west"
		"dulltext"		"0"
		"brighttext"		"0"
		"textinsetx" "0"
	}

pls help ;_;

There's something really weird going on with my targetID's TargetNameLabel settings:

[spoiler][img]http://i.imgur.com/oPdbU4e.jpg[/img][/spoiler]

[spoiler][img]http://i.imgur.com/Va2L5li.jpg[/img][/spoiler]

Here's my TargetNameLabel info, I'm using Shounic's edit of yahud at 1080p
[code] "TargetNameLabel"
{
"ControlName" "CExLabel"
"fieldName" "TargetNameLabel"
"font" "Medium14" //Medium12
"xpos" "45"
"ypos" "14"
"zpos" "7"
"wide" "300"
"tall" "26"
"fgcolor" "Black"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"labelText" "%targetname%"
"textAlignment" "west"
"dulltext" "0"
"brighttext" "0"
"textinsetx" "0"
}
[/code]

pls help ;_;
3854
#3854
0 Frags +

Where do I edit these again?

http://i.imgur.com/vRThGqu.jpg

Where do I edit these again?
[img]
http://i.imgur.com/vRThGqu.jpg[/img]
3855
#3855
0 Frags +
LyreixThere's something really weird going on with my targetID's TargetNameLabel settings:
Show Content
Show Content

Here's my TargetNameLabel info, I'm using Shounic's edit of yahud at 1080p
		"TargetNameLabel"
	{	
		"ControlName"		"CExLabel"
		"fieldName"		"TargetNameLabel"
		"font"			"Medium14"				//Medium12
		"xpos"			"45"
		"ypos"			"14"	
		"zpos"			"7"
		"wide"			"300"
		"tall"			"26"
		"fgcolor"		"Black"
		"autoResize"		"0"
		"pinCorner"		"0"
		"visible"		"1"
		"enabled"		"1"
		"labelText"		"%targetname%"
		"textAlignment"		"west"
		"dulltext"		"0"
		"brighttext"		"0"
		"textinsetx" "0"
	}

pls help ;_;

You have two name labels. The one that is white is the stock one and is aligned on the x axis by the width and xpos of SpectatorGUIHealth. The other one is one made my the hud creator because sadly the text colour is stuck on tanlight so to change it to a darker colour everything else in the hud would need to switch colour too. So the fix around it is creating another but this one is not aligned by SpectatorGUIHealth so you can only make it look good with or without the floating target health, not both. tf_hud_target_id_disable_floating_health 1 will disable the floating health so it should fix things for you.

[quote=Lyreix]There's something really weird going on with my targetID's TargetNameLabel settings:

[spoiler][img]http://i.imgur.com/oPdbU4e.jpg[/img][/spoiler]

[spoiler][img]http://i.imgur.com/Va2L5li.jpg[/img][/spoiler]

Here's my TargetNameLabel info, I'm using Shounic's edit of yahud at 1080p
[code] "TargetNameLabel"
{
"ControlName" "CExLabel"
"fieldName" "TargetNameLabel"
"font" "Medium14" //Medium12
"xpos" "45"
"ypos" "14"
"zpos" "7"
"wide" "300"
"tall" "26"
"fgcolor" "Black"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"labelText" "%targetname%"
"textAlignment" "west"
"dulltext" "0"
"brighttext" "0"
"textinsetx" "0"
}
[/code]

pls help ;_;[/quote]

You have two name labels. The one that is white is the stock one and is aligned on the x axis by the width and xpos of SpectatorGUIHealth. The other one is one made my the hud creator because sadly the text colour is stuck on tanlight so to change it to a darker colour everything else in the hud would need to switch colour too. So the fix around it is creating another but this one is not aligned by SpectatorGUIHealth so you can only make it look good with or without the floating target health, not both. tf_hud_target_id_disable_floating_health 1 will disable the floating health so it should fix things for you.
3856
#3856
0 Frags +

@XenThePybro #3852: basechat.res is packed in /Team Fortress 2/hl2/hl2_misc_dir.vpk. I'm not even sure if it has ever been touched for stock HUD changes. Here it is in my repo.

@JB #3854: Try looking at the questitemtrackerpanel* files in /resource/ui/quests/.

@Lyreix #3853: Following XenThePybro #3855, you likely have another TargetNameLabel, perhaps named TargetNameLabel2, TargetNameLabel_ or similar. If you want to keep floating health, you can try pinning that extra label to TargetNameLabel by adding the following to that extra label's section:

		"pin_to_sibling" 	"TargetNameLabel"
		"pin_corner_to_sibling" "PIN_TOPLEFT"
		"pin_to_sibling_corner" "PIN_TOPLEFT"
@XenThePybro #3852: basechat.res is packed in /Team Fortress 2/hl2/hl2_misc_dir.vpk. I'm not even sure if it has ever been touched for stock HUD changes. Here it is in my [url=https://raw.githubusercontent.com/Tewgon/tf2basehud/master/resource/ui/basechat.res]repo[/url].

@JB #3854: Try looking at the questitemtrackerpanel* files in /resource/ui/quests/.

@Lyreix #3853: Following XenThePybro #3855, you likely have another TargetNameLabel, perhaps named TargetNameLabel2, TargetNameLabel_ or similar. If you want to keep floating health, you can try pinning that extra label to TargetNameLabel by adding the following to that extra label's section:

[code] "pin_to_sibling" "TargetNameLabel"
"pin_corner_to_sibling" "PIN_TOPLEFT"
"pin_to_sibling_corner" "PIN_TOPLEFT"
[/code]
3857
#3857
whitelist.tf
2 Frags +
AElaiyou can try pinning that extra label to TargetNameLabel by adding the following to that extra label's section:
		"pin_to_sibling" 	"TargetNameLabel"
		"pin_corner_to_sibling" "PIN_TOPLEFT"
		"pin_to_sibling_corner" "PIN_TOPLEFT"

Make sure to change Xpos and Ypos both to 0 and increase zpos (or -1 if you want it to act as a dropshadow)

[quote=AElai]you can try pinning that extra label to TargetNameLabel by adding the following to that extra label's section:
[code] "pin_to_sibling" "TargetNameLabel"
"pin_corner_to_sibling" "PIN_TOPLEFT"
"pin_to_sibling_corner" "PIN_TOPLEFT"
[/code][/quote]
Make sure to change Xpos and Ypos both to 0 and increase zpos (or -1 if you want it to act as a dropshadow)
3858
#3858
0 Frags +

is there a way to make hud crosshairs bigger?

is there a way to make hud crosshairs bigger?
3859
#3859
0 Frags +

How can I add a custom hitmarker to my HUD? Like the one in the TF2's Overwatch HUD

How can I add a custom hitmarker to my HUD? Like the one in the TF2's Overwatch HUD
3860
#3860
2 Frags +
Toxi-C-LoudHow can I add a custom hitmarker to my HUD? Like the one in the TF2's Overwatch HUD

in your hudanimations file look for event DamagedPlayer

put your animation there and whenever you hurt someone that animation will get triggered

wtzis there a way to make hud crosshairs bigger?

increase the wide and tall if it is an image
if it is the font find the font in clientscheme.res and increase the tall value

[quote=Toxi-C-Loud]How can I add a custom hitmarker to my HUD? Like the one in the TF2's Overwatch HUD[/quote]

in your hudanimations file look for event DamagedPlayer

put your animation there and whenever you hurt someone that animation will get triggered

[quote=wtz]is there a way to make hud crosshairs bigger?[/quote]

increase the wide and tall if it is an image
if it is the font find the font in clientscheme.res and increase the tall value
3861
#3861
1 Frags +

So how do I add a font to wiethud?

I have a font that I change the main font to on all of the huds I use but I can't for the life of me figure how to do it wiethud. Rays guide for changing hud font has helped me on every single other hud I'v used but it doesn't seem to work here?

So how do I add a font to wiethud?

I have a font that I change the main font to on all of the huds I use but I can't for the life of me figure how to do it wiethud. Rays guide for changing hud font has helped me on every single other hud I'v used but it doesn't seem to work here?
3862
#3862
whitelist.tf
0 Frags +

@nahkakakkone: notofonts file in WietHUD which can be enabled in ClientScheme (needs an update, but works as intended, use this as a base (pun intended) for your font changing hud file)

@nahkakakkone: [url=https://github.com/Wiethoofd/WietHUD/blob/master/alternatives/notohud_fonts.res]notofonts file in WietHUD[/url] which can be enabled in [url=https://github.com/Wiethoofd/WietHUD/blob/master/resource/ClientScheme.res#L18]ClientScheme[/url] (needs an update, but works as intended, use this as a base (pun intended) for your font changing hud file)
3863
#3863
0 Frags +

What is the field name for this HUD element, and in which file is it located?
boop

found it, it's in hudmatchstatus.res and it's RoundSignModel

[s]What is the field name for this HUD element, and in which file is it located?
[url=http://i.imgur.com/lc7g12K.png]boop[/url][/s]

found it, it's in hudmatchstatus.res and it's RoundSignModel
3864
#3864
0 Frags +

hudmatchstatus i think?
or something along those lines

hudmatchstatus i think?
or something along those lines
3865
#3865
0 Frags +
XenThePybroToxi-C-LoudHow can I add a custom hitmarker to my HUD? Like the one in the TF2's Overwatch HUD
in your hudanimations file look for event DamagedPlayer

put your animation there and whenever you hurt someone that animation will get triggered

Can you teach me how to do animations? please

[quote=XenThePybro][quote=Toxi-C-Loud]How can I add a custom hitmarker to my HUD? Like the one in the TF2's Overwatch HUD[/quote]

in your hudanimations file look for event DamagedPlayer

put your animation there and whenever you hurt someone that animation will get triggered
[/quote]

Can you teach me how to do animations? please
3866
#3866
0 Frags +

how do i edit the color of the xp bar when u get points

https://a.pomf.cat/doytgy.png

how do i edit the color of the xp bar when u get points
[img]https://a.pomf.cat/doytgy.png[/img]
3867
#3867
0 Frags +
Cassiahow do i edit the color of the xp bar when u get points
https://a.pomf.cat/doytgy.png

its in hudanimations somewhere search for pvpranklevelup or something like that

Toxi-C-LoudXenThePybroToxi-C-LoudHow can I add a custom hitmarker to my HUD? Like the one in the TF2's Overwatch HUD
in your hudanimations file look for event DamagedPlayer

put your animation there and whenever you hurt someone that animation will get triggered

Can you teach me how to do animations? please

1. Go to hudfolder/scripts and find your hudanimations file. Generally it is called hudanimations_<hudname> but it could be anything. Inside it you will find stuff that looks simmilar to this:

Show Content
[code]//Health Bonus Pulse
event HudHealthBonusPulse
{
Animate PlayerStatusHealthValue Fgcolor "Buff" Linear 0.0 0.0
Animate PlayerStatusHealthValue Fgcolor "BuffDark" Linear 0.0 0.5
Animate PlayerStatusHealthValue Fgcolor "Buff" Linear 0.5 0.5

Animate PlayerStatusHealthValueBg Bgcolor "BuffLight" Linear 0.0 0.0
Animate PlayerStatusHealthValueBg Bgcolor "BuffDark" Linear 0.0 0.5
Animate PlayerStatusHealthValueBg Bgcolor "BuffLight" Linear 0.5 0.5

Runevent HudHealthBonusPulse 1
}
[/code]

2. Search for event DamagedPlayer
and if it is not there go to the very bottom of the file and paste this

event DamagedPlayer
{
	// empty
}

3. Go to hudfolder/scripts and open up hudlayout.res

4. Read this guide on making a hud crosshair

5. Now you just need to animate your crosshair when you do damage.

put

"alpha"             "0"

underneath

"enabled"          "1"

Then go into the hudanimations.res file that you found earlier

Find the damagedplayer event from earlier and put this into the brackets {}

 animate <What your crosshairs fieldName is> alpha 255 linear 0.0 0.0
animate <What your crosshairs fieldName is> alpha 255 linear <time before hitmarker starts to fade in seconds> <time for hitmarker to fade in seconds>

The you should be done :)

[quote=Cassia]how do i edit the color of the xp bar when u get points
[img]https://a.pomf.cat/doytgy.png[/img][/quote]

its in hudanimations somewhere search for pvpranklevelup or something like that

[quote=Toxi-C-Loud][quote=XenThePybro][quote=Toxi-C-Loud]How can I add a custom hitmarker to my HUD? Like the one in the TF2's Overwatch HUD[/quote]

in your hudanimations file look for event DamagedPlayer

put your animation there and whenever you hurt someone that animation will get triggered
[/quote]

Can you teach me how to do animations? please[/quote]


1. Go to hudfolder/scripts and [b]find your hudanimations file[/b]. Generally it is called hudanimations_<hudname> but it could be anything. Inside it you will find stuff that looks simmilar to this:

[spoiler][code]//Health Bonus Pulse
event HudHealthBonusPulse
{
Animate PlayerStatusHealthValue Fgcolor "Buff" Linear 0.0 0.0
Animate PlayerStatusHealthValue Fgcolor "BuffDark" Linear 0.0 0.5
Animate PlayerStatusHealthValue Fgcolor "Buff" Linear 0.5 0.5

Animate PlayerStatusHealthValueBg Bgcolor "BuffLight" Linear 0.0 0.0
Animate PlayerStatusHealthValueBg Bgcolor "BuffDark" Linear 0.0 0.5
Animate PlayerStatusHealthValueBg Bgcolor "BuffLight" Linear 0.5 0.5

Runevent HudHealthBonusPulse 1
}
[/code][/spoiler]

2. Search for [i]event DamagedPlayer
[/i] and if it is not there go to the very bottom of the file and paste this

[code]event DamagedPlayer
{
// empty
}
[/code]

3. Go to hudfolder/scripts and open up [b]hudlayout.res[/b]

4. Read [url=http://huds.tf/forum/showthread.php?tid=23]this[/url] guide on making a hud crosshair

5. Now you just need to animate your crosshair when you do damage.

put

[code]"alpha" "0"[/code]

underneath

[code]"enabled" "1"[/code]


Then go into the [b]hudanimations.res [/b]file that you found earlier

Find the damagedplayer event from earlier and put this into the brackets {}

[code] animate <What your crosshairs fieldName is> alpha 255 linear 0.0 0.0
animate <What your crosshairs fieldName is> alpha 255 linear <time before hitmarker starts to fade in seconds> <time for hitmarker to fade in seconds>
[/code]

The you should be done :)
3868
#3868
whitelist.tf
1 Frags +

Xen, don't forget about the FPS drops when dealing damage and having hitmarkers, this can be fixed by creating a different event and calling that from the DamagedPlayer event.

Xen, don't forget about the [url=https://www.reddit.com/r/tf2/comments/57760o/cause_and_fix_for_serious_fpsdrop_issue_involving/]FPS drops[/url] when dealing damage and having hitmarkers, this can be [url=http://huds.tf/forum/showthread.php?tid=345]fixed by creating a different event[/url] and calling that from the [i]DamagedPlayer[/i] event.
3869
#3869
0 Frags +
XenThePybroCassiahow do i edit the color of the xp bar when u get points
https://a.pomf.cat/doytgy.png

its in hudanimations somewhere search for pvpranklevelup or something like that

if u mean PvPRankLevelUpXPBar i already tried that and it didnt work. it only gets triggered when u actually rank up i believe and even then the actual xp bar didnt change unless i fucked something up

[quote=XenThePybro][quote=Cassia]how do i edit the color of the xp bar when u get points
[img]https://a.pomf.cat/doytgy.png[/img][/quote]

its in hudanimations somewhere search for pvpranklevelup or something like that

[/quote]

if u mean PvPRankLevelUpXPBar i already tried that and it didnt work. it only gets triggered when u actually rank up i believe and even then the actual xp bar didnt change unless i fucked something up
3870
#3870
0 Frags +
CassiaXenThePybroCassiahow do i edit the color of the xp bar when u get points
https://a.pomf.cat/doytgy.png

its in hudanimations somewhere search for pvpranklevelup or something like that

if u mean PvPRankLevelUpXPBar i already tried that and it didnt work. it only gets triggered when u actually rank up i believe and even then the actual xp bar didnt change unless i fucked something up

I tried to change it awhile ago for something i was working on and I managed to change the MM one but not casual

[quote=Cassia][quote=XenThePybro][quote=Cassia]how do i edit the color of the xp bar when u get points
[img]https://a.pomf.cat/doytgy.png[/img][/quote]

its in hudanimations somewhere search for pvpranklevelup or something like that

[/quote]

if u mean PvPRankLevelUpXPBar i already tried that and it didnt work. it only gets triggered when u actually rank up i believe and even then the actual xp bar didnt change unless i fucked something up[/quote]

I tried to change it awhile ago for something i was working on and I managed to change the MM one but not casual
1 ⋅⋅ 126 127 128 129 130 131 132 ⋅⋅ 202
Please sign in through STEAM to post a comment.