Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make storm effect?
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#1
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
Find
GoreGrinder99 Offline
Member

Posts: 166
Threads: 47
Joined: Feb 2013
Reputation: 1
#2
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
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#3
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)
[Image: k6vbdhu]

Aculy iz dolan.
08-11-2013, 11:30 PM
Find
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#4
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). Tongue
(This post was last modified: 08-12-2013, 12:25 PM by Slanderous.)
08-12-2013, 12:24 PM
Find




Users browsing this thread: 1 Guest(s)