Начинающий
-
Автор темы
- #1
void Glow (EntityForList * EntiesLists, MemoryAccess * Mem)
{
while (true) {
while (settings-> Glowmode == GLOW_MODE :: NONE_COLOR)
Sono (200);
DWORD glowManagerBase = Mem-> ReadNow <DWORD> (Mem-> ClientDllBase + Offset :: ObjectManager);
para (int i = 0; i <32; i ++)
{
Jogador ActivePlayer = Player (Mem, Mem-> ReadNow <DWORD> (Mem-> ClientDllBase + Offset :: EntityList + (i * 0x10)));
if (! ActivePlayer.GetDormant ())
if (ActivePlayer.IsAlive ())
{
DWORD addr = glowManagerBase + (ActivePlayer.GetGlowIndex () * 0x38 + 4);
glow_t originalGlowObj = Mem-> ReadNow <brilho_t> (addr);
if (settings-> Glowmode == GLOW_MODE :: HEALTH_BASED_COLOR)
{
originalGlowObj.color = ActivePlayer.getTeam () == EntiesLists-> pLocal.getTeam ()? Cor (0.0f, 0.0f, 0.0f, 0.0f): Cor ((255.0f - ActivePlayer.GetPlayerHealth () * 2.55f) / 255.0f, (ActivePlayer.GetPlayerHealth () * 2.55f) / 255.0f, 0.0f , 0.7f), // pq tu é isso que tu tava pensando q tava crashando quando trocava de cor com base no boneco kkkkkkkkk ksksks inteligente
}
originalGlowObj.m_bRenderOccluded = true;
Mem-> WriteNow (addr, originalGlowObj);
}
}
Sono (7);
{
while (true) {
while (settings-> Glowmode == GLOW_MODE :: NONE_COLOR)
Sono (200);
DWORD glowManagerBase = Mem-> ReadNow <DWORD> (Mem-> ClientDllBase + Offset :: ObjectManager);
para (int i = 0; i <32; i ++)
{
Jogador ActivePlayer = Player (Mem, Mem-> ReadNow <DWORD> (Mem-> ClientDllBase + Offset :: EntityList + (i * 0x10)));
if (! ActivePlayer.GetDormant ())
if (ActivePlayer.IsAlive ())
{
DWORD addr = glowManagerBase + (ActivePlayer.GetGlowIndex () * 0x38 + 4);
glow_t originalGlowObj = Mem-> ReadNow <brilho_t> (addr);
if (settings-> Glowmode == GLOW_MODE :: HEALTH_BASED_COLOR)
{
originalGlowObj.color = ActivePlayer.getTeam () == EntiesLists-> pLocal.getTeam ()? Cor (0.0f, 0.0f, 0.0f, 0.0f): Cor ((255.0f - ActivePlayer.GetPlayerHealth () * 2.55f) / 255.0f, (ActivePlayer.GetPlayerHealth () * 2.55f) / 255.0f, 0.0f , 0.7f), // pq tu é isso que tu tava pensando q tava crashando quando trocava de cor com base no boneco kkkkkkkkk ksksks inteligente
}
originalGlowObj.m_bRenderOccluded = true;
Mem-> WriteNow (addr, originalGlowObj);
}
}
Sono (7);