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

mods: Add support for lock-sprint and hold-crouch #2

Closed
zalgonoise opened this issue Jul 23, 2023 · 1 comment · Fixed by #4
Closed

mods: Add support for lock-sprint and hold-crouch #2

zalgonoise opened this issue Jul 23, 2023 · 1 comment · Fixed by #4
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@zalgonoise
Copy link
Owner

zalgonoise commented Jul 23, 2023

This is a placeholder issue to add a feature introducing an input modifier, that allows sprint lock (not having to hold the key to run) and crouch toggle on key release, making crouch a press-and-hold action.

Config file: \APB Reloaded\APBGame\Config\DefaultInput.ini

Lock sprint diff:

< +Bindings=(Name="Sprint",Command="InputSprinting | OnRelease InputStopSprinting")
> +Bindings=(Name="Sprint",Command="InputstopSprinting | OnRelease InputSprinting")

Hold crouch diff:

< +Bindings=(Name="Duck",Command="Button m_bDuckButton | InputToggleDuck")
> +Bindings=(Name="Duck",Command="Button m_bDuckButton | InputToggleDuck | OnRelease InputToggleDuck")

Implementation notes:

  • It can still leverage the KeyValueModifier type if the key is set as +Bindings=(Name="Sprint" and +Bindings=(Name="Duck". Can be refactored to be its own BindingsModifier type in the future.

This feature must:

  • add a modifier for changing these settings individually
  • support to rollback configuration to its original settings
  • avoid making any changes by default (must be set by the caller, as a flag or environment variable)
  • add command-line flags for -lock-sprint and -hold-crouch
@zalgonoise zalgonoise added enhancement New feature or request good first issue Good for newcomers labels Jul 23, 2023
@zalgonoise zalgonoise self-assigned this Jul 23, 2023
zalgonoise added a commit that referenced this issue Jul 23, 2023
zalgonoise added a commit that referenced this issue Jul 23, 2023
zalgonoise added a commit that referenced this issue Jul 23, 2023
zalgonoise added a commit that referenced this issue Jul 23, 2023
@zalgonoise
Copy link
Owner Author

Re-opening to update the README with this modifier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant