Author Topic: change color of human crosshairs  (Read 3624 times)

lesbroot

  • Posts: 25
  • Turrets: +5/-1
change color of human crosshairs
« 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
[lesb]root

.f0rqu3

  • Guest
change color of human crosshairs
« Reply #1 on: June 25, 2007, 12:32:51 pm »
it is white you see? you need a custom hud

lesbroot

  • Posts: 25
  • Turrets: +5/-1
change color of human crosshairs
« Reply #2 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?
[lesb]root

Plague Bringer

  • Posts: 3815
  • Turrets: +147/-187
change color of human crosshairs
« Reply #3 on: June 25, 2007, 02:29:12 pm »
Nav to your gfx/2d/ folder and edit crosshair-rifle.tga, crosshair-shotgun.tga and etc.
U R A Q T

Paradox

  • Posts: 2612
  • Turrets: +253/-250
    • Paradox Designs
change color of human crosshairs
« Reply #4 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.

∧OMG ENTROPY∧

lesbroot

  • Posts: 25
  • Turrets: +5/-1
change color of human crosshairs
« Reply #5 on: June 25, 2007, 04:50:26 pm »
thanks <3
[lesb]root