A quick, dumb question:
How can you change the height that the player jumps? Is it as simple as changing the player thing's mass?
For a WAD I'm designing, I'd like the player to be able to jump at least four times higher than normal - but I'd like to leave the global gravity alone.
Can you change the jump height?
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
- Electronic Samurai
- Posts: 177
- Joined: Mon Mar 27, 2006 1:54 am
- Location: Wandering the open plains
- Cutmanmike
- Posts: 11335
- Joined: Mon Oct 06, 2003 3:41 pm
- Operating System Version (Optional): Windows 10
- Location: United Kingdom
- Contact:
In GZDoom you can use SetActorProperty to change the height the player can jump. Just put in your enter script:
I believe 8.0 is the default player jump height, but I'm not sure how the scale goes, so 32.0 may or may not be four times as high. In the wad I'm making I give the player 11.0, which isn't much higher than the default but still allows for some better jumps.
Code: Select all
SetActorProperty( 0, APROP_JUMPZ, X.0 ); // Replace X with some number
- The Ultimate DooMer
- Posts: 2109
- Joined: Tue Jul 15, 2003 5:29 pm
- Location: Industrial Zone
- PaganRaven
- Posts: 439
- Joined: Fri Oct 14, 2005 2:21 pm
What the freak?! I asked the same question like 4 times and I never got such a simple answer! Do you guys have it out for me?
EDIT: OH MY GAWD it FREAKIN' WORKED! I don't believe it, but I just saw it with my own eyes!
EDIT: OH MY GAWD it FREAKIN' WORKED! I don't believe it, but I just saw it with my own eyes!
Last edited by PaganRaven on Fri May 12, 2006 6:24 pm, edited 1 time in total.