sourcesdk-minimal icon indicating copy to clipboard operation
sourcesdk-minimal copied to clipboard

C_BaseEntity struct is wrong.

Open matty45 opened this issue 1 year ago • 4 comments

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

matty45 avatar Apr 21 '24 01:04 matty45

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

matty45 avatar Apr 21 '24 17:04 matty45

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 avatar Apr 21 '24 23:04 matty45

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.

matty45 avatar Apr 26 '24 19:04 matty45