Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow jumping while ducked #1

Merged
merged 1 commit into from
Jan 12, 2021
Merged

Allow jumping while ducked #1

merged 1 commit into from
Jan 12, 2021

Conversation

Mikusch
Copy link
Owner

@Mikusch Mikusch commented Jan 12, 2021

This PR allows players to jump while they are ducked. Can be configured with the sv_duckbunnyhopping convar.

Uses a memory patch to change the first byte of a jz short instruction to turn it into a jmp short instruction (0x74 ->0xEB) in CTFGameMovement::CheckJumpButton and thus bypass the conditional that would prevent pressing IN_JUMP while ducked.

Increments the version to v1.1.

@Mikusch Mikusch changed the title Add memory patch to allow jumping while ducked Allow jumping while ducked Jan 12, 2021
@Mikusch Mikusch merged commit f9ad637 into master Jan 12, 2021
@Mikusch Mikusch deleted the duck-jump branch January 12, 2021 23:50
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.

1 participant