Originally Posted by
Craqker1337
K THAT THERES ALREADY A THREAD WITH THIS INFORMATIONS, BUT THIS IS JUST A THREAD WITH THE THINGS MORE COMPACTED FOR PASTERS AND STUFF
*ANY NEW CRASH, JUST DEBUG AND POST HERE, I WILL TRY MY BEST TO FIX THE PROBLEM*
fix for ayyware and pastes due to the new update
Code:
studiohdr_t* GetStudiomodel(const model_t* mod)
{
typedef studiohdr_t*(__stdcall* oGetStudiomodel)(const model_t*);
return call_vfunc<oGetStudiomodel>(this, 32)(mod);
}
Code:
void GetModelMaterials(const model_t *model, int count, IMaterial** ppMaterial)
{
typedef void *(__thiscall* oGetModelMaterials)(PVOID, const model_t*, int, IMaterial**);
call_vfunc<oGetModelMaterials>(this, 19)(this, model, count, ppMaterial);
}
Code:
struct ModelRenderInfo_t
{
Vector origin;
Vector angles;
char pad[0x4]; // added this
void *pRenderable; // this
const void *pModel; // and this
const matrix3x4 *pModelToWorld;
const matrix3x4 *pLightingOffset;
const Vector *pLightingOrigin;
int flags;
int entity_index;
int skin;
int body;
int hitboxset;
unsigned short instance;
ModelRenderInfo_t()
{
pModelToWorld = NULL;
pLightingOffset = NULL;
pLightingOrigin = NULL;
}
};
for indigo:
In the IVModelInfoClient.hpp
Code:
virtual studiohdr_t *GetStudioModel( const model_t *mod ) = 0;
Entity.h
Code:
class CBaseEntity : public IClientEntity
{
public: ...
studiohdr_t* GetStudioModel();
}
Entity.cpp
Code:
studiohdr_t* CBaseEntity::GetStudioModel()
{
const model_t* model = nullptr;
model = GetModel();
if (!model)
return nullptr;
studiohdr_t* pStudioModel = Interfaces::ModelInfo()->GetStudioModel(model);
if (!pStudioModel)
return nullptr;
return pStudioModel;
}
it worked on my pasta
Corruption.Vip indigodan then we do not need it anymore
by Craqker1337