Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Slow-Mo Effect
Author Message
SonOfLiberty796 Offline
Senior Member

Posts: 369
Joined: Aug 2011
Reputation: 2
Post: #1
Slow-Mo Effect
I wanted to know if it was possible to create a "slow-mo" effect, just like when the Player loses all sanity and falls to the ground and everything is slow.

How would I be able to create this effect? Please and thank you!
05-24-2012 11:18 PM
Find all posts by this user Quote this message in a reply
Adny Offline
Posting Freak

Posts: 1,757
Joined: Mar 2012
Reputation: 169
Post: #2
RE: Slow-Mo Effect
You can use this to slow down the sound:


void FadeGlobalSoundSpeed(float afDestSpeed, float afTime);

Influences the global sound speed.

afDestSpeed - desired speed
afTime - time in seconds until volume reaches desired speed

And use FOV multiplier as well as sepia and fade image trail to simulate the effects of insanity.

You can search for those screen effects here:

http://wiki.frictionalgames.com/hpl2/amn..._functions

Timorem and Friends are Hungry™
05-24-2012 11:28 PM
Find all posts by this user Quote this message in a reply
SonOfLiberty796 Offline
Senior Member

Posts: 369
Joined: Aug 2011
Reputation: 2
Post: #3
RE: Slow-Mo Effect
(05-24-2012 11:28 PM)andyrockin123 Wrote:  You can use this to slow down the sound:


void FadeGlobalSoundSpeed(float afDestSpeed, float afTime);

Influences the global sound speed.

afDestSpeed - desired speed
afTime - time in seconds until volume reaches desired speed

And use FOV multiplier as well as sepia and fade image trail to simulate the effects of insanity.

You can search for those screen effects here:

http://wiki.frictionalgames.com/hpl2/amn..._functions
But what about the gameplay? Like walking slow, things falling slowly etc.?
05-24-2012 11:57 PM
Find all posts by this user Quote this message in a reply
Adny Offline
Posting Freak

Posts: 1,757
Joined: Mar 2012
Reputation: 169
Post: #4
RE: Slow-Mo Effect
(05-24-2012 11:57 PM)Xvideogamer720X Wrote:  
(05-24-2012 11:28 PM)andyrockin123 Wrote:  You can use this to slow down the sound:


void FadeGlobalSoundSpeed(float afDestSpeed, float afTime);

Influences the global sound speed.

afDestSpeed - desired speed
afTime - time in seconds until volume reaches desired speed

And use FOV multiplier as well as sepia and fade image trail to simulate the effects of insanity.

You can search for those screen effects here:

http://wiki.frictionalgames.com/hpl2/amn..._functions
But what about the gameplay? Like walking slow, things falling slowly etc.?

You can find one of the scripts in the link, just search for:

SetPlayerMoveSpeedMul(float afMul); //-----average amount is 1, so try 0.5f-----//


As for the speed of things in the environment, I think that's impossible.

The only thing that comes to mind would be setting a liquid area active, and increasing the density of it (in one of the option tabs in the level Editor) significantly. That will make movable entities move slowly, but I'm not sure what to do about the actual water sound effects. Good luck! (Also, try unchecking "make waves" and see if that will stop the sound).

Timorem and Friends are Hungry™
(This post was last modified: 05-25-2012 12:06 AM by Adny.)
05-25-2012 12:03 AM
Find all posts by this user Quote this message in a reply
nemesis567 Offline
Posting Freak

Posts: 840
Joined: May 2011
Reputation: 10
Post: #5
RE: Slow-Mo Effect
Not impossible but not easy. Requires quite a well controlled environment and needs you to recur to certain functions, checks and quite a whole lot of code. Changing stuff in Model Editor might work, but I'm not sure.

Today I dreamt the life I could live forever. You only know that when you feel it for you know not what you like until you've experienced it.
(This post was last modified: 05-25-2012 12:52 AM by nemesis567.)
05-25-2012 12:52 AM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)