Skip to content

Conversation

MohabCodeX
Copy link
Contributor

Before:

2025-09-11.20-54-33.mp4

After:

2025-09-11.20-56-58.1.mp4

@FileEX FileEX added the bugfix Solution to a bug of any kind label Sep 13, 2025
@@ -1950,7 +1950,7 @@ void CKeyBinds::DoPostFramePulse()

// * Enter Exit
// * Change View
cs.ButtonSquare = (!bEnteringVehicle && g_bcControls[11].bState) ? 255 : 0; // Jump
cs.ButtonSquare = (!bEnteringVehicle && !bAimingWeapon && g_bcControls[11].bState) ? 255 : 0; // Jump
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure this doesn’t remove the ability to jump while holding other weapons without zoom capability, e.g., can you still jump while holding a Desert Eagle? It seems to me that this issue only affects sniper and camera, since holding shift actually lets you zoom with them. But generally using bAiming seems like it will block jump for all weapons while aiming. Is that the intended effect?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the observation. I also tested it, and I can still jump while holding other weapons normally.
bAimingWeapon only becomes true when actively aiming with specific weapons that create a TASK_SIMPLE_USE_GUN task (snipers/camera). When aiming with regular weapons like Desert Eagle, no such task is created, so bAimingWeapon remains false and jumping works normally. so fix is specifically targets the zoom-capable weapons

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Solution to a bug of any kind
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants