-
Автор темы
- #1
Get the MDLCache when you initialise your SDK
Code:
Hook FindMDL
Code:
For me the models load when I reconnect into game, so don't expect them to appear instantly when you inject in game.
Results:
[TBODY]
[/TBODY]
Code:
- CreateInterfaceFn cachefact = (CreateInterfaceFn)GetProcAddress((HMODULE)GetModuleHandle("datacache.dll"), "CreateInterface");
- MdlCache = (IMDLCache*)cachefact("MDLCache004", NULL);
Пожалуйста, авторизуйтесь для просмотра ссылки.
Hook FindMDL
Code:
- MDLHandle_t __fastcall HK_FindMDL(void* ecx, void* edx, char* FilePath)
- {
- if (strstr(FilePath, "knife_default_ct.mdl") || strstr(FilePath, "knife_default_t.mdl"))
- {
- sprintf(FilePath, "models/weapons/v_minecraft_pickaxe.mdl");
- }
- return Hacks.oFindMdl(ecx, FilePath);
- }
- typedef MDLHandle_t(__thiscall *iFindMdl)(void*, char*);
- if (Interfaces.MdlCache)
- {
- VMTFindMdl.Initialise((DWORD*)Interfaces.MdlCache);
- oFindMdl = (iFindMdl)VMTFindMdl.HookMethod((DWORD)&HK_FindMDL, 10); // INDEX 10
- }
For me the models load when I reconnect into game, so don't expect them to appear instantly when you inject in game.
Results: