Новичок
-
Автор темы
- #1
Не могу понять почему не рисуется glow, уже все перепробовал подскажите пожалуйста
C#:
for (int i = 0; i <= 64; i++)
{
string entity_list = Convert.ToString(Offset.dwEntityList + i * 0x10, 16);
int entity_base = m.ReadInt(client + entity_list);
int player_team = m.ReadInt(client + Convert.ToString(Offset.dwLocalPlayer, 16) + "," + Convert.ToString(Offset.m_iTeamNum, 16));
int enemy_team = m.ReadInt(client + entity_list + "," + Convert.ToString(Offset.m_iTeamNum, 16));
if (player_team != enemy_team && enemy_team != 0)
{
int glowIndex = m.ReadInt(Convert.ToString(entity_base + Offset.m_iGlowIndex, 16));
writeGlow(glowIndex, 1, 0, 0, 1);
}
}
public void writeGlow(int glw, float red, float green, float blue, float alpha)
{
string glow_object = Convert.ToString(Offset.dwGlowObjectManager, 16) + ",";
m.WriteMemory(client + glow_object + Convert.ToString(glw * 0x38 + 0x8, 16), "float", (255 / 100f).ToString());
m.WriteMemory(client + glow_object + Convert.ToString(glw * 0x38 + 0xC, 16), "float", green.ToString());
m.WriteMemory(client + glow_object + Convert.ToString(glw * 0x38 + 0x10, 16), "float", blue.ToString());
m.WriteMemory(client + glow_object + Convert.ToString(glw * 0x38 + 0x14, 16), "float", alpha.ToString());
m.WriteMemory(client + glow_object + Convert.ToString(glw * 0x38 + 0x24 + 0x4, 16), "bool", "1");
m.WriteMemory(client + glow_object + Convert.ToString(glw * 0x38 + 0x25 + 0x4, 16), "bool", "1");
m.WriteMemory(client + glow_object + Convert.ToString(glw * 0x38 + 0x2C + 0x4, 16), "bool", "0");
}