Frictional Games Forum (read-only)

Full Version: ChangePlayerSpeed
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
What is ChangePlayerSpeed for?
For changing player's speed I suppose.
...
Explain better.
that aint no function... Where did you spot that?
That is a function. It exists in Justine.
I have no idea, but there might be some possibilities.
a) It changes player's max speed.
b) It makes player move with some speed.
c) It changes player's move speed increasing
You should havea better look on file. It's a custom function.
Taken from 04_final.hps

Code:
//Change move, run and look movement
void ChangePlayerSpeed(float fSpeed)
{
    SetPlayerMoveSpeedMul(fSpeed);
    SetPlayerRunSpeedMul(fSpeed);
    SetPlayerLookSpeedMul(fSpeed);
}

I guess that answers your question.
i used it for a better insanity mode.
dark red screen and ultra slooooow player speed Wink

it changes the player's normal walk speed (+ or -)
Hmm so that function is usable in custom stories aswell then?
Haha, yay. I was right although I don't understand anything about scripting
Pages: 1 2