private void Overlay_Control(object sender)
{
while (Is_Game_Run())
{
LestFindSomeVoyeur1();
try
{
// Resize
if (IsResize)
{
device.Resize(new Size2(rect.Width, rect.Height));
IsResize = false;
}
// Begin Draw
device.BeginDraw();
device.Clear(new Color4(0.0f, 0.0f, 0.0f, 0.0f));
// Check Window State
if (!IsMinimized)
{
//RPM.ReadAngle(out lastAngle);
#region Scan Memory & Draw Players
Main_Scan();
#endregion
#region Aimbot Watch
if (bAimbot)
Aim_Update_Keys();
#endregion
#region Drawing Shortcut Menu
Draw_Shortcut_Menu(5, 5);
#endregion
#region Drawing Menu
if (bMenuControl)
Draw_Menu(10, 300);
#endregion
#region Drawing DrawShotAccuracy
Draw_Shot_Accuracy(rect.Width / 2 - 125, rect.Height - 5);
#endregion
#region Drawing Proximity Alert
if (bEspSpotline && proximityCount > 0)
Draw_Proximity_Alert(rect.Width / 2 + 300, rect.Height - 80, 155, 50);
#endregion
#region Drawing Hardcore Mode HUD
if (bHardcoreMode)
{
//if (bCrosshairHUD)
Draw_Crosshair_HUD(base.Width / 2, base.Height / 2, 30, 30, new Color(0, 0, 255, 255));
//if (bRadarHUD)
Draw_Radar_HUD(currMnHC == mnHardCoreMode.RIGHT ? base.Width - 220 : 20, base.Height - 432, 200, 200);
//if (bAmmoHealthHUD)
//{
Draw_Ammo_Health_HUD(currMnHC == mnHardCoreMode.RIGHT ? base.Width - 220 : 20, base.Height - 231, 200, 30);
Draw_Health_Bar_HUD(currMnHC == mnHardCoreMode.RIGHT ? base.Width - 220 : 20, base.Height - 200, 200, 15);
//}
}
#endregion
#region Drawing Spectator Count
Draw_Text_Center(rect.Width / 2 - 100, rect.Height - (int)font.FontSize, 200, (int)font.FontSize, spectatorCount + " SPECTATOR(S) ON SERVER", new Color(255, 214, 0, 255), true);
#endregion
#region Drawing Spectator Warning
if (bSpectatorWarn && spectatorCount > 0)
{
RectangleF rect2 = new RectangleF(rect.X, rect.Y, rect.Width, rect.Height);
Draw_Spectator_Warn((int)(rect2.Center.X /*rect.Center.X*/ - 125), 25, 350, 55);
}
#endregion
#region Drawing Credits
//DrawTextCenter(rect.Width / 2 - 125, 5, 250, (int)font.FontSize, AppTitle, new Color(255, 214, 0, 255), true);
#endregion
}
device.EndDraw(); ***
Calculate_FrameRate();
//Thread.Sleep(Interval);
}
catch (Exception ex)
{
Write_On_Log_File(DateTime.Now.ToString() + " - OVERLAY ERROR : " + ex);
}
LestFindSomeVoyeur1();
int r = new Random().Next(100);
G4rbag3Int(r);
}
RPM.CloseProcess();
Environment.Exit(0);
}