Adding custom models to avoz | compolied need hepl with calling
So I have everything in the cheat and it is all compiled this is what im doing...
Hooks:
menu:
Hooks:
Code:
MDLHandle_t __fastcall hkFindMDL(void* ecx, void* edx, char* FilePath) //hooking the custom models
{
if (bCustomModelsNeedUpdate = true);
if (strstr(FilePath, "ak47.mdl"))
return oFindMDL(ecx, "models/weapons/aks74u_anims.mdl");
if (strstr(FilePath, "awp.mdl"))
return oFindMDL(ecx, "models/weapons/v_cod9_ballista.mdl");
if (strstr(FilePath, "deagle.mdl"))
return oFindMDL(ecx, "models/weapons/v_deagle_phoenix.mdl");
if (strstr(FilePath, "knife_default_ct.mdl") || strstr(FilePath, "knife_default_t.mdl"))
return oFindMDL(ecx, "models/weapons/tridagger.vtf");
return oFindMDL(ecx, FilePath);
}
menu:
Code:
void Loadcustommodels()
{
bCustomModelsNeedUpdate = true;
}
Code:
#pragma region CustomModels
CustomModels.SetPosition(400, 265);
CustomModels.SetText("Custom Models");
CustomModels.SetSize(376, 100);
RegisterControl(&CustomModels);
EnableCustomModels.SetFileId("custom_models_enable");
CustomModels.PlaceLabledControl("Enable Custom Model Changer", this, &EnableCustomModels);
CustomModelApply.SetText("Apply Custom Models");
CustomModelApply.SetCallback(Loadcustommodels);
CustomModelApply.SetPosition(407, 318);
CustomModelApply.SetSize(360, 106);
RegisterControl(&CustomModelApply);
#pragma endregion
