ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

TargetLaser: Difference between revisions

From ModEnc
Jump to navigation Jump to search
Fixed link to page for TargetLaser tag
Chpatrick (talk | contribs)
m fixed some links
Line 1: Line 1:
The Targeting Laser was a feature found in TS where a unit would produce a very thin red line to its target just prior to it firing its weapon. It was only used on the Titan and apart form that is unused. The original effect [[TargetLaser]] appears to only work with [[VehicleTypes]] but there are other ways to create a similar effect.
The Targeting Laser was a feature found in TS where a unit would produce a very thin red line to its target just prior to it firing its weapon. It was only used on the Titan and apart form that is unused. The original effect TargetLaser appears to only work with [[VehicleTypes]] but there are other ways to create a similar effect.


== Target Laser Tutorials ==
== Target Laser Tutorials ==
Line 5: Line 5:
Here you will find a selection of tutorials relating creating a targeting laser effect.
Here you will find a selection of tutorials relating creating a targeting laser effect.


=== Improved Targeting Lasers (by [[Tratos]]) ===
=== Improved Targeting Lasers (by Tratos) ===


This will show you how to make very effective target lasers for your units.  
This will show you how to make very effective target lasers for your units.  
Line 12: Line 12:


Secondly, ensure that your chosen unit does not have the tag
Secondly, ensure that your chosen unit does not have the tag
  [[TargetLaser]]=
  TargetLaser=
and if it does ensure that the value is no. This tag gives a 'laser' that is essentially just a red line drawn between the unit and its target and looks rubbish.  
and if it does ensure that the value is no. This tag gives a 'laser' that is essentially just a red line drawn between the unit and its target and looks rubbish.  


Line 23: Line 23:
Change the *'s to the values you desire. For the colours these will be in RGB (Red, Green, Blue) format (a good red colour is 255,10,10). For the laser duration the value determines the time the laser effect is visible for, a good value is 15-20.  
Change the *'s to the values you desire. For the colours these will be in RGB (Red, Green, Blue) format (a good red colour is 255,10,10). For the laser duration the value determines the time the laser effect is visible for, a good value is 15-20.  


This will draw a laser between the unit and the target when the weapon is fired. The good thing is that the normal [[projectile]] (in this case the missile) is also still drawn and the damage only happens when that projectile hits. This gives the effect of a small laser aiming at the target before the missile is fired giving the impression of laser guided missiles. This works best for weapons with a viewable [[projectile]]. For weapons with invisible [[projectiles]] (or [[projectiles]] with a speed of 100) it will just look like the unit is firing a laser.  
This will draw a laser between the unit and the target when the weapon is fired. The good thing is that the normal [[projectile]] (in this case the missile) is also still drawn and the damage only happens when that projectile hits. This gives the effect of a small laser aiming at the target before the missile is fired giving the impression of laser guided missiles. This works best for weapons with a viewable [[projectile]]. For weapons with invisible [[projectile|projectiles]] (or [[projectile|projectiles]] with a speed of 100) it will just look like the unit is firing a laser.  


You can also add the tags:  
You can also add the tags:  
Line 32: Line 32:
And these will add a slight glow to the laser, personally i prefer it without these tags but you may not. The values are done in the same way as the InnerColor (RGB format).  
And these will add a slight glow to the laser, personally i prefer it without these tags but you may not. The values are done in the same way as the InnerColor (RGB format).  


This effect is great for elite weapons to add a visual identifier that the unit is Elite apart from the [[chevron]]s and to mark the weapon apart from regular versions.
This effect is great for elite weapons to add a visual identifier that the unit is Elite apart from the chevrons and to mark the weapon apart from regular versions.

Revision as of 18:05, 3 April 2005

The Targeting Laser was a feature found in TS where a unit would produce a very thin red line to its target just prior to it firing its weapon. It was only used on the Titan and apart form that is unused. The original effect TargetLaser appears to only work with VehicleTypes but there are other ways to create a similar effect.

Target Laser Tutorials

Here you will find a selection of tutorials relating creating a targeting laser effect.

Improved Targeting Lasers (by Tratos)

This will show you how to make very effective target lasers for your units.

This tutorial is very very easy but has good results. Firstly you need to find the unit you want to give a target laser too. For the purpose of this tutorial i will be reffering to the [GGI].

Secondly, ensure that your chosen unit does not have the tag

TargetLaser=

and if it does ensure that the value is no. This tag gives a 'laser' that is essentially just a red line drawn between the unit and its target and looks rubbish.

Next, choose the weapon you want to apply the target laser to, in the case of the GGI i chose the [MissileLauncher] weapon to give the GGI laser guided missiles. Find the chosen weapon in rules.ini and add the following code to the end of its stats:

LaserInnerColor=*,*,* 
LaserDuration=** 
IsLaser=true 

Change the *'s to the values you desire. For the colours these will be in RGB (Red, Green, Blue) format (a good red colour is 255,10,10). For the laser duration the value determines the time the laser effect is visible for, a good value is 15-20.

This will draw a laser between the unit and the target when the weapon is fired. The good thing is that the normal projectile (in this case the missile) is also still drawn and the damage only happens when that projectile hits. This gives the effect of a small laser aiming at the target before the missile is fired giving the impression of laser guided missiles. This works best for weapons with a viewable projectile. For weapons with invisible projectiles (or projectiles with a speed of 100) it will just look like the unit is firing a laser.

You can also add the tags:

LaserOuterColor =*,*,* 
LaserOuterSpread=*,*,* 

And these will add a slight glow to the laser, personally i prefer it without these tags but you may not. The values are done in the same way as the InnerColor (RGB format).

This effect is great for elite weapons to add a visual identifier that the unit is Elite apart from the chevrons and to mark the weapon apart from regular versions.