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

Client weapons prediction compatibility with original DLLs #363

Open
a1batross opened this issue Apr 6, 2023 · 3 comments
Open

Client weapons prediction compatibility with original DLLs #363

a1batross opened this issue Apr 6, 2023 · 3 comments

Comments

@a1batross
Copy link
Member

I noticed that this change breaks prediction with original DLLs.

cc @FreeSlave See how it calls shared random in original HLSDK, the calls to shared random is supposed to be equal between client and server weapons code. We also better not change anything in animation state for compatibility too.

Changes in weapons code should be revised to find other instances of broken prediction.

@xorusr
Copy link

xorusr commented Apr 6, 2023

Ok

@FreeSlave
Copy link
Member

m_pPlayer->m_flNextAttack and m_flTimeWeaponIdle get overriden by DefaultDeploy anyway. I'm not sure if UTIL_SharedRandomFloat must be done on both sides though.

@a1batross
Copy link
Member Author

a1batross commented Apr 6, 2023 via email

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

3 participants