Skip to content

Conversation

@AshleighAdams
Copy link
Contributor

Delay detouring ProcessUserCmds until after other plugin/frameworks have had a chance to hook it, such as CS2Fixes. If some other plugin hooked it, then use a fallback input method.

This fallback method is subpar in that:

  • It does not prevent weapon switching when number keys bound
  • It does not freeze the player in place when using WASD input

As it stands, just delaying hooking results in a successful hook by CS# too, so this may let both work together. In any case, if the signature is not found then the fallback method is selected, and is sufficient

Fixes #12

@AshleighAdams AshleighAdams self-assigned this May 31, 2025
@AshleighAdams AshleighAdams added the bug Something isn't working label May 31, 2025
…rCmds

Delay detouring ProcessUserCmds until after other plugin/frameworks have
had a chance to hook it, such as CS2Fixes. If some other plugin hooked it,
then use a fallback input method.

This fallback method is subpar in that:
- It does not prevent weapon switching when number keys bound
- It does not freeze the player in place when using WASD input

As it stands, just delaying hooking results in a successful hook by CS# too,
so this may let both work together. In any case, if the signature is not found
then the fallback method is selected, and is sufficient

Fixes #12
@AshleighAdams AshleighAdams force-pushed the process-user-cmds-fallback branch from 752b83f to 34e90bd Compare May 31, 2025 14:49
@AshleighAdams AshleighAdams merged commit f970355 into main Jun 2, 2025
1 check passed
@AshleighAdams AshleighAdams deleted the process-user-cmds-fallback branch July 27, 2025 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Plugin conflicts with CS2Fixes

2 participants