Upvote Upvoted 327 Downvote Downvoted
1 ⋅⋅ 116 117 118 119 120 121 122 ⋅⋅ 232
HUD editing: short questions, quick answers
posted in Customization
3541
#3541
0 Frags +

how do I divide up clientscheme.res with #base? Whenever I try the colours get screwed up.

how do I divide up clientscheme.res with #base? Whenever I try the colours get screwed up.
3542
#3542
whitelist.tf
0 Frags +

@TheFastFreak: huditemeffectmeter_killstreak.res just mess with xpos(_minmode) and hud_reloadscheme to position it

@XenThePybro: look at code from huds already using #base for clientscheme.res
Things to look out for:
- order of the #base include lines (first will be used over similar/same definitions in the second file)
- stuff in the hudfolder/resource/clientscheme.res file with the #base includes overrides what is in the included files

@TheFastFreak: huditemeffectmeter_killstreak.res just mess with xpos(_minmode) and hud_reloadscheme to position it

@XenThePybro: look at code from huds already using #base for clientscheme.res
Things to look out for:
- order of the #base include lines (first will be used over similar/same definitions in the second file)
- stuff in the hudfolder/resource/clientscheme.res file with the #base includes overrides what is in the included files
3543
#3543
0 Frags +

Does anyone know how to edit the time left in the round e.g. time left until red wins in payload or attack/defense?

Does anyone know how to edit the time left in the round e.g. time left until red wins in payload or attack/defense?
3544
#3544
whitelist.tf
0 Frags +

local server payload map, nav_generate, spawn some bots with "tf_bot_add 12" and mp_tournament 1 with mp_tournament_stopwatch 1 and edit the hudstopwatch.res file?

local server payload map, nav_generate, spawn some bots with "tf_bot_add 12" and mp_tournament 1 with mp_tournament_stopwatch 1 and edit the hudstopwatch.res file?
3545
#3545
0 Frags +

I have a 3 part question

1. How do I put a colon between my kills and deaths?
2. How can I fix the map name? they all show up as unknown
3. How do I change the color of the numbers on the scoreboard? When I change the RGB values in scoreboard.res they just remain neon green

http://imgur.com/a/fuVmB

I have a 3 part question

1. How do I put a colon between my kills and deaths?
2. How can I fix the map name? they all show up as unknown
3. How do I change the color of the numbers on the scoreboard? When I change the RGB values in scoreboard.res they just remain neon green

http://imgur.com/a/fuVmB
3546
#3546
whitelist.tf
0 Frags +

1. Create a new element with a colon as LabelText and position it between your K/D
2. update your scoreboard.res file (look at the default one to see which element is now the mapname)
3. duplicate all elements, change element name and ControlName and change the fgcolor_override

1. Create a new element with a colon as [i]LabelText[/i] and position it between your K/D
2. update your scoreboard.res file (look at the default one to see which element is now the mapname)
3. duplicate all elements, change element name and [i]ControlName[/i] and change the fgcolor_override
3547
#3547
0 Frags +

How can I lift the bots info a bit so it doesn't clip with the players' status?

https://imgur.com/zc9j1zU

Is there a way I can make that "win conditions" not show up on MvM? Such as using "if_mvm"?

How can I lift the bots info a bit so it doesn't clip with the players' status?

https://imgur.com/zc9j1zU

Is there a way I can make that "win conditions" not show up on MvM? Such as using "if_mvm"?
3548
#3548
0 Frags +
Wiethoofdlocal server payload map, nav_generate, spawn some bots with "tf_bot_add 12" and mp_tournament 1 with mp_tournament_stopwatch 1 and edit the hudstopwatch.res file?

no not that timer. I mean for pubs and casual.

[quote=Wiethoofd]local server payload map, nav_generate, spawn some bots with "tf_bot_add 12" and mp_tournament 1 with mp_tournament_stopwatch 1 and edit the hudstopwatch.res file?[/quote]

no not that timer. I mean for pubs and casual.
3549
#3549
0 Frags +

Using HudasIscariote's version 1.7.3. However at the end of playing casual, im unable to see the entire leaderboard. Any known fix?

Show Content
does anybody know a working version of broselhud?
Using HudasIscariote's version 1.7.3. However at the end of playing casual, im unable to see the entire leaderboard. Any known fix?

[spoiler] does anybody know a working version of broselhud? [/spoiler]
3550
#3550
0 Frags +
faultyfive
Show Content
does anybody know a working version of broselhud?

assuming you're asking for the old broselhud and not broselhud blue, look in this thread.

[quote=faultyfive][spoiler] does anybody know a working version of broselhud? [/spoiler][/quote]
assuming you're asking for the old broselhud and not broselhud blue, look in [url=http://www.teamfortress.tv/33738/ive-updated-some-huds]this thread[/url].
3551
#3551
1 Frags +
Konceptfaultyfive
Show Content
does anybody know a working version of broselhud?
assuming you're asking for the old broselhud and not broselhud blue, look in this thread.

Thanks!

[quote=Koncept][quote=faultyfive][spoiler] does anybody know a working version of broselhud? [/spoiler][/quote]
assuming you're asking for the old broselhud and not broselhud blue, look in [url=http://www.teamfortress.tv/33738/ive-updated-some-huds]this thread[/url].[/quote]

Thanks!
3552
#3552
0 Frags +
			"QueueEstimation"
			{
				"ControlName"		"Label"
				"fieldName"		"QueueEstimation"
				"xpos"		"rs1-5"
				"ypos"		"18"
				"zpos"		"0"
				"wide"		"f0"
				"tall"		"20"
				"proportionaltoparent"	"1"
				"labeltext"		"#TF_Casual_QueueEstimation"
				"textAlignment"	"east"
				"font"			"HudFontSmallest"
				"fgcolor_override"	"TanLight"
				"textinsetx"	"5"
				"visible"	"1"

				"mouseinputenabled"	"0"
			}

is this broken like %playername%? It is set to be invisible by default and displays Estimated Wait: %s1

This is for casual matchmaking and is located in lobbypanel_casual. The text displays to the right of the text that says how many maps you have selected.

[code] "QueueEstimation"
{
"ControlName" "Label"
"fieldName" "QueueEstimation"
"xpos" "rs1-5"
"ypos" "18"
"zpos" "0"
"wide" "f0"
"tall" "20"
"proportionaltoparent" "1"
"labeltext" "#TF_Casual_QueueEstimation"
"textAlignment" "east"
"font" "HudFontSmallest"
"fgcolor_override" "TanLight"
"textinsetx" "5"
"visible" "1"

"mouseinputenabled" "0"
}[/code]

is this broken like %playername%? It is set to be invisible by default and displays Estimated Wait: %s1

This is for casual matchmaking and is located in lobbypanel_casual. The text displays to the right of the text that says how many maps you have selected.
3553
#3553
0 Frags +

http://i.imgur.com/4YmKl0j.jpg

the item / shop buttons get shopped off after reaching a certain point, does anyone know how to fix this?

https://i.gyazo.com/dab459946cc24fcbb14b7cfbf5d2d753.gif

also how do i get rid of the black background and the scrollballing function

[img]http://i.imgur.com/4YmKl0j.jpg[/img]
the item / shop buttons get shopped off after reaching a certain point, does anyone know how to fix this?
[img]https://i.gyazo.com/dab459946cc24fcbb14b7cfbf5d2d753.gif[/img]
also how do i get rid of the black background and the scrollballing function
3554
#3554
0 Frags +
Smesihttp://i.imgur.com/4YmKl0j.jpg
the item / shop buttons get shopped off after reaching a certain point, does anyone know how to fix this?
https://i.gyazo.com/dab459946cc24fcbb14b7cfbf5d2d753.gif
also how do i get rid of the black background and the scrollballing function

navigate to feedmesmesihud/resource/ui/mainmenuoverride.res
locate the buttons
Increase the width and/or height

if that does not work check if they are in a container/panel. The stock hud dropdown play menu are in a gazillion containers. Check for proportionaltoparent which if set to 1 makes the child hud item think that the width and height of the screen is the width and height of the parent. Try to increase the heigh/width of the parent and see if that makes it better.

Lastly check in your hudanimations folder. If you have not already add the MMenu_playlist_container animations to your file. It screws around with the height.

---------------------------------------------------------------------------------------------------------------------------------------------------------------
my turn
1. someone tell me how to edit the round timers in casual + pubs

2. how do i edit the bit at the top of the screen that shows how many people are alive/dead in casual

3. i screwed with #base for my clientscheme and a font switcher but now it has locked my font to roboto which was one of them. This happened before and I fixed it with a restart/fixing clientscheme.res. Anyone else have that problem?

yes i will keep flooding this thread until someone tells me no. 1

[quote=Smesi][img]http://i.imgur.com/4YmKl0j.jpg[/img]
the item / shop buttons get shopped off after reaching a certain point, does anyone know how to fix this?
[img]https://i.gyazo.com/dab459946cc24fcbb14b7cfbf5d2d753.gif[/img]
also how do i get rid of the black background and the scrollballing function[/quote]

navigate to feedmesmesihud/resource/ui/mainmenuoverride.res
locate the buttons
Increase the width and/or height

if that does not work check if they are in a container/panel. The stock hud dropdown play menu are in a gazillion containers. Check for proportionaltoparent which if set to 1 makes the child hud item think that the width and height of the screen is the width and height of the parent. Try to increase the heigh/width of the parent and see if that makes it better.

Lastly check in your hudanimations folder. If you have not already add the MMenu_playlist_container animations to your file. It screws around with the height.

---------------------------------------------------------------------------------------------------------------------------------------------------------------
my turn
1. someone tell me how to edit the round timers in casual + pubs

2. how do i edit the bit at the top of the screen that shows how many people are alive/dead in casual

3. i screwed with #base for my clientscheme and a font switcher but now it has locked my font to roboto which was one of them. This happened before and I fixed it with a restart/fixing clientscheme.res. Anyone else have that problem?

yes i will keep flooding this thread until someone tells me no. 1
3555
#3555
whitelist.tf
0 Frags +

@Xen
1. just local server with bots should do just fine, recording a demo also works
- The main Objective Timer is located in HudMatchStatus.res and the text below timers in HudObjectiveTimePanel.res
- if_comp for casual/ranked to move things around if necessary

2. idle in casual, stack with friends so you don't get kicked, also HudMatchStatus.res the teamstatus element, animations for dead panel are in hudanimations_tf.txt

@SMESI
vgui_drawtree + Highlight Selected in main menu should work just fine to figure out the bounding boxes of elements, the shop + items are now wrapped in an element, simply moving that should work fine

The scrolling should be fixable by simply making the parent bigger and also change the border of it to NoBorder with a bgcolor_override that makes it transparent (again, vgui_drawtree should be your best friend as hud dev)

@Xen
1. just local server with bots should do just fine, recording a demo also works
- The main Objective Timer is located in HudMatchStatus.res and the text below timers in HudObjectiveTimePanel.res
- if_comp for casual/ranked to move things around if necessary

2. idle in casual, stack with friends so you don't get kicked, also HudMatchStatus.res the teamstatus element, animations for dead panel are in hudanimations_tf.txt

@SMESI
vgui_drawtree + Highlight Selected in main menu should work just fine to figure out the bounding boxes of elements, the shop + items are now wrapped in an element, simply moving that should work fine

The scrolling should be fixable by simply making the parent bigger and also change the border of it to [i]NoBorder[/i] with a bgcolor_override that makes it transparent (again, vgui_drawtree should be your best friend as hud dev)
3556
#3556
0 Frags +

http://puu.sh/qQQbx/bd82196daa.png

What file would allow me to edit this text? I apologise if this question has been repeated, but I'd rather not search though ~120 pages right now haha.

http://puu.sh/qQQbx/bd82196daa.png

What file would allow me to edit this text? I apologise if this question has been repeated, but I'd rather not search though ~120 pages right now haha.
3557
#3557
0 Frags +
Scapegoat4http://puu.sh/qQQbx/bd82196daa.png

What file would allow me to edit this text? I apologise if this question has been repeated, but I'd rather not search though ~120 pages right now haha.

resource/ui/mainmenuoverride.res - buttons and stuff that shows up in the main menu will at least have one panel here but unless you want to edit the stream list everything will be in here
resource/gamemenu.res - some buttons have images/parameters here. You should be able to make sense of it

scripts/yourhudanimationsfile.txt - look for MMenu_Lobby_Containerframe or something along those lines. Animates what happens when you click on the find a game button.

[quote=Scapegoat4]http://puu.sh/qQQbx/bd82196daa.png

What file would allow me to edit this text? I apologise if this question has been repeated, but I'd rather not search though ~120 pages right now haha.[/quote]

resource/ui/mainmenuoverride.res - buttons and stuff that shows up in the main menu will at least have one panel here but unless you want to edit the stream list everything will be in here
resource/gamemenu.res - some buttons have images/parameters here. You should be able to make sense of it

scripts/yourhudanimationsfile.txt - look for MMenu_Lobby_Containerframe or something along those lines. Animates what happens when you click on the find a game button.
3558
#3558
0 Frags +
XenThePybroScapegoat4http://puu.sh/qQQbx/bd82196daa.png

What file would allow me to edit this text? I apologise if this question has been repeated, but I'd rather not search though ~120 pages right now haha.

resource/ui/mainmenuoverride.res - buttons and stuff that shows up in the main menu will at least have one panel here but unless you want to edit the stream list everything will be in here
resource/gamemenu.res - some buttons have images/parameters here. You should be able to make sense of it

scripts/yourhudanimationsfile.txt - look for MMenu_Lobby_Containerframe or something along those lines. Animates what happens when you click on the find a game button.

I've checked those files recently (today, even), but I've haven't been able to just change the text so say, "items" becomes "stash" or something similar. This could be a toonhud specific thing, I'll try some other HUDs and see what's different.

EDIT: Almost forgot to say thanks for your quick reply!

[quote=XenThePybro][quote=Scapegoat4]http://puu.sh/qQQbx/bd82196daa.png

What file would allow me to edit this text? I apologise if this question has been repeated, but I'd rather not search though ~120 pages right now haha.[/quote]

resource/ui/mainmenuoverride.res - buttons and stuff that shows up in the main menu will at least have one panel here but unless you want to edit the stream list everything will be in here
resource/gamemenu.res - some buttons have images/parameters here. You should be able to make sense of it

scripts/yourhudanimationsfile.txt - look for MMenu_Lobby_Containerframe or something along those lines. Animates what happens when you click on the find a game button.[/quote]

I've checked those files recently (today, even), but I've haven't been able to just change the text so say, "items" becomes "stash" or something similar. This could be a toonhud specific thing, I'll try some other HUDs and see what's different.

EDIT: Almost forgot to say thanks for your quick reply!
3559
#3559
-2 Frags +

I'm trying to add a team colored bar in target id but I can't change the height or the opacity. Here's my code

"TargetIDBG"
{
"ControlName" "CTFImagePanel"
"fieldName" "TargetIDBG"
"xpos" "0"
"ypos" "23"
"zpos" "-5"
"wide" "252"
"tall" "1"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"image" "replay/thumbnails/bg_black"
"scaleImage" "1"
"teambg_1" "/replay/thumbnails/bg_black"
"teambg_2" "replay/thumbnails/bg_red"
"teambg_3" "replay/thumbnails/bg_blue"

"src_corner_height" "23"
"src_corner_width" "23"
"draw_corner_width" "0"
"draw_corner_height" "0"
}

"TargetIDBG_Spec_Blue"
{
"ControlName" "ScalableImagePanel"
"fieldName" "TargetIDBG_Spec_Blue"
"xpos" "0"
"ypos" "23"
"zpos" "-5"
"wide" "252"
"tall" "1"
"autoResize" "0"
"pinCorner" "0"
"visible" "0"
"enabled" "1"
"image" "replay/thumbnails/bg_blue"

"src_corner_height" "3"
"src_corner_width" "3"
"draw_corner_width" "0"
"draw_corner_height" "0"
}

"TargetIDBG_Spec_Red"
{
"ControlName" "ScalableImagePanel"
"fieldName" "TargetIDBG_Spec_Red"
"xpos" "0"
"ypos" "23"
"zpos" "-5"
"wide" "252"
"tall" "1"
"autoResize" "0"
"pinCorner" "0"
"visible" "0"
"enabled" "1"
"image" ".replay/thumbnails/bg_red"

"src_corner_height" "3"
"src_corner_width" "3"
"draw_corner_width" "0"
"draw_corner_height" "0"
}

I'm trying to add a team colored bar in target id but I can't change the height or the opacity. Here's my code

"TargetIDBG"
{
"ControlName" "CTFImagePanel"
"fieldName" "TargetIDBG"
"xpos" "0"
"ypos" "23"
"zpos" "-5"
"wide" "252"
"tall" "1"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"image" "replay/thumbnails/bg_black"
"scaleImage" "1"
"teambg_1" "/replay/thumbnails/bg_black"
"teambg_2" "replay/thumbnails/bg_red"
"teambg_3" "replay/thumbnails/bg_blue"

"src_corner_height" "23"
"src_corner_width" "23"
"draw_corner_width" "0"
"draw_corner_height" "0"
}

"TargetIDBG_Spec_Blue"
{
"ControlName" "ScalableImagePanel"
"fieldName" "TargetIDBG_Spec_Blue"
"xpos" "0"
"ypos" "23"
"zpos" "-5"
"wide" "252"
"tall" "1"
"autoResize" "0"
"pinCorner" "0"
"visible" "0"
"enabled" "1"
"image" "replay/thumbnails/bg_blue"

"src_corner_height" "3"
"src_corner_width" "3"
"draw_corner_width" "0"
"draw_corner_height" "0"
}

"TargetIDBG_Spec_Red"
{
"ControlName" "ScalableImagePanel"
"fieldName" "TargetIDBG_Spec_Red"
"xpos" "0"
"ypos" "23"
"zpos" "-5"
"wide" "252"
"tall" "1"
"autoResize" "0"
"pinCorner" "0"
"visible" "0"
"enabled" "1"
"image" ".replay/thumbnails/bg_red"

"src_corner_height" "3"
"src_corner_width" "3"
"draw_corner_width" "0"
"draw_corner_height" "0"
}
3560
#3560
0 Frags +

http://i.imgur.com/2442rEH.png

Is there a way to get custom overheals to work on sv_pure 2?

[img]http://i.imgur.com/2442rEH.png[/img]
Is there a way to get custom overheals to work on sv_pure 2?
3561
#3561
whitelist.tf
0 Frags +
Scapegoat4resource/gamemenu.res - some buttons have images/parameters here. You should be able to make sense of it

I've checked those files recently (today, even), but I've haven't been able to just change the text so say, "items" becomes "stash" or something similar.[/quote]
Changing the text on the labels that are positioned in MainMenuOverride.res is done by changing 'Labeltext' in GameMenu.res, you will 'kill' localization and effectively hardcode the text that shows up.

@N1ghT move the bonushealth image to vgui/replay/thumbnails and change the path in hudplayerhealth.res, that should keep custom hud images working on sv_pure 2

[quote=Scapegoat4]resource/gamemenu.res - some buttons have images/parameters here. You should be able to make sense of it[/quote]
I've checked those files recently (today, even), but I've haven't been able to just change the text so say, "items" becomes "stash" or something similar.[/quote]
Changing the text on the labels that are positioned in MainMenuOverride.res is done by changing 'Labeltext' in [i]GameMenu.res[/i], you will 'kill' localization and effectively hardcode the text that shows up.

[b]@N1ghT[/b] move the bonushealth image to vgui/replay/thumbnails and change the path in hudplayerhealth.res, that should keep custom hud images working on sv_pure 2
3562
#3562
2 Frags +

Could anyone help me with updating this HUD

It needs the casual drop down menu and such

Could anyone help me with updating this [url=https://drive.google.com/folderview?id=0BwU5VUXBOGvDUThjbGVDVE82WDA&usp=sharing]HUD [/url]

It needs the casual drop down menu and such
3563
#3563
1 Frags +
GrinReaperCould anyone help me with updating this HUD

It needs the casual drop down menu and such
Merekahud with m0rehud black elements (updated for MYM)
Screenshots
DL
Starkie used this hud in his recent frag video, if you want to see what it looks like in action

I'm pretty sure it's updated here ^. This was in the Custom Hud Modifications thread

[quote=GrinReaper]Could anyone help me with updating this [url=https://drive.google.com/folderview?id=0BwU5VUXBOGvDUThjbGVDVE82WDA&usp=sharing]HUD [/url]

It needs the casual drop down menu and such[/quote]
[quote=Merek]ahud with m0rehud black elements (updated for MYM)
[url=http://imgur.com/a/b0sNI]Screenshots[/url]
[url=https://www.dropbox.com/s/63eoz8aw8si9x66/ahud-m0rehud.rar?dl=0]DL[/url]
Starkie used this hud in his [url=https://www.youtube.com/watch?v=XwNdjcsiEVE]recent frag video[/url], if you want to see what it looks like in action[/quote]
I'm pretty sure it's updated here ^. This was in the Custom Hud Modifications thread
3564
#3564
0 Frags +

Is there any rule regarding mac and font placement? It seems with some fonts are more centered and some are not and font types do not seem to make a difference.

Is there any rule regarding mac and font placement? It seems with some fonts are more centered and some are not and font types do not seem to make a difference.
3565
#3565
0 Frags +
duck_I'm trying to add a team colored bar in target id but I can't change the height or the opacity. Here's my code

....

if you want it to work with classes that can see both teams you need to use the stock team coloured box. The opacity is controlled with tf_hud_target_id_alpha which is actually a console command and you cannot change the width or the heigh without refracts which have their own problems. Try to oversize it so you only see a bar at the top or bottom if you want a team indicator or cover it up. Unless if you want to use a refract. Blah. Bleh. Blooooo.

[quote=duck_]I'm trying to add a team colored bar in target id but I can't change the height or the opacity. Here's my code

....[/quote]

if you want it to work with classes that can see both teams you need to use the stock team coloured box. The opacity is controlled with tf_hud_target_id_alpha which is actually a console command and you cannot change the width or the heigh without refracts which have their own problems. Try to oversize it so you only see a bar at the top or bottom if you want a team indicator or cover it up. Unless if you want to use a refract. Blah. Bleh. Blooooo.
3566
#3566
0 Frags +
WiethoofdScapegoat4resource/gamemenu.res - some buttons have images/parameters here. You should be able to make sense of itI've checked those files recently (today, even), but I've haven't been able to just change the text so say, "items" becomes "stash" or something similar.Changing the text on the labels that are positioned in MainMenuOverride.res is done by changing 'Labeltext' in GameMenu.res, you will 'kill' localization and effectively hardcode the text that shows up.

I figured it out again before I saw this post, but thank you nonetheless

[quote=Wiethoofd][quote=Scapegoat4]resource/gamemenu.res - some buttons have images/parameters here. You should be able to make sense of it[/quote]
I've checked those files recently (today, even), but I've haven't been able to just change the text so say, "items" becomes "stash" or something similar.[/quote]

[quote]Changing the text on the labels that are positioned in MainMenuOverride.res is done by changing 'Labeltext' in [i]GameMenu.res[/i], you will 'kill' localization and effectively hardcode the text that shows up.[/quote]

I figured it out again before I saw this post, but thank you nonetheless
3567
#3567
0 Frags +

Is there any way to remove the white square that appears over a control point when someone is capping it? Here's a picture to get a better understanding of what I mean, in case I wasn't clear: http://i.imgur.com/dsTtDcy.png

Is there any way to remove the white square that appears over a control point when someone is capping it? Here's a picture to get a better understanding of what I mean, in case I wasn't clear: http://i.imgur.com/dsTtDcy.png
3568
#3568
1 Frags +
XenThePybroduck_I'm trying to add a team colored bar in target id but I can't change the height or the opacity. Here's my code

....

if you want it to work with classes that can see both teams you need to use the stock team coloured box. The opacity is controlled with tf_hud_target_id_alpha which is actually a console command and you cannot change the width or the heigh without refracts which have their own problems. Try to oversize it so you only see a bar at the top or bottom if you want a team indicator or cover it up. Unless if you want to use a refract. Blah. Bleh. Blooooo.

I was able to do this http://puu.sh/qSC1r/8808dc5761.jpg. How would I do refeacts to change the height and width.

[quote=XenThePybro][quote=duck_]I'm trying to add a team colored bar in target id but I can't change the height or the opacity. Here's my code

....[/quote]

if you want it to work with classes that can see both teams you need to use the stock team coloured box. The opacity is controlled with tf_hud_target_id_alpha which is actually a console command and you cannot change the width or the heigh without refracts which have their own problems. Try to oversize it so you only see a bar at the top or bottom if you want a team indicator or cover it up. Unless if you want to use a refract. Blah. Bleh. Blooooo.[/quote]
I was able to do this http://puu.sh/qSC1r/8808dc5761.jpg. How would I do refeacts to change the height and width.
3569
#3569
1 Frags +

how would you fix enlarged inventory icons when picking a weapon in the loadout screen?

pic:

Show Content
how would you fix enlarged inventory icons when picking a weapon in the loadout screen?

pic:
[spoiler][img]http://images.akamai.steamusercontent.com/ugc/264971844591403822/FB21A199BA95A8D39A938650FB42D91819360350/[/img][/spoiler]
3570
#3570
0 Frags +
duck_XenThePybroduck_I'm trying to add a team colored bar in target id but I can't change the height or the opacity. Here's my code

....

if you want it to work with classes that can see both teams you need to use the stock team coloured box. The opacity is controlled with tf_hud_target_id_alpha which is actually a console command and you cannot change the width or the heigh without refracts which have their own problems. Try to oversize it so you only see a bar at the top or bottom if you want a team indicator or cover it up. Unless if you want to use a refract. Blah. Bleh. Blooooo.
I was able to do this http://puu.sh/qSC1r/8808dc5761.jpg. How would I do refeacts to change the height and width.

it works the same way transparent viewmodels do.
ok firstly you need to create yourself a .vtf
make it solid white and change the opacity to how much you want to cover up and if you don't want to download something use this website: http://tf.heybey.org/vtfconv/

then you need to create a vmt. It is just a text file with .vmt on the end.

Paste this into the vmt:

"Refract"
{
	"%keywords" "tf"
	"$refractamount" "0.0"
	"$refracttint" "{255 255 255}"
	"$refractblur" "0.0"

	"$scale" "[1 1]"
	"$normalmap" "vgui/replay/thumbnails/vtf file"
}

you can remove the "%keywords" bit
"$normalmap" is where the .vtf file is located.

Screw around with different values and transparencies of the file until you get what you want.

Don't forget to put it in materials/vgui/replay/thumbnails or a folder inside there or it will not work on sv_pure.

Then just use an imagepanel and use that vmt as the image on top of what you want to cover up.

JarateKing's PrismHud and a post a few pages before here (117 I think?) has some more information if you need it

[quote=duck_][quote=XenThePybro][quote=duck_]I'm trying to add a team colored bar in target id but I can't change the height or the opacity. Here's my code

....[/quote]

if you want it to work with classes that can see both teams you need to use the stock team coloured box. The opacity is controlled with tf_hud_target_id_alpha which is actually a console command and you cannot change the width or the heigh without refracts which have their own problems. Try to oversize it so you only see a bar at the top or bottom if you want a team indicator or cover it up. Unless if you want to use a refract. Blah. Bleh. Blooooo.[/quote]
I was able to do this http://puu.sh/qSC1r/8808dc5761.jpg. How would I do refeacts to change the height and width.[/quote]

it works the same way transparent viewmodels do.
ok firstly you need to create yourself a .vtf
make it solid white and change the opacity to how much you want to cover up and if you don't want to download something use this website: http://tf.heybey.org/vtfconv/

then you need to create a vmt. It is just a text file with .vmt on the end.

Paste this into the vmt:

[code]"Refract"
{
"%keywords" "tf"
"$refractamount" "0.0"
"$refracttint" "{255 255 255}"
"$refractblur" "0.0"

"$scale" "[1 1]"
"$normalmap" "vgui/replay/thumbnails/vtf file"
}[/code]

you can remove the "%keywords" bit
"$normalmap" is where the .vtf file is located.

Screw around with different values and transparencies of the file until you get what you want.

Don't forget to put it in materials/vgui/replay/thumbnails or a folder inside there or it will not work on sv_pure.

Then just use an imagepanel and use that vmt as the image on top of what you want to cover up.


JarateKing's PrismHud and a post a few pages before here (117 I think?) has some more information if you need it
1 ⋅⋅ 116 117 118 119 120 121 122 ⋅⋅ 232
Please sign in through STEAM to post a comment.