Frictional Games Forum (read-only)
[SCRIPT] Door Swing, Insanity zone and weird walking - 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: [SCRIPT] Door Swing, Insanity zone and weird walking (/thread-11430.html)



Door Swing, Insanity zone and weird walking - proshitness - 11-20-2011

Look at this video and please if you can then tell me how to do the effect in 3:00 - 3:05




and a bit after that he walk on his side(leaning to the side) if you can tell me how to do that...
thanks a lot .


RE: Door Swing, Insanity zone and weird walking - Khyrpa - 11-20-2011

These are used:

FadePlayerRollTo(float afX, float afSpeedMul, float afMaxSpeed);
MovePlayerHeadPos(float afX, float afY, float afZ, float afSpeed, float afSlowDownDist);

FadePlayerAspectMulTo(float afX, float afSpeed); (maybe used)

FadePlayerFOVMulTo(float afX, float afSpeed);


edit. Wops wrong information, those are just for the flipping out effects.

These are for that door:

AddPropForce(string& asName, float afX, float afY, float afZ, string& asCoordSystem);
GiveSanityDamage(float afAmount, bool abUseEffect);
CreateParticleSystemAtEntity(string& asPSName, string& asPSFile, string& asEntity, bool abSavePS);

And remember to use:
PreloadParticleSystem(string& asPSFile);