Adding custom models to avoz | compolied need hepl with calling

Posts 1–11 of 11 · Page 1 of 1
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:

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
Quote Originally Posted by gYH$%U$%UJH$J View Post
So I have everything in the cheat and it is all compiled this is what im doing...

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
shouldnt you change the viewmodel
@ @Joplin @jonluke

- - - Updated - - -

Quote Originally Posted by WildAssassinz View Post
shouldnt you change the viewmodel
Not sure I got this from a spoon fed thread
Quote Originally Posted by gYH$%U$%UJH$J View Post
@ @Joplin @jonluke

- - - Updated - - -



Not sure I got this from a spoon fed thread
whats with the @'s to these memers

just do what i said in the post above
you got this from me @ uc, anyways switches/buttons for custom models dont work because u cant update them
u call them once and u cant change them for the rest of the game
so if ur gonna change model ur gonna have to do it when ur in the menu of the game

if u want to change them instantly use precachemdl and call it in fsn. forceupdate when u change skins
Quote Originally Posted by axio42 View Post
you got this from me @ uc, anyways switches/buttons for custom models dont work because u cant update them
u call them once and u cant change them for the rest of the game
so if ur gonna change model ur gonna have to do it when ur in the menu of the game

if u want to change them instantly use precachemdl and call it in fsn. forceupdate when u change skins
thats a lie xd, what kind of shit paste you running?
@ @axio42 @WildAssassinz

I think I found my error ( I have not done this { create a new VMTManager called VMTMDLCache } )

Otherwise I have started doing this:
Code:
	MDLHandle_t __fastcall hkFindMDL(void* ecx, void* edx, char* FilePath)
	{

		if (Menu::Window.MiscTab.ApplyCustomModel.GetState()) {
			if (strstr(FilePath, "ak47.mdl"))
				return oFindMDL(ecx, "models/weapons/v_cod_ak117.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, "v_knife_default_ct.mdl") || strstr(FilePath, "v_knife_default_t.mdl"))
				return oFindMDL(ecx, "models/weapons/v_minecraft_pickaxe.mdl");

			return oFindMDL(ecx, FilePath);
		}
	}
Code:
	ApplyCustomModel.SetFileId("ApplyCustomModels");
	OtherSafeMode.SetState(true);
	OtherGroup.PlaceLabledControl("Apply Custom Models", this, &ApplyCustomModel);
Quote Originally Posted by gYH$%U$%UJH$J View Post
@ @axio42 @WildAssassinz

I think I found my error ( I have not done this { create a new VMTManager called VMTMDLCache } )

Otherwise I have started doing this:
Code:
	MDLHandle_t __fastcall hkFindMDL(void* ecx, void* edx, char* FilePath)
	{

		if (Menu::Window.MiscTab.ApplyCustomModel.GetState()) {
			if (strstr(FilePath, "ak47.mdl"))
				return oFindMDL(ecx, "models/weapons/v_cod_ak117.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, "v_knife_default_ct.mdl") || strstr(FilePath, "v_knife_default_t.mdl"))
				return oFindMDL(ecx, "models/weapons/v_minecraft_pickaxe.mdl");

			return oFindMDL(ecx, FilePath);
		}
	}
Code:
	ApplyCustomModel.SetFileId("ApplyCustomModels");
	OtherSafeMode.SetState(true);
	OtherGroup.PlaceLabledControl("Apply Custom Models", this, &ApplyCustomModel);
yea theres something called grabbing the interface
Quote Originally Posted by WildAssassinz View Post
yea theres something called grabbing the interface
I fixed it all g
Bro. This looks like a paste. Read the code again and figure out what it does.
I can see that when you click the button enable it will set the bool EnableCustomModels to true
when you click apply it will load this function

void Loadcustommodels()
{
bCustomModelsNeedUpdate = true;
}

so pretty much all you have to do is
if(EnableCustomModel)
{
//code here which enables teh shitz
}

- - - Updated - - -

Bro. This looks like a paste. Read the code again and figure out what it does.
I can see that when you click the button enable it will set the bool EnableCustomModels to true
when you click apply it will load this function

void Loadcustommodels()
{
bCustomModelsNeedUpdate = true;
}

so pretty much all you have to do is

if(EnableCustomModels)
{
//code here which enables teh shitz
}

or could just instead of EnableCustomModels just check the button state
Posts 1–11 of 11 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

Talk with us