From e28bdd7b296c0028aaa63ee1feb027c2f0ebde51 Mon Sep 17 00:00:00 2001 From: Ben Millwood Date: Sat, 3 Oct 2009 11:59:37 +0000 Subject: * Crosshairs dim when targeting teammates * Fix indentation in crosshairs.shader * remove some hopefully redundant cursordraw stuff --- scripts/crosshairs.shader | 229 +++------------------------------------------- 1 file changed, 11 insertions(+), 218 deletions(-) (limited to 'scripts') diff --git a/scripts/crosshairs.shader b/scripts/crosshairs.shader index e393f245..278a2963 100644 --- a/scripts/crosshairs.shader +++ b/scripts/crosshairs.shader @@ -4,8 +4,7 @@ gfx/2d/crosshair-alien_s { map gfx/2d/crosshair-alien.tga blendfunc blend - rgbgen const ( 1.0 0.0 0.0 ) - alphagen const 0.35 + rgbGen vertex } } @@ -15,8 +14,7 @@ gfx/2d/crosshair-rifle_s { map gfx/2d/crosshair-rifle.tga blendfunc blend - rgbgen const ( 0.0 0.8 1.0 ) - alphagen const 0.35 + rgbGen vertex } } @@ -26,8 +24,7 @@ gfx/2d/crosshair-prifle_s { map gfx/2d/crosshair-prifle.tga blendfunc blend - rgbgen const ( 0.0 0.8 1.0 ) - alphagen const 0.35 + rgbGen vertex } } @@ -37,8 +34,7 @@ gfx/2d/crosshair-chaingun_s { map gfx/2d/crosshair-chaingun.tga blendfunc blend - rgbgen const ( 0.0 0.8 1.0 ) - alphagen const 0.35 + rgbGen vertex } } @@ -48,8 +44,7 @@ gfx/2d/crosshair-mdriver_s { map gfx/2d/crosshair-mdriver.tga blendfunc blend - rgbgen const ( 0.0 0.8 1.0 ) - alphagen const 0.35 + rgbGen vertex } } @@ -59,8 +54,7 @@ gfx/2d/crosshair-lcannon_s { map gfx/2d/crosshair-lcannon.tga blendfunc blend - rgbgen const ( 0.0 0.8 1.0 ) - alphagen const 0.35 + rgbGen vertex } } @@ -70,8 +64,7 @@ gfx/2d/crosshair-lgun_s { map gfx/2d/crosshair-lgun.tga blendfunc blend - rgbgen const ( 0.0 0.8 1.0 ) - alphagen const 0.35 + rgbGen vertex } } @@ -81,213 +74,14 @@ gfx/2d/crosshair-flamer_s { clampmap gfx/2d/crosshair-flamer1.tga blendfunc blend - rgbgen const ( 0.0 0.8 1.0 ) - alphagen const 0.15 tcmod rotate 5 + rgbGen vertex } { clampmap gfx/2d/crosshair-flamer1.tga blendfunc blend - rgbgen const ( 0.0 0.8 1.0 ) - alphagen const 0.15 - tcmod rotate -5 - } -} -gfx/2d/crosshair-psaw -{ - nopicmip - { - map gfx/2d/crosshair-psaw.tga - blendfunc blend - rgbgen const ( 0.0 0.8 1.0 ) - alphagen const 0.35 - } -} - -*** 1,97 **** 0 -gfx/2d/crosshair-alien_s -{ - { - map gfx/2d/crosshair-alien.tga - blendfunc blend - rgbgen const ( 1.0 0.0 0.0 ) - alphagen const 0.35 - } -} - -gfx/2d/crosshair-rifle_s -{ - { - map gfx/2d/crosshair-rifle.tga - blendfunc blend - rgbgen const ( 0.0 0.8 1.0 ) - alphagen const 0.35 - } -} - -gfx/2d/crosshair-prifle_s -{ - { - map gfx/2d/crosshair-prifle.tga - blendfunc blend - rgbgen const ( 0.0 0.8 1.0 ) - alphagen const 0.35 - } -} - -gfx/2d/crosshair-chaingun_s -{ - { - map gfx/2d/crosshair-chaingun.tga - blendfunc blend - rgbgen const ( 0.0 0.8 1.0 ) - alphagen const 0.35 - } -} - -gfx/2d/crosshair-mdriver_s -{ - { - map gfx/2d/crosshair-mdriver.tga - blendfunc blend - rgbgen const ( 0.0 0.8 1.0 ) - alphagen const 0.35 - } -} - -gfx/2d/crosshair-lcannon_s -{ - { - map gfx/2d/crosshair-lcannon.tga - blendfunc blend - rgbgen const ( 0.0 0.8 1.0 ) - alphagen const 0.35 - } -} - -gfx/2d/crosshair-lgun_s -{ - { - map gfx/2d/crosshair-lgun.tga - blendfunc blend - rgbgen const ( 0.0 0.8 1.0 ) - alphagen const 0.35 - } -} - -gfx/2d/crosshair-flamer_s -{ - { - clampmap gfx/2d/crosshair-flamer1.tga - blendfunc blend - rgbgen const ( 0.0 0.8 1.0 ) - alphagen const 0.15 - tcmod rotate 5 - } - { - clampmap gfx/2d/crosshair-flamer1.tga - blendfunc blend - rgbgen const ( 0.0 0.8 1.0 ) - alphagen const 0.15 - tcmod rotate -5 - } -} -gfx/2d/crosshair-psaw -{ - { - map gfx/2d/crosshair-psaw.tga - blendfunc blend - rgbgen const ( 0.0 0.8 1.0 ) - alphagen const 0.35 - } -} - -*** 1,97 **** 0 -gfx/2d/crosshair-alien_s -{ - { - map gfx/2d/crosshair-alien.tga - blendfunc blend - rgbgen const ( 1.0 0.0 0.0 ) - alphagen const 0.35 - } -} - -gfx/2d/crosshair-rifle_s -{ - { - map gfx/2d/crosshair-rifle.tga - blendfunc blend - rgbgen const ( 0.0 0.8 1.0 ) - alphagen const 0.35 - } -} - -gfx/2d/crosshair-prifle_s -{ - { - map gfx/2d/crosshair-prifle.tga - blendfunc blend - rgbgen const ( 0.0 0.8 1.0 ) - alphagen const 0.35 - } -} - -gfx/2d/crosshair-chaingun_s -{ - { - map gfx/2d/crosshair-chaingun.tga - blendfunc blend - rgbgen const ( 0.0 0.8 1.0 ) - alphagen const 0.35 - } -} - -gfx/2d/crosshair-mdriver_s -{ - { - map gfx/2d/crosshair-mdriver.tga - blendfunc blend - rgbgen const ( 0.0 0.8 1.0 ) - alphagen const 0.35 - } -} - -gfx/2d/crosshair-lcannon_s -{ - { - map gfx/2d/crosshair-lcannon.tga - blendfunc blend - rgbgen const ( 0.0 0.8 1.0 ) - alphagen const 0.35 - } -} - -gfx/2d/crosshair-lgun_s -{ - { - map gfx/2d/crosshair-lgun.tga - blendfunc blend - rgbgen const ( 0.0 0.8 1.0 ) - alphagen const 0.35 - } -} - -gfx/2d/crosshair-flamer_s -{ - { - clampmap gfx/2d/crosshair-flamer1.tga - blendfunc blend - rgbgen const ( 0.0 0.8 1.0 ) - alphagen const 0.15 - tcmod rotate 5 - } - { - clampmap gfx/2d/crosshair-flamer1.tga - blendfunc blend - rgbgen const ( 0.0 0.8 1.0 ) - alphagen const 0.15 tcmod rotate -5 + rgbGen vertex } } @@ -297,7 +91,6 @@ gfx/2d/crosshair-psaw { map gfx/2d/crosshair-psaw.tga blendfunc blend - rgbgen const ( 0.0 0.8 1.0 ) - alphagen const 0.35 + rgbGen vertex } -} +} \ No newline at end of file -- cgit