Player Jump Height is Now 64?

Discuss anything ZDoom-related that doesn't fall into one of the other categories.
Post Reply
User avatar
ReX
Posts: 1584
Joined: Tue Aug 05, 2003 10:01 am
Location: Quatto's Palace
Contact:

Player Jump Height is Now 64?

Post by ReX »

I haven't been regular on these (and other forums) for a while, and I might have missed this. On GZD v4.10.0 (and v4.7.1, for that matter) the player jump height is 64. If I remember correctly, it used to 60. What prompted the change?

(No complaints, by the way.)
Gez
 
 
Posts: 17946
Joined: Fri Jul 06, 2007 3:22 pm

Re: Player Jump Height is Now 64?

Post by Gez »

This shouldn't have been changed AFAIK, you can normally jump 36+24=60 units in Doom, Heretic, and Strife, and 45+24=69 units in Hexen.
Professor Hastig
Posts: 256
Joined: Mon Jan 09, 2023 2:02 am
Graphics Processor: nVidia (Modern GZDoom)

Re: Player Jump Height is Now 64?

Post by Professor Hastig »

There is no such thing as "jump height", only jump velocity and this has indeed not changed since it got added. The only thing that comes to mind that may have caused this change is that Doom has a weird quirk in its gravity code that when z velocity is 0 the gravity application is doubled for one tic. ZDoom has changed this - but this also was a long time ago, in 2009 according to the Git commit log. This change may be responsible for the larger achievable height.
User avatar
Enjay
 
 
Posts: 27081
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Player Jump Height is Now 64?

Post by Enjay »

Certainly, if this had changed it would cause problems in many maps that assume the player cannot clear a 64 tall barrier.

However, I just tried jumping onto the 64-tall crates in Doom2 Map04 and I could not get on to them.

Perhaps there is something unusual about the crates/surrounding landscape/gravity/player definition in your map Rex?
User avatar
ReX
Posts: 1584
Joined: Tue Aug 05, 2003 10:01 am
Location: Quatto's Palace
Contact:

Re: Player Jump Height is Now 64?

Post by ReX »

Enjay wrote: Thu Apr 27, 2023 11:14 amPerhaps there is something unusual about the crates/surrounding landscape/gravity/player definition in your map Rex?
Crate = 64 units tall
Surrounding landscape = flat
Gravity = "normal"
Player Definition = Player.JumpZ 9.5

The JumpZ of 9.5 must be what's causing this.

[EDIT: I reviewed the wiki article on Player.JumpZ to determine that the default value is 8.0. The table for the wiki article on jumping points to what @Gez said. Therefore, a Player.JumpZ value of 9.5 yields a jump height of 50 + 24 = 74]

Thank all of you for your responses (and my education).
Post Reply

Return to “General”