Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script: slow-mo jumping/ permanent jump booster
Darkfire Offline
Senior Member

Posts: 371
Threads: 22
Joined: May 2014
Reputation: 15
#1
Script: slow-mo jumping/ permanent jump booster

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);
}

}
06-20-2014, 08:48 PM
Find




Users browsing this thread: 1 Guest(s)