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

C_BaseEntity struct is wrong. #41

Open
matty45 opened this issue Apr 21, 2024 · 4 comments
Open

C_BaseEntity struct is wrong. #41

matty45 opened this issue Apr 21, 2024 · 4 comments
Assignees
Labels

Comments

@matty45
Copy link
Contributor

matty45 commented Apr 21, 2024

C_BaseEntity seems to be wrongly aligned, no idea where though.

@danielga danielga added the bug label Apr 21, 2024
@danielga danielga self-assigned this Apr 21, 2024
@matty45
Copy link
Contributor Author

matty45 commented Apr 21, 2024

Its potentially the inherited classes that are wrong, going to take a look at that.

@matty45
Copy link
Contributor Author

matty45 commented Apr 21, 2024

Did a little digging and it seems that the virtual function table for C_BaseEntity is wrong, has no longer used functions and the order is messed up.

@matty45 matty45 changed the title C_BasePlayer struct is wrong. C_BaseEntity struct is wrong. Apr 26, 2024
@matty45
Copy link
Contributor Author

matty45 commented Apr 26, 2024

It looks like that its just the vtable order that is wrong, vtable size and the size of the struct in total is seemingly correct. vfuncs could have been replaced or just moved around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants