View Single Post
Old 10-08-15, 13:28   #2
Titak
Moderator
 
Titak's Avatar
 
Join Date: Jul 2003
Location: Drenthe, The Netherlands
Posts: 31,407
Default

Flare Customisation - Lights and other visual effects
by Titak

The TRNG now has multiple Customize= CUST_**** possibilities for all kinds of things.
One of these is for customizing the flares.

You can now add different effects to the flares, like TR2/TR3 style sparks. Besides these these effects you can also customize the colour of the light the flare emits (the colour settings also affects the glow colour but does not affect the flame colour), for how long flares burn and the range of the light cast.


THE SCRIPT
The general syntax for customizing flares is:
Customize=CUST_FLARE, Flags for Flare (FFL_....), SecondsOfLifeTime, Red, Green, Blue, Intensity


Flags for Flare (FFL_....) field
---------------------------------
You can add one or more FFL_ flags to add special effects to the flare.
You can type IGNORE in this field you are not interested to set flags.
FFL_ADD_FIRE
Adds a flame to the flare

FFL_ADD_GLOW_LIGHT
Will add a glow to the flare (the glow is made of sprite 11)

FFL_ADD_SMOKE_TO_SPARKS
Adds smoke to the flare, but this can only be used together with the FFL_ADD_SPARKS command.

FFL_ADD_SPARKS
Sdds sparks to the flare, like in TR2 and TR3

FFL_FLAT_LIGHT
By default the light of a flare is flickering slightly.
By adding this to the script your flarelight will not flicker, it will be flat, like the light of a lightbulb.


SecondsOfLifeTime field
-----------------------
In this field you set the amount of seconds the flare will burn. So if you type 50 in this field, the flare will burn for 50 seconds.
The default value was 30 seconds.
You can type IGNORE in this field to preserve the default value.


Red, Green, Blue fields
-----------------------
In these three fields you can set the middle color of flare light.

Remark: this color will be not applied in the first and the last phase of the life-time of the flare: the switching on and the switching off phases.
The original green colour will then be seen.
You can type IGNORE in these three fields to preserve the default values (red = 128 , Green = 192, Blue=0)


Intensity field
---------------
You can change the middle light intensity of flare.
The default value was 16.
You can type ignore in this field to preserve default value.

Remark: The intensity field does not really make the light the flare omits brighter. It makes it carry further.
So if you type for example 200 in this field, the flare's light will light up a very large area.


EXAMPLES

Pretty much regular flare with sparks and smoke, with yellow/orange light, with default intensity:
Customize= CUST_FLARE, FFL_ADD_SMOKE_TO_SPARKS + FFL_ADD_SPARKS, IGNORE, 250, 205, 15, IGNORE




Flame, with low intensity/range and yellow light:
Customize= CUST_FLARE, FFL_ADD_FIRE, IGNORE, 255, 200, 55, 10




Glow with pink light and high intensity/range:
Customize= CUST_FLARE, FFL_ADD_GLOW_LIGHT, IGNORE, 255, 0, 255, 100




Glow with yellow light and fairly high intensity/range:
Customize= CUST_FLARE, FFL_ADD_GLOW_LIGHT, IGNORE, 255, 200, 55, 40




Glow + fire + sparks + smoke with aqua light and regular intensity:
Customize= CUST_FLARE, FFL_ADD_GLOW_LIGHT + FFL_ADD_FIRE + FFL_ADD_SMOKE_TO_SPARKS + FFL_ADD_SPARKS, IGNORE, 0, 200, 255, IGNORE




Flame with green light and default intensity:
Customize= CUST_FLARE, FFL_ADD_FIRE, IGNORE, 0, 205, 15, IGNORE




Glow with white light with intensity/range 20:
Customize= CUST_FLARE, FFL_ADD_GLOW_LIGHT, IGNORE, 255, 255, 255, 20




Glow with white light with intensity/range 0:
Customize= CUST_FLARE, FFL_ADD_GLOW_LIGHT, IGNORE, 255, 255, 255, 0

__________________
If it walks like a duck and if it quacks like a duck, it is a duck.

Last edited by Titak; 10-08-15 at 13:41.
Titak is offline