From e5d4b2471e72ff574ebc0d01afbab50fc447cf5a Mon Sep 17 00:00:00 2001 From: Michael Levin Date: Sat, 3 Oct 2009 11:27:09 +0000 Subject: * Gave Painsaw a crappy looking crosshair * Change turret behavior again to make them even dumber (will not stay "spun up" anymore or retarget without spinning up again) * DCC will not complain about an attack when something is deconstructed * Fixed "\sell upgrades" command emptying energy weapons when a battery pack was sold with it * Spectators moving to lock view points now set teleport bit, hopefully prevents the ugly lerping Hive changes: * Will not fire unless the missile can actually hit * Will fire from the hive tip rather than the center * Fixed broken code that made hive fire when shot from out of hive range --- scripts/crosshairs.shader | 293 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 293 insertions(+) create mode 100644 scripts/crosshairs.shader (limited to 'scripts') diff --git a/scripts/crosshairs.shader b/scripts/crosshairs.shader new file mode 100644 index 00000000..91f565ad --- /dev/null +++ b/scripts/crosshairs.shader @@ -0,0 +1,293 @@ +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 + } +} +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 + } +} +gfx/2d/crosshair-psaw +{ + { + map gfx/2d/crosshair-psaw.tga + blendfunc blend + rgbgen const ( 0.0 0.8 1.0 ) + alphagen const 0.35 + } +} + -- cgit