Tremulous Forum

General => Feedback => Topic started by: lesbroot on June 25, 2007, 12:28:58 pm

Title: change color of human crosshairs
Post by: lesbroot on June 25, 2007, 12:28:58 pm
hey!
I would like to change the color of human crosshairs, but dont know how..  i found something in data-1.1.0-pk3/scripts/crosshairs.shader
anyone know how to edit this? or i need to edit another thing?
thx
Title: change color of human crosshairs
Post by: .f0rqu3 on June 25, 2007, 12:32:51 pm
it is white you see? you need a custom hud
Title: change color of human crosshairs
Post by: lesbroot on June 25, 2007, 12:43:37 pm
no but i need red or green crosshairs.. i tried this:
cg_drawcrosshair 0
and in a hud file:
Code: [Select]
//crosshair
itemDef
{
name "crosshair"
rect 312 232 16 16
visible 1
decoration
forecolor 1.0 0.0 0.0 0.6
style WINDOW_STYLE_SHADER
background "gfx/2d/crosshair-rifle.tga"
}


but its too ugly.. for example the shotgun has got another crosshair.. how to change it?
Title: change color of human crosshairs
Post by: Plague Bringer on June 25, 2007, 02:29:12 pm
Nav to your gfx/2d/ folder and edit crosshair-rifle.tga, crosshair-shotgun.tga and etc.
Title: change color of human crosshairs
Post by: Paradox on June 25, 2007, 04:39:15 pm
You dont edit the tga to affect color, they are all 3 channels for a reason.

To swap out individual crosshairs you edit the appropriate weapon.cfg file for that weapon, ie shotgun would be data-1.1.0.pk3/models/weapons/shotgun/weapon.cfg


The color line is in RGBA, ie
1.0 0.0 0.0 1.0 is red with 100% opacity
0.0 1.0 0.0 1.0 is green with 100% opacity
0.0 0.0 1.0 1.0 is blue with 100% opacity
You can miix and match to get other colors too.
Title: change color of human crosshairs
Post by: lesbroot on June 25, 2007, 04:50:26 pm
thanks <3