Начинающий
-
Автор темы
- #1
уже час сижу и не могу найф ченджер сделать, какая то ошибка в консоли, в гугле вроде как написано что это после обновы с перчатками, но как пофиксить не нашёл
Failed to set custom material for 'karam', no matching material name found on model models/weapons/stickers/v_models/smg_bizon_decal_b.mdl
Failed to set custom material for 'karam', no matching material name found on model models/weapons/stickers/v_models/smg_bizon_decal_b.mdl
Код:
/*skinchanger*/
for (int k = 0; k <= 3; k++)
{
int paintKit;
int StatTrak;
int Quality;
float wear;
std::string nametag;
auto LocalPlayer = mem.Read<DWORD>(bClient.dwBase + dwLocalPlayer);
auto WeapEnt = mem.Read<DWORD>(LocalPlayer + m_hMyWeapons + k * 0x4) & 0xFFF;
auto weaponBase = mem.Read<DWORD>(bClient.dwBase + dwEntityList + (WeapEnt - 1) * 0x10);
DWORD localPlayer = mem.Read<DWORD>(bClient.dwBase + dwLocalPlayer);
DWORD currentWeapon = mem.Read<DWORD>(localPlayer + m_hMyWeapons + k * 0x4) & 0xfff;
currentWeapon = mem.Read<DWORD>(bClient.dwBase + dwEntityList + (currentWeapon - 1) * 0x10);
auto id = mem.Read<short>(weaponBase + m_iItemDefinitionIndex);
int accountID = mem.Read<int>(weaponBase + m_OriginalOwnerXuidLow);
if (id == 0) continue;
else if (id > 64) continue;
else
{
paintKit = 302;
wear = 0.0000001;
StatTrak = 100;
Quality = 3;
}
int curPaintKit = mem.Read<int>(weaponBase + m_nFallbackPaintKit);
short weaponID = mem.Read<short>(currentWeapon + m_iItemDefinitionIndex);
if (weaponID == 42)
{
mem.Write<short>(currentWeapon + m_iItemDefinitionIndex, 507);
mem.Write<DWORD>(currentWeapon + m_nModelIndex, 507);
mem.Write<DWORD>(currentWeapon + m_iViewModelIndex, 418);
mem.Write<int>(currentWeapon + m_iEntityQuality, 4);
}
if (curPaintKit != paintKit && curPaintKit != -1)
{
nametag = "weapon";
mem.Write<int>(weaponBase + m_nFallbackPaintKit, paintKit);
mem.Write<int>(weaponBase + m_nFallbackSeed, 420);
mem.Write<float>(weaponBase + m_flFallbackWear, wear);
mem.Write<int>(weaponBase + m_nFallbackStatTrak, StatTrak);
mem.Write<int>(weaponBase + m_iAccountID, accountID);
mem.Write<int>(weaponBase + m_iEntityQuality, Quality);
mem.Write<int>(weaponBase + m_iItemIDHigh, -1);
ForceFullUpdate();
}
if (nametag != "")
{
const char* tag = nametag.c_str();
mem.Write(weaponBase + m_szCustomName, tag);
}
}
/*skinchanger end*/