-
Автор темы
- #1
Не могу понять почему когда включаю чамсы то глоу применяет цвет чамсов
Sign:Client.dll 40 53 48 83 EC 20 48 8B 54
C++:
void* hook::drawGlow(CGlowProperty* glowProperty)
{
const auto origin = hkdrawGlow.getOriginal();
if (!Interfaces::Engine->IsInGame() || !Interfaces::Engine->IsConnected())
return origin(glowProperty);
auto hOwner = glowProperty->m_pOwnerHandle;
if (hOwner == nullptr)
return origin(glowProperty);
C_CSPlayerPawn* pPawn = Interfaces::GameResourceService->pGameEntitySystem->Get<C_CSPlayerPawn>(hOwner->GetRefEHandle());
if (pPawn == nullptr || !pPawn->IsAlive())
return origin(glowProperty);
if (Global::localPawn && (Global::localPawn == pPawn || Global::localPawn->GetTeam() == pPawn->GetTeam()))
return origin(glowProperty);
glowProperty->m_bGlowing = true;
glowProperty->m_glowColorOverride = Color(0.5f, 0.5f, 0.5f, 1.f);
return origin(glowProperty);
}
C++:
class CGlowProperty
{
public:
char pad_0000[24]; //0x0000
CEntityInstance* m_pOwnerHandle; //0x0018
char pad_0020[16]; //0x0020
int32_t m_glowType; //0x0030
int32_t m_glowTeam; //0x0034
int32_t m_glowRange; //0x0038
int32_t m_glowRangeMin; //0x003C
Color m_glowColorOverride; //0x0040
float m_bFlashing; //0x0044
float m_flGlowTime; //0x0048
float m_flGlowStartTime; //0x004C
bool m_bEligibleForScreenHighlighting; //0x0050
bool m_bGlowing; //0x0051
char pad_0052[317]; //0x0052
}; //Size: 0x018F