Frictional Games Forum (read-only)

Full Version: [FC] Permanent Sanity Loss
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm sorry if I didn't search good enough.
I checked different threads with sanity, but couldn't get the answer to my question.

I've created a functioning Full Conversion.
Now, i want to implement it, so that the sanity drops every second by, let's say, 1.67. If I'm right this means that you have one minute and then the sanity will be 0, right?

Is this possible?

I looked in the game.cfg under Player_Sanity. I tried changing the SanityRegainSpeed to -10.0 just to see if anything changed. Nothing happened.

Then I noticed the line SanityLossPerSecond in Player_Darkness, and i tried adding it to the Player_Sanity, but it didn't work Sad

Does anybody have an idea what to do, or how to do it?

Sincerely BeeKayK.


EDIT: Ok, so i found that i can change MinLightLevel to 1.0. This makes the sanity drain, as if the player was in the darkness all the time. Now, the effects and sounds still play. iIs there somewhere in any file that i can change these?
I think you'll have to script the sanity loss in your hps file(s). Something like this:
PHP Code:
void Enter()
{
    
DoSanityLoss("");
}

void DoSanityLoss(string &in timer)
{
    
AddPlayerSanity(-1.67f);
    
AddTimer(""1.0f"DoSanityLoss");

(03-28-2013, 05:28 PM)NaxEla Wrote: [ -> ]I think you'll have to script the sanity loss in your hps file(s). Something like this:
PHP Code:
void Enter()
{
    
DoSanityLoss("");
}

void DoSanityLoss(string &in timer)
{
    
AddPlayerSanity(-1.67f);
    
AddTimer(""1.0f"DoSanityLoss");


Are you sure it cannot be implemented by files?
If i could find out where the sanity files are, that create the flickering sounds and the screen effects, it should work.
pretty sure you control sanity drop rate from the game.cfg, which can be replaced with a full conversion.
(03-28-2013, 06:08 PM)martinnord Wrote: [ -> ]pretty sure you control sanity drop rate from the game.cfg, which can be replaced with a full conversion.

That is also what i got. The thing is that I can only control the sanity drop in darkness, because that's the only place it is meant to drop.
It is, as i wrote in the first post, possible to make every light-adjustment into "Darkness", but then this effect and flickering begins, and i think it will be unbearable to keep listening to through the whole game.
(03-28-2013, 06:11 PM)BeeKayK Wrote: [ -> ]
(03-28-2013, 06:08 PM)martinnord Wrote: [ -> ]pretty sure you control sanity drop rate from the game.cfg, which can be replaced with a full conversion.

That is also what i got. The thing is that I can only control the sanity drop in darkness, because that's the only place it is meant to drop.
It is, as i wrote in the first post, possible to make every light-adjustment into "Darkness", but then this effect and flickering begins, and i think it will be unbearable to keep listening to through the whole game.
the flickering sound can be removed by using your FC to replace it with a silent sound file.

as for the effect im not sure, but I think some of the setting found under player_sanity might have something to do with it so I suggest you start experimenting.
(03-28-2013, 06:45 PM)Robosprog Wrote: [ -> ]The sanity effects can be removed when in the dark, as can sanity loss - keep looking and you'll find it.

I'm trying...

It seems that I can change a lot of values in the game.cfg, but it's hard to figure out which value is the right one.

EDIT:
1. Discovery!!!
SanityEffectsStart = "100"
Obviously, states when the effects should start, according to how much sanity the player has. In my case I'm using 100 because then i don't have to wait for the sanity to fall.

SanityWaveAlphaMul = "0"
SanityWaveSpeedMul = "0"
These two are creating the waves in the sanity effect. Setting them to 0 will make no waves at all.
(03-28-2013, 06:49 PM)Robosprog Wrote: [ -> ]
(03-28-2013, 06:47 PM)BeeKayK Wrote: [ -> ]
(03-28-2013, 06:45 PM)Robosprog Wrote: [ -> ]The sanity effects can be removed when in the dark, as can sanity loss - keep looking and you'll find it.

I'm trying...

It seems that I can change a lot of values in the game.cfg, but it's hard to figure out which value is the right one.

As I said, keep looking.

SanityLossPerSecond = "0"

I'm using that line to say how much i want the sanity to drop Wink

I think it's something with these:

HitZoomInSpeed = "3.5"
HitZoomOutSpeed = "0.6"
HitZoomInFOVMul = "0.06"
HitZoomInAspectMul = "0.15"

But i cannot figure out, what they should be at...
I put them to:

HitZoomInSpeed = "0.0"
HitZoomOutSpeed = "0.0"
HitZoomInFOVMul = "1.0"
HitZoomInAspectMul = "1.0"

Didn't change anything
Well.. It works... I'm just not losing sanity...



Setting MinLightLevel to 0 means that the light must be 0 or less for the effects to start... But the sanity drop is one of the effects, and it's not being triggered.

I should just do it in a script then...
I just hope I can make it, when you change level, and such.