Frictional Games Forum (read-only)
Possible to make sanity only work for enemys - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Possible to make sanity only work for enemys (/thread-6206.html)

Pages: 1 2


RE: Possible to make sanity only work for enemys - MrBigzy - 03-25-2011

The dissolve texture in the core folder might be what's doing it, but I'm not sure. There probably is some applied texture doing it. Also:


<Player_Darkness

MinLightLevel = "0.15"

RadiusAdd = "3"

AmbientLightMinLightLevel = "0.2"
AmbientLightRadius = "6.5"
AmbientLightIntensity = "0.32"
AmbientLightFadeInTime = "2.8"
AmbientLightFadeOutTime = "2.3"
AmbientLightColor = "0.5 0.5 1 0"

LoopSoundFile = "player_darkness.ogg"
LoopSoundVolume = "0.2"
LoopSoundStartupTime = "1.0"
LoopSoundFadeInSpeed = "0.05"
LoopSoundFadeOutSpeed = "0.4"

SanityLossPerSecond = "0.2"

This is in the game.cfg.


RE: Possible to make sanity only work for enemys - Shev - 03-25-2011

(03-25-2011, 05:20 AM)MrBigzy Wrote: The dissolve texture in the core folder might be what's doing it, but I'm not sure. There probably is some applied texture doing it. Also:


<Player_Darkness

MinLightLevel = "0.15"

RadiusAdd = "3"

AmbientLightMinLightLevel = "0.2"
AmbientLightRadius = "6.5"
AmbientLightIntensity = "0.32"
AmbientLightFadeInTime = "2.8"
AmbientLightFadeOutTime = "2.3"
AmbientLightColor = "0.5 0.5 1 0"

LoopSoundFile = "player_darkness.ogg"
LoopSoundVolume = "0.2"
LoopSoundStartupTime = "1.0"
LoopSoundFadeInSpeed = "0.05"
LoopSoundFadeOutSpeed = "0.4"

SanityLossPerSecond = "0.2"

This is in the game.cfg.

Yeah this seems to be how your character acts while in the darkness, thanks for posting this.

It also might include the sanity thing to anyone who wants to use this threads info in the future
<Player_Sanity

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

SanityRegainSpeed = "0.75"
SanityRegainLimit = "100"

SanityVeryLowLimit = "20"
SanityEffectsStart = "65"

SanityWaveAlphaMul = "1"
SanityWaveSpeedMul = "1"

CheckNearEnemyInterval = "0.3"

NearEnemyDecrease = "0.3"
NearCritterDecrease = "0.1"

StartSwayMaxSanity = "15"
SwayMaxSavedPositions = "30"

SanityLowLimit = "30"
SanityLowLimitMaxTime = "300"
SanityLowNewSanityAmount = "40"

LightLampMinSanityIncrease = "0.1"
LightLampMaxSanityIncrease = "5"
/>


RE: Possible to make sanity only work for enemys - Tanshaydar - 04-28-2011

Anyone played with these Player_Darkness settings? Changes I made causes CTD :/


RE: Possible to make sanity only work for enemys - Apjjm - 04-28-2011

Couldn't you just have used a massive box light with a low alpha or something to make the game think you were standing in a light?


RE: Possible to make sanity only work for enemys - Dalroc - 04-28-2011

(04-28-2011, 11:02 AM)Apjjm Wrote: Couldn't you just have used a massive box light with a low alpha or something to make the game think you were standing in a light?
This would affect the night-vision and other things as well.
No the best is a full conversion where you remove all the sanity effects except for when you look at monsters.


RE: Possible to make sanity only work for enemys - Kyle - 04-28-2011

You know that you can always, try this:

SetSanityDrainDisabled(bool abX);

But then enable it again once you want the player to lose sanity like from the monster you were refering to.


RE: Possible to make sanity only work for enemys - Tanshaydar - 04-28-2011

It's not sanity thing. It's night vision I want to change. I want to completely disable it. And 'massive box light' is not the solution I seek.
Whatever I do, it keeps opening the vision and make it clear what is in the shadows. In other settings, game keeps crashing.


RE: Possible to make sanity only work for enemys - Dalroc - 04-28-2011

(04-28-2011, 03:00 PM)Tanshaydar Wrote: It's not sanity thing. It's night vision I want to change. I want to completely disable it. And 'massive box light' is not the solution I seek.
Whatever I do, it keeps opening the vision and make it clear what is in the shadows. In other settings, game keeps crashing.
Oh I did that for my story, just set AmbientLightIntensity = "0" in the Player_Darkness part of the config.cfg


RE: Possible to make sanity only work for enemys - Josh707 - 04-29-2011

(03-25-2011, 04:59 AM)Shev Wrote: You know what I've come back to this project, and am just going to scrap sanity for it all together. Is there like a way to disable it completely (screen moving and all?)

Yes!
Code:
SetSanityDrainDisabled(bool abX);