Technology Temerity

OpenBOR Script Function – jump0005

Enables and executes jump control identical to Mario Brothers style platform games (i.e. length of Jump key press controls jumping height). Also allows optional scripted X and Z movement mid jump with directional key press.

Replaced with Hansburg Library.

Author: Damon Caskey

Hello all, Damon Caskey here - the esteemed owner of this little slice of cyberspace. Welcome!

3 Comments

  1. Nice function ! However there are some minor name errors here

    Line 34 (uppercase v on third ‘vEnt’):

    vEnt = vEnt ? vEnt : getlocalvar("self");

    And to match constants.h :

    Line 43

    iKLt = playerkeys(iIndex, 0, KEY_MLEFT);
    iKRt = playerkeys(iIndex, 0, KEY_MRIGHT);
    iKUp = playerkeys(iIndex, 0, KEY_MDOWN);
    iKDn = playerkeys(iIndex, 0, KEY_MUP);
    iKJmp = playerkeys(iIndex, 0, KEY_JUMP);

    Line 52

    || iAni == AC_DBJMP
    || iAni == AC_DBJMPB
    || iAni == AC_DBJMPF
    || iAni == AC_DBJMPP
    || iAni == AC_DBJMPW)

    1. Thanks for the catch; I was writing from memory and apparently missed a couple of things. Should be fixed now along with a few other updates.

      DC

Leave a Reply