Skip to content

Comments

decoupled horz recoil, non-linear inertia movement, additions to lua_help_ex.script#417

Merged
themrdemonized merged 4 commits intothemrdemonized:horz-recoilfrom
PrivatePirate97:Private_Pirate-x-ray-monolith
Feb 5, 2026
Merged

decoupled horz recoil, non-linear inertia movement, additions to lua_help_ex.script#417
themrdemonized merged 4 commits intothemrdemonized:horz-recoilfrom
PrivatePirate97:Private_Pirate-x-ray-monolith

Conversation

@PrivatePirate97
Copy link
Contributor

1. Decoupled Horizontal Recoil
Usually horz recoil offset angle is coupled with and therefore dependent on vert recoil offset angle. This causes horz recoil to be practically zero when starting to shoot and slowly increasing with higher vert offset angle. This approach removes this dependency, horz recoil has full effect on first shot. Attention: unlike vert recoil, horz recoil does NOT increase with amout of bullets fire. The magnitude of the offset is random with each shot.
This approach makes more sense imo and also makes gunplay a little more challenging. Can be toggled with the cvar 'g_decouple_horz_recoil', disabled by default. Should this get an option in modded exes settings, e.g. in General/Aim? If yes then I'll add it to the PR.

2. Non-linear Inertia
Currently inertia movement uses linear functions to calculate any offsets which makes movement look quiet robotic. This adds non-linear offset calculation functions for offset return movement (after changing view direction) and weapon tilt back movement (after walking sideways) to make the movement feel/look more organic, difference is subtle though. Can be toggled with the cvar 'g_use_non_linear_inertia', disabled by default.

3. Additions to lua_help_ex.script
Added new color exports that I forgot to add in my last PR. Also added the cvars from 1. and 2.

- affects offset movement when looking around
- affects weapon tilt when walking sideways
- added cvar to toggle it, disabled by default
- added cvar to lua_help_ex.script
- added cvar to control horz recoil behavior, disabled by default
- added cvar to lua_help_ex.script
@themrdemonized themrdemonized changed the base branch from all-in-one-vs2022-wpo to horz-recoil February 5, 2026 06:24
@themrdemonized themrdemonized merged commit e1bf1ca into themrdemonized:horz-recoil Feb 5, 2026
17 of 18 checks passed
@themrdemonized
Copy link
Owner

Thanks, i'll add the options myself

@PrivatePirate97
Copy link
Contributor Author

@themrdemonized alright. :)

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