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

Privacy Policy


Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Drugged player
Author Message
DannieWest Offline
Member

Posts: 156
Joined: Apr 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Khyrpa Offline
Senior Member

Posts: 615
Joined: Apr 2011
Reputation: 24
Post: #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 all posts by this user Quote this message in a reply
Dominic0904 Offline
Member

Posts: 63
Joined: Apr 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Khyrpa Offline
Senior Member

Posts: 615
Joined: Apr 2011
Reputation: 24
Post: #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 all posts by this user Quote this message in a reply
DannieWest Offline
Member

Posts: 156
Joined: Apr 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Khyrpa Offline
Senior Member

Posts: 615
Joined: Apr 2011
Reputation: 24
Post: #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 all posts by this user Quote this message in a reply
DannieWest Offline
Member

Posts: 156
Joined: Apr 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Khyrpa Offline
Senior Member

Posts: 615
Joined: Apr 2011
Reputation: 24
Post: #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 all posts by this user Quote this message in a reply
Kyle Offline
Posting Freak

Posts: 910
Joined: Sep 2010
Reputation: 7
Post: #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. Tongue

05-20-2011 11:26 PM
Find all posts by this user Quote this message in a reply
DannieWest Offline
Member

Posts: 156
Joined: Apr 2011
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Post Reply 




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