////////////////////////////////////////////////////////////
// File: CSki.cs
// Author: Runar
// Credits:
// Info: Skiing
//
////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
// * This is the "jump-delay" value. You may want to experiment
// a bit with this. z0dd use's 0.001, Poop 0.07 and BigBunny
// uses a value of 0.04. Default value is 0.0005. The lower the
// value the more likely it will cause loss in FPS or even lag.
$Jump:Delay = 0.04;
// Don't touch this line
editActionmap("playmap.sae");
// Edit this to bind you ski-key
bindCommand(keyboard0, make, "lshift", TO, "Jump::Start();");
bindCommand(keyboard0, break, "lshift", TO, "Jump::Stop();");
////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////
function Jump::Start()
{
postAction(2048, IDACTION_MOVEUP, 1);
Schedule::Add("Jump::Start();", $Jump:Delay);
}
function Jump::Stop()
{
postAction(2048, IDACTION_STAND, 0);
Schedule::Cancel("Jump::Start();");
}