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

entindex isn't userid #97

Closed
ws-cs2 opened this issue Nov 12, 2023 · 0 comments · Fixed by #96
Closed

entindex isn't userid #97

ws-cs2 opened this issue Nov 12, 2023 · 0 comments · Fixed by #96

Comments

@ws-cs2
Copy link

ws-cs2 commented Nov 12, 2023

https://github.com/Source2ZE/CS2Fixes/blob/266d05395cf2b98e2f4a211ee6a4fce14fe85a68/src/detours.cpp#L238C5-L238C5

I'm not 100% sure if this is correct but I think it is from my testing:

playerslot = entindex - 1
playerslot = userid & 0xFF

if anything this should be entindex - 1 if userid is not available

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 a pull request may close this issue.

2 participants