simple reusable double jump

[Open Assets] simple reusable double jump v1

This content may be freely modified and/or maintained by anyone.

redhot69

amongus
redhot69 submitted a new resource:

simple reusable double jump - do you want a double jump? you got it!

reusable double jump yay =)

how to use in custom characters:

in the player.mo.skin = "sonic" change sonic to your char name

how to change the key to double jump:

in the player.cmd.buttons & BT_CUSTOM1 changet BT_CUSTOM1 to the key you want

keys:
BT_JUMP
BT_SPIN
BT_CUSTOM1
BT_CUSTOM2
BT_CUSTOM3

more in srb2 wiki

gifs

View attachment 131237
[ATTACH...

Read more about this resource...
 
i found a bug that instead of setting the momz value it's adding to it
example:
here is the fixed code:
Lua:
// The argument 2 in the P_SetObjectMomZ is for adding to the MomZ, use false or just don't put anything to disable it
P_SetObjectMomZ(player.mo, (10*player.jumpfactor))
P_SetObjectMomZ(player.mo, (10*player.jumpfactor), false) // you can also use this

fixed example:
please warn me if the media is not working
 
i found a bug that instead of setting the momz value it's adding to it
example:
here is the fixed code:
Lua:
// The argument 2 in the P_SetObjectMomZ is for adding to the MomZ, use false or just don't put anything to disable it
P_SetObjectMomZ(player.mo, (10*player.jumpfactor))
P_SetObjectMomZ(player.mo, (10*player.jumpfactor), false) // you can also use this

fixed example:
please warn me if the media is not working
ty ill fix
Post automatically merged:

ty ill fix and the fixed wont
i wont post it here since ima post in the lua pack im doing
 
Last edited:

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top