Implement QL-style auto-hop (always enabled)
Remove the PMF_JUMP_HELD gate from PM_CheckJump so players can hold jump to bunny hop continuously without releasing between hops. The existing Pmove() outer loop already forces upmove=20 when PMF_JUMP_HELD is set, making this the only change needed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
0602b6ad4b
commit
009dc313d4
1 changed files with 4 additions and 6 deletions
|
|
@ -393,12 +393,10 @@ static qboolean PM_CheckJump( void ) {
|
||||||
return qfalse;
|
return qfalse;
|
||||||
}
|
}
|
||||||
|
|
||||||
// must wait for jump to be released
|
// QL autohop: don't require jump release between hops.
|
||||||
if ( pm->ps->pm_flags & PMF_JUMP_HELD ) {
|
// The Pmove() outer loop already forces upmove=20 when
|
||||||
// clear upmove so cmdscale doesn't lower running speed
|
// PMF_JUMP_HELD is set, so removing this gate lets the
|
||||||
pm->cmd.upmove = 0;
|
// player hold jump to bunny hop continuously.
|
||||||
return qfalse;
|
|
||||||
}
|
|
||||||
|
|
||||||
PM_Jump();
|
PM_Jump();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue