summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBen Millwood <thebenmachine@gmail.com>2009-10-03 11:59:37 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:34 +0000
commite28bdd7b296c0028aaa63ee1feb027c2f0ebde51 (patch)
treeb1878ac3dac5a78f2f366e88e35f2ee385d7ca86 /scripts
parentbae28b3f786d6806287e71479e2ebf185eac36b8 (diff)
* Crosshairs dim when targeting teammates
* Fix indentation in crosshairs.shader * remove some hopefully redundant cursordraw stuff
Diffstat (limited to 'scripts')
-rw-r--r--scripts/crosshairs.shader229
1 files changed, 11 insertions, 218 deletions
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