Frictional Games Forum (read-only)
Getting rid of sanity effects? - 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 - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Getting rid of sanity effects? (/thread-10214.html)



Getting rid of sanity effects? - Patacorow - 09-07-2011

Hey, is there anyway to get rid of sanity and it's effects for a custom story?

I've tried SetSanityDrainDisabled, but it doesn't work.


RE: Getting rid of sanity effects? - Tanshaydar - 09-07-2011

SetSanityDrainDisabled( true);

It works.



RE: Getting rid of sanity effects? - Patacorow - 09-07-2011

(09-07-2011, 06:49 PM)Tanshaydar Wrote: SetSanityDrainDisabled( true);

It works.
Not for me...

Here's my code:

Code:
void OnStart()

{
SetSanityDrainDisabled(true);
SetEnemyDisableTriggers("dude",true);
SetEntityPlayerInteractCallback("barrel","dudeme",false);
}

void dudeme(string &in asEntity)
{
SetSanityDrainDisabled(true);
SetPlayerRunSpeedMul(3.0f);
}

Best barrel ever!


RE: Getting rid of sanity effects? - Tanshaydar - 09-07-2011

If you mean the effects when you look at the enemy, they can't be changed through scripting, you'll need to make a total conversion.


RE: Getting rid of sanity effects? - Patacorow - 09-07-2011

(09-07-2011, 07:00 PM)Tanshaydar Wrote: If you mean the effects when you look at the enemy, they can't be changed through scripting, you'll need to make a total conversion.
Thanks, but my sanity still drains from "crystal clear" to "a slight headache". Help?




RE: Getting rid of sanity effects? - Thiefnuker - 01-10-2012

Hey i know I'm a bit late with that,
It actually IS possible. If you want to make a friendly Monster just standing around somewhere, you can put Planes with invisible textures around him so that the player actually looks at the plane and not at the monster. But you cant walk through or grab sth trhough it.
Greetz,
Thiefnuker





RE: Getting rid of sanity effects? - flamez3 - 01-10-2012

(01-10-2012, 04:40 PM)Thiefnuker Wrote: Hey i know I'm a bit late with that,
It actually IS possible. If you want to make a friendly Monster just standing around somewhere, you can put Planes with invisible textures around him so that the player actually looks at the plane and not at the monster. But you cant walk through or grab sth trhough it.
Greetz,
Thiefnuker
Or you could tick "DissableTriggers"