Skip to content

Add Movement_GetTakeoffLadderNormal, clean up ladderjump logic - #54

Merged
zealain merged 2 commits into
danzayau:masterfrom
FemboyKZ:ladder-takeoff-normal
Sep 20, 2026
Merged

zealain merged 2 commits into
danzayau:masterfrom
FemboyKZ:ladder-takeoff-normal

Conversation

@jvnipers

Copy link
Copy Markdown
Contributor

Clanker explanations:

  • Ladder jump detection now uses LadderMove's own result. Its IN_JUMP branch checks m_ignoreLadderJumpTime and sets MOVETYPE_WALK with velocity normal * 270. Previously this was re-derived from GetClientButtons after the call.
  • New native Movement_GetTakeoffLadderNormal: m_vecLadderNormal at the last ladder takeoff, zero otherwise.
    LadderMove updates the normal every laddering tick before the jump branch, and returns before touching it when walking off, so both takeoff paths get the correct ladder.

Useful for a certain gokz laj bug fix

@zealain
zealain merged commit 8b9b961 into danzayau:master Sep 20, 2026
2 checks passed
@jvnipers
jvnipers deleted the ladder-takeoff-normal branch September 20, 2026 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants