nzp-team / nzportable

Call of Duty: Zombies demake, powered by various Quake sourceports. https://docs.nzp.gay/
475 stars 47 forks source link

[MAP] Sprinting from tiles to dirt interrupts sprinting on Nacht der Untoten #896

Open Peter0x44 opened 2 months ago

Peter0x44 commented 2 months ago

To Reproduce Steps to reproduce the behavior: 1) Load up Nacht der Untoten. 2) Begin sprinting on the tiles and run onto the dirt. 3) Notice your sprint gets interrupted.

Expected behavior The sprint continues as normal.

Screenshots/Footage https://youtu.be/z_li2_ba6N4

Affected Platforms I tested this only on FTEQW.

Additional context The sprint does not get interrupted when running from the dirt to the tiles.

Peter0x44 commented 2 months ago

This happens with stairs too, it is more general than that. You can sprint up stairs but not down them.

blubs commented 2 months ago

My best guess is this relates to player physics more than it being a map issue. The abrupt change in geometry must be toggling the player's "onground" flag, interrupting the sprint (as if the player has walked off a ledge). I'm not sure what the fix might look like, but core features such as player movement require pretty thorough testing.

Two fixes come to mind:

  1. Only allow sprinting to be interrupted on some more strict condition(s)
    • Falling farther than some vertical distance?
    • Downward speed greater than some threshold?
    • "onground" flag missing for more than 0.1 seconds?
  2. Adjusting the player physics movement to provide some sort of "stiction" when walking down stairs?
Peter0x44 commented 2 months ago

My best guess is this relates to player physics more than it being a map issue.

Yes, this was my conclusion too. The title was wrong, will update.