Frictional Games Forum (read-only)
Script: slow-mo jumping/ permanent jump booster - 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 Resources (https://www.frictionalgames.com/forum/forum-42.html)
+---- Thread: Script: slow-mo jumping/ permanent jump booster (/thread-25517.html)



Script: slow-mo jumping/ permanent jump booster - Darkfire - 06-20-2014

I've found out a fairly simple way to do things noted in the thread's topic. It doesn't lag the game, at least on my computer. The outcome was supposed to look like slow-mo, but turned out a little different. Still, I think it can be quite useful.

Falling player wont receive fall damage unless you go near 1000 in player body force. Making the timer longer should make the script less laggy, if it is on slower computers.
Also, try changing the player body force for different digits to change the effect (note that going lower than ~100 won't have effects).

PS. Some may consider this script lame Big Grin but I wanted to share it, just out of kindness
Spoiler below!

void OnEnter() <------ or whenever you want the script to start working
{

AddTimer("", 0.01f, "SlowJump");

}

void SlowJump(string &in asTimer)
{
AddTimer("", 0.01f, "SlowJump");

if(GetPlayerYSpeed() > 0.01f)
{
AddPlayerBodyForce(0, 600, 0, false);
}

}