Slanderous
Posting Freak
Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation:
63
|
How to make storm effect?
I just wanted to know, how can I make a boxlight that is simulating storm, I believe something like I want to get was used in "Down The Rabbit Hole", the map with skeleton. (I don't remember the name - I played DTRH a long time ago).
|
|
08-11-2013, 09:02 PM |
|
GoreGrinder99
Member
Posts: 166
Threads: 47
Joined: Feb 2013
Reputation:
1
|
RE: How to make storm effect?
Well, you could always open the HPS file for the map you are referring to and take a peak at what was scripted. Alternatively you could look at this post I made a little while ago, not sure if it's what your looking for but it is indeed a storm consisting of thunder and lightning.
http://www.frictionalgames.com/forum/thread-22252.html
Hope this helps, good luck!
-Grind to the Gore-
|
|
08-11-2013, 11:16 PM |
|
The chaser
Posting Freak
Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation:
113
|
RE: How to make storm effect?
It's very simple: Just a few lines of code:
Make a BoxLight with 0 light (0, 0, 0, 1).
void OnStart()
{
AddTimer("", RandFloat(0.5, 20), "Thunderstrike");
}
void Thunderstrike (sting &in asTimer)
{
FadeLightTo("BoxLight_thunder", 1, 1, 1, 1, -1, 0.1);
AddTimer("", RandFloat(0.5, 20), "Thunder_effects");
}
void Thunder_effects (string &in asTimer)
{
AddTimer("", RandFloat(0.5, 20), "Thunderstrike");
FadeLightTo("BoxLight_thunder", 0, 0, 1, 1, -1, 0.1);
PlayGuiSound("general_thunder.snt", 1);
}
THE OTHERWORLD (WIP)
Aculy iz dolan.
|
|
08-11-2013, 11:30 PM |
|
Slanderous
Posting Freak
Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation:
63
|
RE: How to make storm effect?
(08-11-2013, 11:30 PM)The chaser Wrote: It's very simple: Just a few lines of code:
Make a BoxLight with 0 light (0, 0, 0, 1).
void OnStart()
{
AddTimer("", RandFloat(0.5, 20), "Thunderstrike");
}
void Thunderstrike (sting &in asTimer)
{
FadeLightTo("BoxLight_thunder", 1, 1, 1, 1, -1, 0.1);
AddTimer("", RandFloat(0.5, 20), "Thunder_effects");
}
void Thunder_effects (string &in asTimer)
{
AddTimer("", RandFloat(0.5, 20), "Thunderstrike");
FadeLightTo("BoxLight_thunder", 0, 0, 1, 1, -1, 0.1);
PlayGuiSound("general_thunder.snt", 1);
}
Thanks, much appreciated.
(08-11-2013, 11:16 PM)goregrinder99 Wrote: Well, you could always open the HPS file for the map you are referring to and take a peak at what was scripted. Alternatively you could look at this post I made a little while ago, not sure if it's what your looking for but it is indeed a storm consisting of thunder and lightning.
http://www.frictionalgames.com/forum/thread-22252.html
Hope this helps, good luck!
Thanks, and yes I would open the map .hps file, but I don't have this mod for now (Amnesia reinstall).
(This post was last modified: 08-12-2013, 12:25 PM by Slanderous.)
|
|
08-12-2013, 12:24 PM |
|
|