View Single Post
PikaJew
Junior Member
Join Date: Mar 2020
Old 12-30-2020 , 04:00   Re: [CS:GO] [Linux] Hitbox Changer
Reply With Quote #3

Quote:
Originally Posted by Peace-Maker View Post
IVModelInfo received two more overloads of GetVCollide at the end with some additonal float parameter. The vtable layout on msvc puts all overloads next to each other instead of keeping them at the position in the class like gcc does. So the windows build calls the wrong function 2 below the desired one - GetIlluminationPoint instead of GetStudiomdl.

Adding the new overloads to the end of IVModelInfo in engine/ivmodelinfo.h in the sdk fixes the windows build.
Code:
	virtual vcollide_t				*GetVCollide(const model_t *model, float unk1) const = 0;
	virtual vcollide_t				*GetVCollide(int modelindex, float unk1) const = 0;
Thanks for the feedback, totally new to c++ so I would have never figured this out, updated post and github to reflect this.
__________________
Where am I even going...
PikaJew is offline