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
"Low sanity" effect - make the collapse time longer
ooadrianoo Offline
Member

Posts: 82
Threads: 29
Joined: Apr 2012
Reputation: 0
#1
"Low sanity" effect - make the collapse time longer

In my opinion the effect if you sanity is very low is very cool and the effect of collapse.



Does anyone know the scripts of them? Angel



I want to insert it into my .hps file without sanitydamage and setplayersanity.I tried to
SetPlayerSanity(x);
but it doesn´t work, my sanity doesn´t change.



So I want to make this effect manually.
(This post was last modified: 07-10-2012, 03:35 PM by ooadrianoo.)
07-10-2012, 02:07 PM
Find
SilentStriker Offline
Posting Freak

Posts: 950
Threads: 26
Joined: Jul 2011
Reputation: 43
#2
RE: Effect if the sanity is to low

GiveSanityDamage(float afAmount, bool abUseEffect);

that should work if you give him around 90 sanity damage which makes him have only 10 sanity left. Smile

(This post was last modified: 07-10-2012, 02:12 PM by SilentStriker.)
07-10-2012, 02:12 PM
Find
ooadrianoo Offline
Member

Posts: 82
Threads: 29
Joined: Apr 2012
Reputation: 0
#3
RE: Effect if the sanity is to low

thanks Smile yesterday it didn´t work -.-
But i still need the script, because I want to make the collapse time longer.
(This post was last modified: 07-10-2012, 02:45 PM by ooadrianoo.)
07-10-2012, 02:38 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#4
RE: "Low sanity" effect - make the collapse time longer

The player collapses when he loses all of his sanity. However, if you want the collapse to last longer, you'll need a full conversion.

Tutorials: From Noob to Pro
07-10-2012, 04:32 PM
Website Find
ooadrianoo Offline
Member

Posts: 82
Threads: 29
Joined: Apr 2012
Reputation: 0
#5
RE: "Low sanity" effect - make the collapse time longer

hmm.... yes you´re right.

Where can I find the sound if the player colapse?
(This post was last modified: 07-10-2012, 07:01 PM by ooadrianoo.)
07-10-2012, 06:17 PM
Find
Damascus Offline
Senior Member

Posts: 646
Threads: 118
Joined: Mar 2012
Reputation: 29
#6
RE: "Low sanity" effect - make the collapse time longer

Or you can always just fake it. I've done that several times, but it's complicated scripting using carefully spaced timers and combinations of these scripts:

PlayGuiSound(string& asSoundFile, float afVolume); //plays sounds like the player gasping or collapsing ("player_bodyfall.snt" is the sound I believe you want for collapsing)

FadeImageTrailTo(float afAmount, float afSpeed); //blurs the screen

MovePlayerHeadPos(float afX, float afY, float afZ, float
afSpeed, float afSlowDownDist); //raises or lowers view of the camera

FadePlayerRollTo(float afX, float afSpeedMul, float
afMaxSpeed); //rotates camera

SetPlayerMoveSpeedMul(float afMul); //slows down or speeds up player's movement

FadeOut(float afTime); //blacks out screen

There's a lot more you can use to create the desired effect, you just have to play around with them.

(This post was last modified: 07-10-2012, 07:48 PM by Damascus.)
07-10-2012, 07:47 PM
Find




Users browsing this thread: 2 Guest(s)