News:

Come Chat with us live! Learn how HERE!

Main Menu

change color of human crosshairs

Started by lesbroot, June 25, 2007, 12:28:58 PM

lesbroot

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
[lesb]root

.f0rqu3

it is white you see? you need a custom hud

lesbroot

no but i need red or green crosshairs.. i tried this:
cg_drawcrosshair 0
and in a hud file:
//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?
[lesb]root

Plague Bringer

Nav to your gfx/2d/ folder and edit crosshair-rifle.tga, crosshair-shotgun.tga and etc.
U R A Q T

Paradox

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.

∧OMG ENTROPY∧

lesbroot

[lesb]root