Dominic0904 
 
 
		
			Member 
			
			
			
 
			
	Posts: 63 
	Threads: 14 
	Joined: Apr 2011
	
 Reputation: 
0
		
	 | 
	
		
			
Sanity Screen Effect? 
			 
			
				Is there a way to script in the screen effect that the player gets when their sanity is very low? Where the world sort of twists and rotates slightly, images stretch a bit. You know what I mean. 
 
I want to have that screen effects but without the sanity damage being applied.
			 
			
			
			
		 |  
	 
 | 
 
	| 04-22-2013, 07:53 PM  | 
	
		
	 | 
 
 
	
		
		Tomato Cat 
 
 
		
			Senior Member 
			
			
			
 
			
	Posts: 287 
	Threads: 2 
	Joined: Sep 2012
	
 Reputation: 
20
		
	 | 
	
		
			
RE: Sanity Screen Effect? 
			 
			
				You can try using the GetPlayerSanity() function in combination with the  screen effect functions.
			  
			
			
 
RAISE YOUR DONGERS ヽ༼ຈل͜ຈ༽ノ 
			
		 |  
	 
 | 
 
	| 04-23-2013, 12:20 AM  | 
	
		
	 | 
 
 
	
		
		Fatalist 
 
 
		
			Member 
			
			
			
 
			
	Posts: 122 
	Threads: 8 
	Joined: Dec 2012
	
 Reputation: 
8
		
	 | 
	
		
			
RE: Sanity Screen Effect? 
			 
			
				Use FadeImageTrailTo(float afAmount, float afSpeed); and SetPlayerLookSpeedMul(float afMul); 
 
for example: 
FadeImageTrailTo(1.6, 1); 
SetPlayerLookSpeedMul(0.6); 
 
but it is only 2 effects. Dont know about third screen effect.
			 
			
			
 
			
		 |  
	 
 | 
 
	| 04-23-2013, 07:35 AM  | 
	
		
	 | 
 
 
	
		
		Dominic0904 
 
 
		
			Member 
			
			
			
 
			
	Posts: 63 
	Threads: 14 
	Joined: Apr 2011
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Sanity Screen Effect? 
			 
			
				Nar, already tried using those, they don't make the player's vision twist, turn and stretch. They are only static effects. Those are the ones that are used when you look at a Grunt or Brute.
			 
			
			
			
				
(This post was last modified: 04-23-2013, 07:44 PM by Dominic0904.)
 
				
			 
		 |  
	 
 | 
 
	| 04-23-2013, 07:43 PM  | 
	
		
	 | 
 
 
	
		
		Tomato Cat 
 
 
		
			Senior Member 
			
			
			
 
			
	Posts: 287 
	Threads: 2 
	Joined: Sep 2012
	
 Reputation: 
20
		
	 | 
	
		
			
RE: Sanity Screen Effect? 
			 
			
				So what's the effect you're looking for?
			 
			
			
 
RAISE YOUR DONGERS ヽ༼ຈل͜ຈ༽ノ 
			
				
(This post was last modified: 04-23-2013, 07:56 PM by Tomato Cat.)
 
				
			 
		 |  
	 
 | 
 
	| 04-23-2013, 07:56 PM  | 
	
		
	 | 
 
 
	
		
		FlawlessHappiness 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 3,980 
	Threads: 145 
	Joined: Mar 2012
	
 Reputation: 
171
		
	 | 
	
		
			
RE: Sanity Screen Effect? 
			 
			
				No, it's not possible via scripting. With a Full Conversion you are able to define at which sanity state it should happen. If you want it to happen in a quick event you can always SetPlayerSanity to 10 or something. That should trigger the effects. Afterwards put it up to 50 whatever you want.
			 
			
			
 
Trying is the first step to success. 
			
		 |  
	 
 | 
 
	| 04-23-2013, 07:59 PM  | 
	
		
	 | 
 
 
	
		
		Dominic0904 
 
 
		
			Member 
			
			
			
 
			
	Posts: 63 
	Threads: 14 
	Joined: Apr 2011
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Sanity Screen Effect? 
			 
			
				Hmm, what I could do then is set the players Sanity to whatever to get the effect, then disable Sanity drain using SetSanityDrainDisabled (so that the player wouldn't go completely insane if they see too make monsters and such during the period I need the effect for) and after I can give the sanity back to the player and re-enable the drain.  
 
Sound like it could work?
			 
			
			
			
		 |  
	 
 | 
 
	| 04-23-2013, 08:43 PM  | 
	
		
	 | 
 
 
	
		
		FlawlessHappiness 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 3,980 
	Threads: 145 
	Joined: Mar 2012
	
 Reputation: 
171
		
	 | 
	
		
			
RE: Sanity Screen Effect? 
			 
			
				No. 
SetSanityDrainDisabled does not work against monsters. 
There needs to be a model between you and the monster, for the sanity to stop draining I think. 
But hey, try it out! You need to test every variable in your story, to make it perfect
			 
			
			
 
Trying is the first step to success. 
			
		 |  
	 
 | 
 
	| 04-23-2013, 08:47 PM  | 
	
		
	 | 
 
 
	
		
		Dominic0904 
 
 
		
			Member 
			
			
			
 
			
	Posts: 63 
	Threads: 14 
	Joined: Apr 2011
	
 Reputation: 
0
		
	 | 
	
		
			
RE: Sanity Screen Effect? 
			 
			
				"Enables/Disables sanity drain from darkness, monsters, etc." 
 
 
That what it says on the Wiki :S Hope it will work, need to test it later!
			 
			
			
			
		 |  
	 
 | 
 
	| 04-23-2013, 09:24 PM  | 
	
		
	 | 
 
 
	
		
		FlawlessHappiness 
 
 
		
			Posting Freak 
			
			
			
 
			
	Posts: 3,980 
	Threads: 145 
	Joined: Mar 2012
	
 Reputation: 
171
		
	 | 
	
		
			
RE: Sanity Screen Effect? 
			 
			
				Search about it on the forum. It's been discussed much before
			 
			
			
 
Trying is the first step to success. 
			
		 |  
	 
 | 
 
	| 04-23-2013, 09:40 PM  | 
	
		
	 | 
 
 
	 
 |