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

Improve camera mode validation #873

Open
NexiusTailer opened this issue Feb 20, 2024 · 0 comments
Open

Improve camera mode validation #873

NexiusTailer opened this issue Feb 20, 2024 · 0 comments

Comments

@NexiusTailer
Copy link
Contributor

NexiusTailer commented Feb 20, 2024

Now camera modes are validated this way:

// Fix for camera shaking hack, i think there are more bugged ids
if (aimSync.CamMode == 34u || aimSync.CamMode == 45u || aimSync.CamMode == 41u || aimSync.CamMode == 42u || aimSync.CamMode == 49u)
aimSync.CamMode = 4u;

But:

  1. It should firstly consider that it's in range of 0..65
  2. The list of surely invalid camera modes related to aiming (so they could cause the same artifacts like derpcam and others) can be extended with 5, 39, 40, 43 and 52 values
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

No branches or pull requests

1 participant