-
Автор темы
- #1
Hello YouGame!
Today i'm releasing this simple feature
Firstly lets apply an battlemask to local player
Today i'm releasing this simple feature
Firstly lets apply an battlemask to local player
Код:
//CCSPlayer->m_iAddonBits
pLocal->AddonBits() |= 0x10000 | 0x00800; //ADDON_CLIENTSIDE_BATTLEMASK | ADDON_MASK
If u don't change the mask model, this mask will be applied
Пожалуйста, авторизуйтесь для просмотра ссылки.
Sooooo, let's change the model using FindMDL Hook
Код:
MDLHandle_t FASTCALL H::hkFindMDL(void* ecx, void* edx, char* FilePath)
{
static auto original_fn = DTR::FindMDL.GetOriginal<MDLHandle_t(__thiscall*)(void*, char*)>();
if (strstr(FilePath, XorStr("facemask_battlemask.mdl")))
sprintf(FilePath, XorStr("models/player/holiday/facemasks/facemask_dallas.mdl"));
return original_fn(ecx, FilePath);
}
C++:
char * FASTCALL H::GetHalloweenMaskModelAddon(void *ecx, void *edx)
{
return /*mask model path here*/;
}
Последнее редактирование: