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