This tutorial will teach you how to change the size and color of the light flashes you see when certain weapons explode.
For the purposes of this tutorial i will be adding a green glow to the Desolator's Rad Beam.
Firstly, find the weapon you want to add the light flash to. In my case it is [RadBeamWeapon]. Add the code
Code:
Bright=yes
to the end of the weapons code, this tells the game to draw the light flash where the weapon hits. You may see this tag on some warheads too, but it is ignored for them and only works when included in the weapon code.
Next, find the warhead of the weapon, I am using [RadBeamWarhead].
I will be adding a green flash to the warhead, but if you want the light flash to be white you can skip this part of the tutorial.
Add the following code to your warhead,
Code:
CLDisableRed=
CLDisableBlue=
CLDisableGreen=
The values that you should use are true or false. This is the complicated bit. The tags above are used to tell the game to remove certain colours from the light flash. In my case i used the following code,
to make the flash green. However, you can make it a multitude of colours using different combinations. For example, disabling red, but leaving blue and green enabled will give you a yellow flash. Unfortunatly you are restricted by the three colours you see above, and as you cannot set values other than on or off you can only have a few select colours.
You can also use the following code on the warhead,
Code:
CombatLightSize=
to determine the radius of the light flash, the value should be a percent value (e.g. 50%, or 200%). Experiment with different values to see what you get.
And that's it, using this tutorial you should be able to add different coloured flashs to your explosions. Good ideas for their use are blue flashes on tesla bolts, yellow flashes on the over-powered yellow tesla bolts, red flashes for fire weapons, green flashes for radiation weapons etc...
Below i have listed all the possible combinations of colour:
Lol, another example of how stupid RA2's programmers were..i mean, why start disabling colours (and having only 6 different possible end results) instead of just specifying a R,G,B value??! QUICK_EDIT
Lol, another example of how stupid RA2's programmers were..i mean, why start disabling colours (and having only 6 different possible end results) instead of just specifying a R,G,B value??!
You've got to remember that if they didn't use it in game or plan at some point to use it ingame, they didn't code it and for a lot of the stuff they coded, they did it as fast as possible. TS/FS and RA2/YR are modable, but they weren't made with that in mind. _________________ Check out my FAQ and Modding Info Page.
Community Links Page http://www.dynamicsitesolutions.com/ QUICK_EDIT
Yeah, but it's lighting, they couldn have used rgb for light posts in TS but they didn't, instead you have red green or blue intensity. It must be due to the way light is produced by the game. QUICK_EDIT
On paper, yes it should. In practice, im not sure having never tested that combination. If you try it and it works, tell me and add the combination to the tutorial. QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum