public static void RadarThread() { while (true) { if (!Globals.RadarEnabled) { Thread.Sleep(Globals.IdleWait); continue; } if (!EngineDLL.InGame) { Thread.Sleep(Globals.IdleWait); continue; } int mp = EngineDLL.MaxPlayer; for (int i = 0; i < mp; i++) { CBaseEntity baseEntity = entityList[i]; if (baseEntity == null) { continue; } CCSPlayer entity = new CCSPlayer(baseEntity); if (entity == null) { continue; } if (entity.Dormant) { continue; } if (entity.Team == CBasePlayer.Team) { continue; } if (!entity.Spotted) { entity.Spotted = true; } } Thread.Sleep(Globals.UsageDelay); } }
public static void RenderColorThread() { while (true) { if (!Globals.RenderEnabled) { Thread.Sleep(Globals.IdleWait); continue; } if (!EngineDLL.InGame) { Thread.Sleep(Globals.IdleWait); continue; } int mp = EngineDLL.MaxPlayer; for (int i = 0; i < mp; i++) { CBaseEntity baseEntity = entityList[i]; if (baseEntity == null) { continue; } CCSPlayer entity = new CCSPlayer(baseEntity); if (entity == null) { continue; } if (entity.Dormant) { continue; } if (entity.Health <= 0) { continue; } if (entity.Team != CBasePlayer.Team) { RenderColor rco = new RenderColor(); rco.r = Globals.RenderColor.R; rco.g = Globals.RenderColor.G; rco.b = Globals.RenderColor.B; rco.a = 255; entity.RenderColor = rco; } if (Globals.RenderEnemyOnly) { continue; } RenderColor rc = new RenderColor(); rc.r = Globals.RenderColor.R; rc.g = Globals.RenderColor.G; rc.b = Globals.RenderColor.B; rc.a = 255; entity.RenderColor = rc; } Thread.Sleep(Globals.UsageDelay); } }
public static void AimbotThread() { while (true) { if (!Globals.AimEnabled) { Thread.Sleep(Globals.IdleWait); continue; } if (!EngineDLL.InGame) { Thread.Sleep(Globals.IdleWait); continue; } int mp = EngineDLL.MaxPlayer; Rectangle screen = Objects.Structs.Misc.GetWindowRect(); Vector2 screenOrigin = new Vector2(screen.Width / 2, screen.Height / 2); double latestDistance = screen.Width; Vector3 closestEntityPos = new Vector3(99999f, 0f, 0f); for (int i = 0; i < mp; i++) { CBaseEntity baseEntity = entityList[i]; if (baseEntity == null) { continue; } CCSPlayer entity = new CCSPlayer(baseEntity); if (entity == null) { continue; } if (entity.Dormant) { continue; } if (entity.Health <= 0) { continue; } if (entity.Team == CBasePlayer.Team) { continue; } Vector3 entSelectedPos = entity.GetBonePosition((int)Globals.AimPosition); Vector2 entPosOnScreen; if (entSelectedPos.PointOnScreen(out entPosOnScreen)) { if (entPosOnScreen.x > screen.Width || entPosOnScreen.x < 0 || entPosOnScreen.y > screen.Height || entPosOnScreen.y < 0) { continue; } } else { continue; } double dist = Sqrt(Pow(screenOrigin.x - entPosOnScreen.x, 2) + Pow(screenOrigin.y - entPosOnScreen.y, 2)); if (dist < latestDistance) { latestDistance = dist; closestEntityPos = entSelectedPos; } } if (closestEntityPos.x != 99999f && (GetAsyncKeyState(Globals.TriggerKey) & 0x8000) > 0) { Angle AimAt = CalcAngle(CBasePlayer.VectorEyeLevel, closestEntityPos); if (Globals.AimRecoil) { Angle Punch = CBasePlayer.ViewPunchAngle * 2.0f; AimAt.x -= Punch.x; AimAt.y -= Punch.y; } CBasePlayer.ViewAngle = AimAt; if (!Globals.AimShootOnCollide) { if (weaponList.ActiveWeapon.IsSniper()) { ClientDLL.ForceRightAttack(true); Thread.Sleep(2); ClientDLL.ForceAttack(true); Thread.Sleep(5); ClientDLL.ForceRightAttack(false); ClientDLL.ForceAttack(false); } else { Thread.Sleep(1); ClientDLL.ForceAttack(true); Thread.Sleep(5); ClientDLL.ForceAttack(false); } } } Thread.Sleep(Globals.UsageDelay); } }
public static void WallHackThread() { while (true) { if (!Globals.WallHackEnabled) { Thread.Sleep(Globals.IdleWait); continue; } if (!EngineDLL.InGame) { Thread.Sleep(Globals.IdleWait); continue; } int mp = EngineDLL.MaxPlayer; for (int i = 0; i < mp; i++) { CBaseEntity baseEntity = entityList[i]; if (baseEntity == null) { continue; } CCSPlayer entity = new CCSPlayer(baseEntity); if (entity == null) { continue; } if (entity.Dormant) { continue; } if (entity.Health <= 0) { continue; } if (entity.Team != CBasePlayer.Team) { GlowObject glowObject = entityList[i].GlowObject; glowObject.r = Globals.WallHackEnemy.R / 255; glowObject.g = Globals.WallHackEnemy.G / 255; glowObject.b = Globals.WallHackEnemy.B / 255; glowObject.a = 0.7f; glowObject.m_bFullBloom = Globals.WallHackFullEnabled; glowObject.m_nGlowStyle = Globals.WallHackGlowOnly ? 1 : 0; glowObject.m_bRenderWhenOccluded = true; glowObject.m_bRenderWhenUnoccluded = false; entityList[i].GlowObject = glowObject; } else { GlowObject glowObject = entityList[i].GlowObject; glowObject.r = 0 / 255; glowObject.g = 255 / 255; glowObject.b = 0 / 255; glowObject.a = 0.7f; glowObject.m_bFullBloom = Globals.WallHackFullEnabled; glowObject.m_nGlowStyle = Globals.WallHackGlowOnly ? 1 : 0; glowObject.m_bRenderWhenOccluded = true; glowObject.m_bRenderWhenUnoccluded = false; entityList[i].GlowObject = glowObject; } } Thread.Sleep(Globals.UsageDelay); } }
public static void TriggerThread() { while (true) { if (!Globals.TriggerEnabled && !Globals.AimShootOnCollide) { Thread.Sleep(Globals.IdleWait); continue; } if (!EngineDLL.InGame) { Thread.Sleep(Globals.IdleWait); continue; } if (Globals.TriggerPressOnlyEnabled && !Globals.AimShootOnCollide) { if ((GetAsyncKeyState(Globals.TriggerKey) & 0x8000) > 0) { if (CBasePlayer.CrosshairID > 0 && CBasePlayer.CrosshairID < EngineDLL.MaxPlayer + 2) { CBaseEntity baseEntity = entityList[CBasePlayer.CrosshairID - 1]; if (baseEntity == null) { continue; } CCSPlayer crossEntity = new CCSPlayer(baseEntity); if (crossEntity == null) { continue; // TRIGGER BOT CRASH FIX } if (crossEntity != null && crossEntity.Team != CBasePlayer.Team) { Thread.Sleep(1); ClientDLL.ForceAttack(true); Thread.Sleep(5); ClientDLL.ForceAttack(false); } } } } else { if (CBasePlayer.CrosshairID > 0 && CBasePlayer.CrosshairID < EngineDLL.MaxPlayer + 2) { CBaseEntity baseEntity = entityList[CBasePlayer.CrosshairID - 1]; if (baseEntity == null) { continue; } CCSPlayer crossEntity = new CCSPlayer(baseEntity); if (crossEntity == null) { continue; } if (crossEntity != null && crossEntity.Team != CBasePlayer.Team) { Thread.Sleep(1); ClientDLL.ForceAttack(true); Thread.Sleep(5); ClientDLL.ForceAttack(false); } } } Thread.Sleep(2); } }