Frictional Games Forum (read-only)

Full Version: How To Create A Thunder And Lightning Storm Tutorial!!!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Okay everyone, I have been looking for a way to make a decent thunder and lightning storm with scripts for a while now and figured out a way to do so, without scripts!!!

First you need to set up a spotlight and change the following values:

-General-

☑ Active

Diffuse color:
R=0
G=0
B=0
A=1



_____________________________________________________________

-Flicker-

☑ Flicker Active

On Sound=general_thunder.snt

Off Color:
R=1
G=1
B=1
A=0

The name of the spotlights, the on and off times and sounds and other values are all up to you for the desired effect you are seeking. For example, this is my setup:

-General-

Name=PointLight_1

☑ Active

Position
X=0
Y=0
Z=0

Gobo=None

Anim Mode/Frame Time
None /0

Falloff Map=None

Diffuse color:
R=0
G=0
B=0
A=1



_____________________________________________________________

-Point-

Rotation
X=0
Y=0
Z=0

Radius
25



_____________________________________________________________

-Flicker-

☑ Flicker Active

On Min time/On Max time
5 /15

On Sound=general_thunder.snt
On PS=None

Off Min time/Off Max time
0 /0

Off Sound=None
OffPS=None

Off Radius
15

Off Color:
R=1
G=1
B=1
A=0

☑Fade

On Min time/On Max time
0.1 /0.5

Off Min time/Off Max time
01. /0.5


This is simply what I'm using for my map and as I stated anything can be changed for a specific requirement for their map. If you have any questions comment or shoot me a message.

Here a couple of photos if the above was not clear enough.
Good one,
Just some things..
Add a script for people who wants a RANDOM lightning\lights.
This is only good for a couple of times but will never been random!
If you can't create that script ask here, or let me know..
i have one here that is... quite long and .. it works goos, but it's a bit complicated!
Good job here.
(07-28-2013, 12:00 AM)DnALANGE Wrote: [ -> ]Good one,
Just some things..
Add a script for people who wants a RANDOM lightning\lights.
This is only good for a couple of times but will never been random!
If you can't create that script ask here, or let me know..
i have one here that is... quite long and .. it works goos, but it's a bit complicated!
Good job here.

It's rather random if you choose the right minimum and maximum start time. You can have a minimum start of 0.1 and a maximum of say 60 if you wish and all the time between will be random, of a time between 0.1 seconds and 60 seconds.

But I do see what you mean though by not being completely random.
I have to say the way that FG did thunder/lightning in Amnesia was better as it was set to run at a random time (between two values anyway) and the lightning colour faded out instead of just on/off, however this is definitely another way of approaching it in a simpler way!

(07-28-2013, 12:29 AM)goregrinder99 Wrote: [ -> ]
(07-28-2013, 12:00 AM)DnALANGE Wrote: [ -> ]Good one,
Just some things..
Add a script for people who wants a RANDOM lightning\lights.
This is only good for a couple of times but will never been random!
If you can't create that script ask here, or let me know..
i have one here that is... quite long and .. it works goos, but it's a bit complicated!
Good job here.

It's rather random if you choose the right minimum and maximum start time. You can have a minimum start of 0.1 and a maximum of say 60 if you wish and all the time between will be random, of a time between 0.1 seconds and 60 seconds.

But I do see what you mean though by not being completely random.

The problem with this way of doing it is that you can only have one spotlight, if there's multiple they won't all light up/go dark at the same time.
(07-28-2013, 01:10 AM)sonataarctica Wrote: [ -> ]I have to say the way that FG did thunder/lightning in Amnesia was better as it was set to run at a random time (between two values anyway) and the lightning colour faded out instead of just on/off, however this is definitely another way of approaching it in a simpler way!

(07-28-2013, 12:29 AM)goregrinder99 Wrote: [ -> ]
(07-28-2013, 12:00 AM)DnALANGE Wrote: [ -> ]Good one,
Just some things..
Add a script for people who wants a RANDOM lightning\lights.
This is only good for a couple of times but will never been random!
If you can't create that script ask here, or let me know..
i have one here that is... quite long and .. it works goos, but it's a bit complicated!
Good job here.

It's rather random if you choose the right minimum and maximum start time. You can have a minimum start of 0.1 and a maximum of say 60 if you wish and all the time between will be random, of a time between 0.1 seconds and 60 seconds.

But I do see what you mean though by not being completely random.

The problem with this way of doing it is that you can only have one spotlight, if there's multiple they won't all light up/go dark at the same time.

They all do go on and off at different times which is sort of a flaw but if arranged and used properly will do wonders and does just that for my map. I have one set on each wall at a good distance enough to light through the windows a tad but not enough to blur through the walls.

There is a fade option for the light, the Min and Max On and Off times at the bottom of the Flicker tab. Make sure it is active and you can make it fade in as slow or fast as you please.
Thanks. Very helpful.
Cool stuff
I don't have a link to it right now, but somewhere here in the articles section I know Palistov has already created one of these, one that does activate on random aswell.
(12-31-2013, 06:14 PM)Traggey Wrote: [ -> ]I don't have a link to it right now, but somewhere here in the articles section I know Palistov has already created one of these, one that does activate on random aswell.
Do you mean this one?

http://www.frictionalgames.com/forum/thread-8156.html
Looks like it!