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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Drugged player
DannieWest Offline
Member

Posts: 156
Threads: 13
Joined: Apr 2011
Reputation: 0
#1
Drugged player

Is there any way of making the player react as when sanity is "..." and he falls to the floor all f*ed up, without the ringing nor falling to the floor? :o Just blurry and when turning around the camera is a lil after you know :o
05-20-2011, 01:05 PM
Find
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#2
RE: Drugged player

Frictional games first map Rainy halls has done that great. The script can be quite confusing though...
05-20-2011, 01:46 PM
Find
Dominic0904 Offline
Member

Posts: 63
Threads: 14
Joined: Apr 2011
Reputation: 0
#3
RE: Drugged player

I thought you could just give him the amount of sanity damage needed to get the "..." status, then give him sanity (health?) when you want him to become "normal" again.
05-20-2011, 05:11 PM
Find
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#4
RE: Drugged player

You can actually get the exact same effect (I think) with some tweaking without draining the sanity itself... But the f***ed up screen with delayed camera is when you have less than 80 or 70 sanity I think
05-20-2011, 05:58 PM
Find
DannieWest Offline
Member

Posts: 156
Threads: 13
Joined: Apr 2011
Reputation: 0
#5
RE: Drugged player

How did do I do to give the player sanity damage? >.< I'm still such a noob at scripting Angel
05-20-2011, 10:08 PM
Find
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#6
RE: Drugged player

use
GiveSanityDamage(float afAmount, bool abUseEffect);
float afAmount to 100 if you want the beep falldown effect or put 80-90 if you want wobbly screen.
05-20-2011, 10:12 PM
Find
DannieWest Offline
Member

Posts: 156
Threads: 13
Joined: Apr 2011
Reputation: 0
#7
RE: Drugged player

Ah, thanks Tongue Better than before xP Though, you know if there is any way of having the same effect without the gasps and stuff, cuz i wanna have my own recorded voice there, and having him breathing super heavy isn't really helping ;o
05-20-2011, 10:51 PM
Find
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#8
RE: Drugged player

well just put false in the
bool abUseEffect
and there won't be any noise, although it takes away the fast change of FOVMul... That can be done manually too though
05-20-2011, 11:22 PM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#9
RE: Drugged player

How about you use these:

GiveSanityDamage(80, true);
SetInventoryDisabled(true);

So the player doesn't go look at their sanity and start wondering why it's "..." for some random reason. :p

05-20-2011, 11:26 PM
Find
DannieWest Offline
Member

Posts: 156
Threads: 13
Joined: Apr 2011
Reputation: 0
#10
RE: Drugged player

(05-20-2011, 11:22 PM)Khyrpa Wrote: well just put false in the
bool abUseEffect
and there won't be any noise, although it takes away the fast change of FOVMul... That can be done manually too though

What do you mean with noise? Cuz the heavy breathing is still there. And FOVMul..? xD

Ah, thanks, smart one there ^^ Would ruin it somehow if they checked sanity xP
05-21-2011, 07:17 PM
Find




Users browsing this thread: 1 Guest(s)