Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Threading;
- using System.Runtime.CompilerServices;
- namespace WindowsFormsApp1
- {
- class ESP
- {
- public static void DrawGlow(int GlowIndex, ESPStruct eStruct)
- {
- VAMemory vam = new VAMemory(Form1.process);
- int address = Form1.bClient + Offsets.dwGlowObjectManager;
- int GlowObject = vam.ReadInt32((IntPtr)address);
- vam.WriteFloat((IntPtr)(GlowObject + (GlowIndex * 0x38) + 8), eStruct.r);
- vam.WriteFloat((IntPtr)(GlowObject + (GlowIndex * 0x38) + 4), eStruct.g);
- vam.WriteFloat((IntPtr)(GlowObject + (GlowIndex * 0x38) + 12), eStruct.b);
- vam.WriteFloat((IntPtr)(GlowObject + (GlowIndex * 0x38) + 0x10), eStruct.a);
- vam.WriteBoolean((IntPtr)(GlowObject + (GlowIndex * 0x38) + 0x24), eStruct.rwo);
- vam.WriteBoolean((IntPtr)(GlowObject + (GlowIndex * 0x38) + 0x25), eStruct.rwuo);
- }
- public static void Glowing()
- {
- VAMemory vam = new VAMemory(Form1.process);
- while (true)
- {
- ESPStruct MyTeam = new ESPStruct
- {
- r = 0,
- g = 255f,
- b = 0,
- a = 0,
- rwo = true,
- rwuo = false,
- };
- ESPStruct EnemyTeam = new ESPStruct
- {
- r = 255f,
- g = 0,
- b = 0,
- a = 0,
- rwo = true,
- rwuo = false,
- };
- if (Config.GlowEnemy || Config.GlowTeam)
- {
- int num = 1;
- do
- {
- int adresss = Form1.bClient + Offsets.dwLocalPlayer;
- int LocalPlayer = vam.ReadInt32((IntPtr)adresss);
- adresss = Form1.bClient + Offsets.dwEntityList + (num - 1) * 0x10;
- int EntityList = vam.ReadInt32((IntPtr)adresss);
- adresss = EntityList + Offsets.oDormant;
- if (!vam.ReadBoolean((IntPtr)adresss))
- {
- adresss = EntityList + Offsets.m_iTeamNum;
- int HisTeam = vam.ReadInt32((IntPtr)adresss);
- adresss = LocalPlayer + Offsets.m_iTeamNum;
- int PlayerTeam = vam.ReadInt32((IntPtr)adresss);
- adresss = EntityList + Offsets.m_iGlowIndex;
- int GlowIndex = vam.ReadInt32((IntPtr)adresss);
- if (HisTeam == PlayerTeam)
- {
- if (Config.GlowTeam)
- DrawGlow(GlowIndex, MyTeam);
- }
- else
- {
- if (Config.GlowEnemy)
- DrawGlow(GlowIndex, EnemyTeam);
- }
- }
- num++;
- }
- while(num <= 64);
- }
- Thread.Sleep(0x11);
- }
- }
- public struct ESPStruct
- {
- public float r;
- public float g;
- public float b;
- public float a;
- public bool rwo;
- public bool rwuo;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement