НЕКАСЕСТВЕНЫЙ КАД
-
Автор темы
- #1
C++:
Color* __fastcall GetSkinColor(SkinSet* skinset, float skinNumber) {
Color* color = skinset->GetSkinColor(skinNumber);
if (vars->players::chams) {
color->r(1.f);
color->g(0.f);
color->b(0.f);
color->a(1.f);
}
return color;
}
Код:
inline uintptr_t __fastcall Fake_GetSkinColor(void* SkinSet, float skinNumber) {
const uintptr_t Color = Orig_GetSkinColor(SkinSet, skinNumber);
if (Vars::Visuals::IsEnable)
{
safe_write(Color + 0x0, float, Color[0]);
safe_write(Color + 0x4, Color[1], float);
safe_write(Color + 0x8, Color[2], float);
safe_write(Color + 0xc, Color[3], float);
}
return Color;
}
[14:51]
color->r(1.f);
color->g(0.f);
color->b(0.f);
color->a(1.f);
[14:53]
typedef uintptr_t(__fastcall* GetSkinColor)(void*, float);
GetSkinColor Orig_GetSkinColor{ };
Последнее редактирование: