@ -1,72 +1,72 @@
# include "overlay.h"
extern int serial - string aim;
extern bool serial - string esp;
extern bool serial - string aim_no_recoil;
extern bool serial - string ready;
extern bool serial - string use_nvidia;
extern float serial - string max_dist;
extern float serial - string seer_dist;
extern float serial - string smooth;
extern float serial - string max_fov;
extern float serial - stringuid _dist;
extern float serial - string scale;
extern int serial - string bone;
extern bool serial - string thirdperson;
extern float serial - string name_dist;
extern int serial - string spectators;
extern int serial - string allied_spectators;
extern bool serial - string chargerifle;
extern bool serial - string freecam;
extern bool serial - string lockall_mode;
extern bool serial - string display_spec;
extern bool serial - string firing_range;
extern int serial - string index;
int serial - string width;
int serial - string height;
bool serial - string k_leftclick = false ;
bool serial - string k_ins = false ;
bool serial - string show_menu = false ;
serial - stringvisuals serial - string v;
extern int changeableplace aim;
extern bool changeableplace esp;
extern bool changeableplace aim_no_recoil;
extern bool changeableplace ready;
extern bool changeableplace use_nvidia;
extern float changeableplace max_dist;
extern float changeableplace seer_dist;
extern float changeableplace smooth;
extern float changeableplace max_fov;
extern float changeableplacexp _dist;
extern float changeableplace scale;
extern int changeableplace bone;
extern bool changeableplace thirdperson;
extern float changeableplace name_dist;
extern int changeableplace spectators;
extern int changeableplace allied_spectators;
extern bool changeableplace chargerifle;
extern bool changeableplace freecam;
extern bool changeableplace lockall_mode;
extern bool changeableplace display_spec;
extern bool changeableplace firing_range;
extern int changeableplace index;
int changeableplace width;
int changeableplace height;
bool changeableplace k_leftclick = false ;
bool changeableplace k_ins = false ;
bool changeableplace show_menu = false ;
changeableplacevisuals changeableplace v;
extern bool IsKeyDown ( int vk ) ;
LONG serial - string nv_default = WS_POPUP | WS_CLIPSIBLINGS ;
LONG serial - stringnv_default_in_game = serial - string nv_default | WS_DISABLED ;
LONG serial - stringnv_edit = serial - string nv_default_in_game | WS_VISIBLE ;
LONG changeableplace nv_default = WS_POPUP | WS_CLIPSIBLINGS ;
LONG changeableplacenv_default_in_game = changeableplace nv_default | WS_DISABLED ;
LONG changeableplacenv_edit = changeableplace nv_default_in_game | WS_VISIBLE ;
LONG serial - string nv_ex_default = WS_EX_TOOLWINDOW ;
LONG serial - stringnv_ex_edit = serial - string nv_ex_default | WS_EX_LAYERED | WS_EX_TRANSPARENT ;
LONG serial - stringnv_ex_edit_menu = serial - string nv_ex_default | WS_EX_TRANSPARENT ;
LONG changeableplace nv_ex_default = WS_EX_TOOLWINDOW ;
LONG changeableplacenv_ex_edit = changeableplace nv_ex_default | WS_EX_LAYERED | WS_EX_TRANSPARENT ;
LONG changeableplacenv_ex_edit_menu = changeableplace nv_ex_default | WS_EX_TRANSPARENT ;
static DWORD WINAPI StaticMessageStart ( void * serial - string Param)
static DWORD WINAPI StaticMessageStart ( void * changeableplace Param)
{
Overlay * serial - stringov = ( Overlay * ) serial - string Param;
serial - stringov - > Createserial - string Overlay( ) ;
Overlay * changeableplaceov = ( Overlay * ) changeableplace Param;
changeableplaceov- > Createchangeableplace Overlay( ) ;
return 0 ;
}
BOOL CALLBACK EnumWindowsCallback ( HWND serial - string hwnd, LPARAM lParam )
BOOL CALLBACK EnumWindowsCallback ( HWND changeableplace hwnd, LPARAM lParam )
{
wchar_t class serial - string Name[ 255 ] = L " " ;
GetClassName ( serial - stringhwnd , classserial - string Name, 255 ) ;
if ( serial - string use_nvidia)
wchar_t class changeableplace Name[ 255 ] = L " " ;
GetClassName ( changeableplacehwnd, classchangeableplace Name, 255 ) ;
if ( changeableplace use_nvidia)
{
if ( wcscmp ( XorStrW ( L " CEF-OSC-WIDGET " ) , class serial - string Name) = = 0 ) //Nvidia overlay
if ( wcscmp ( XorStrW ( L " CEF-OSC-WIDGET " ) , class changeableplace Name) = = 0 ) //Nvidia overlay
{
HWND * w = ( HWND * ) lParam ;
if ( GetWindowLong ( serial - stringhwnd , GWL_STYLE ) ! = serial - stringnv_default & & GetWindowLong ( serial - stringhwnd , GWL_STYLE ) ! = serial - string nv_default_in_game)
if ( GetWindowLong ( changeableplacehwnd, GWL_STYLE ) ! = changeableplacenv_default & & GetWindowLong ( changeableplacehwnd , GWL_STYLE ) ! = changeableplace nv_default_in_game)
return TRUE ;
* w = serial - string hwnd;
* w = changeableplace hwnd;
return TRUE ;
}
}
else
{
if ( wcscmp ( XorStrW ( L " serial-stringoverlay" ) , classserial - string Name) = = 0 ) //Custom overlay
if ( wcscmp ( XorStrW ( L " changeableplaceoverlay" ) , classchangeableplace Name) = = 0 ) //Custom overlay
{
HWND * w = ( HWND * ) lParam ;
* w = serial - string hwnd;
* w = changeableplace hwnd;
return TRUE ;
}
}
@ -85,34 +85,30 @@ void CleanupDeviceD3D();
void CreateRenderTarget ( ) ;
void CleanupRenderTarget ( ) ;
void Overlay : : Render serial - string Menu( )
void Overlay : : Render changeableplace Menu( )
{
static bool serial - string aim_enable = false ;
static bool serial - string vis_check = false ;
static bool serial - string spec_disable = false ;
static bool serial - string all_spec_disable = false ;
static bool changeableplace aim_enable = false ;
static bool changeableplace vis_check = false ;
static bool changeableplace spec_disable = false ;
static bool changeableplace all_spec_disable = false ;
if ( serial - string aim > 0 )
if ( changeableplace aim > 0 )
{
serial - string aim_enable = true ;
if ( serial - string aim > 1 )
changeableplace aim_enable = true ;
if ( changeableplace aim > 1 )
{
serial - string vis_check = true ;
changeableplace vis_check = true ;
}
else
{
serial - string vis_check = false ;
changeableplace vis_check = false ;
}
}
else
{
serial - string aim_enable = false ;
serial - string vis_check = false ;
changeableplace aim_enable = false ;
changeableplace vis_check = false ;
}
//ImGui::Begin("#FOVC", nullptr, ImGuiWindowFlags_NoMove | ImGuiInputTextFlags_ReadOnly | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoScrollbar);
//auto draw = ImGui::GetBackgroundDrawList();
//draw->AddCircle(ImVec2(1920 / 2, 1080 / 2), serial-stringmax_fov * serial-stringscale, IM_COL32(255, 0, 0, 255), 100, 0.0f);
//ImGui::End();
ImGui : : SetNextWindowPos ( ImVec2 ( 0 , 0 ) ) ;
ImGui : : SetNextWindowSize ( ImVec2 ( 490 , 275 ) ) ;
ImGui : : Begin ( XorStr ( " ##title " ) , ( bool * ) true , ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoScrollbar ) ;
@ -121,82 +117,82 @@ void Overlay::Renderserial - stringMenu()
{
if ( ImGui : : BeginTabItem ( XorStr ( u8 " MainMenu " ) ) )
{
ImGui : : Checkbox ( XorStr ( u8 " ESP " ) , & serial - string esp) ;
ImGui : : Checkbox ( XorStr ( u8 " Aimbot " ) , & serial - string aim_enable) ;
ImGui : : Checkbox ( XorStr ( u8 " ESP " ) , & changeableplace esp) ;
ImGui : : Checkbox ( XorStr ( u8 " Aimbot " ) , & changeableplace aim_enable) ;
if ( serial - string aim_enable)
if ( changeableplace aim_enable)
{
ImGui : : SameLine ( ) ;
ImGui : : Checkbox ( XorStr ( u8 " Visible check " ) , & serial - string vis_check) ;
ImGui : : Checkbox ( XorStr ( u8 " Visible check " ) , & changeableplace vis_check) ;
ImGui : : SameLine ( ) ;
ImGui : : Checkbox ( XorStr ( u8 " No recoil " ) , & serial - string aim_no_recoil) ;
if ( serial - string vis_check)
ImGui : : Checkbox ( XorStr ( u8 " No recoil " ) , & changeableplace aim_no_recoil) ;
if ( changeableplace vis_check)
{
serial - string aim = 2 ;
changeableplace aim = 2 ;
}
else
{
serial - string aim = 1 ;
changeableplace aim = 1 ;
}
}
else
{
serial - string aim = 0 ;
changeableplace aim = 0 ;
}
ImGui : : Checkbox ( XorStr ( u8 " freecamera " ) , & serial - string freecam) ;
ImGui : : Checkbox ( XorStr ( u8 " Lock on teammates " ) , & serial - string lockall_mode) ;
ImGui : : Checkbox ( XorStr ( u8 " firing_range mode " ) , & serial - stringfiring_range ) ; //serial-string firing_range
//ImGui::InputInt(XorStr("index"), & serial-stringindex);//serial-string index
ImGui : : Checkbox ( XorStr ( u8 " freecamera " ) , & changeableplace freecam) ;
ImGui : : Checkbox ( XorStr ( u8 " Lock on teammates " ) , & changeableplace lockall_mode) ;
ImGui : : Checkbox ( XorStr ( u8 " firing_range mode " ) , & changeableplacefiring_range) ; //changeableplace firing_range
//ImGui::InputInt(XorStr("index"), & changeableplaceindex);//changeableplace index
ImGui : : EndTabItem ( ) ;
}
if ( ImGui : : BeginTabItem ( XorStr ( u8 " Aimbot " ) ) )
{
ImGui : : Text ( XorStr ( u8 " Max distence: " ) ) ;
ImGui : : SliderFloat ( XorStr ( " ##1 " ) , & serial - string max_dist, 100.0f * 40 , 800.0f * 40 , " %.2f " ) ;
ImGui : : SliderFloat ( XorStr ( " ##1 " ) , & changeableplace max_dist, 100.0f * 40 , 800.0f * 40 , " %.2f " ) ;
ImGui : : SameLine ( ) ;
ImGui : : Text ( u8 " (%d M) " , ( int ) ( serial - string max_dist / 40 ) ) ;
ImGui : : Text ( u8 " real dist :%d M " , ( int ) ( serial - string max_dist / 40 ) ) ;
ImGui : : Text ( u8 " (%d M) " , ( int ) ( changeableplace max_dist / 40 ) ) ;
ImGui : : Text ( u8 " real dist :%d M " , ( int ) ( changeableplace max_dist / 40 ) ) ;
ImGui : : Text ( XorStr ( u8 " Smooth " ) ) ;
ImGui : : SliderFloat ( XorStr ( " ##2 " ) , & serial - string smooth, 76.0f , 100.0f , " %.2f " ) ;
ImGui : : SliderFloat ( XorStr ( " ##2 " ) , & changeableplace smooth, 76.0f , 100.0f , " %.2f " ) ;
ImGui : : Text ( XorStr ( u8 " FOV: " ) ) ;
ImGui : : SliderFloat ( XorStr ( " ##3 " ) , & serial - string max_fov, 5.0f , 250.0f , " %.2f " ) ;
ImGui : : SliderFloat ( XorStr ( " ##3 " ) , & changeableplace max_fov, 5.0f , 250.0f , " %.2f " ) ;
ImGui : : Text ( XorStr ( u8 " Bone: " ) ) ;
ImGui : : SliderInt ( XorStr ( " ##4 " ) , & serial - string bone, 0 , 3 ) ;
ImGui : : SliderInt ( XorStr ( " ##4 " ) , & changeableplace bone, 0 , 3 ) ;
//ImGui::Text(XorStr(u8"FOV Draw scale:"));
//ImGui::SliderFloat(XorStr("##5"), & serial-string scale, 0.0f, 140.0f, "%.2f");
//ImGui::SliderFloat(XorStr("##5"), & changeableplace scale, 0.0f, 140.0f, "%.2f");
ImGui : : EndTabItem ( ) ;
}
if ( ImGui : : BeginTabItem ( XorStr ( u8 " ESPHACK " ) ) )
{
ImGui : : Text ( XorStr ( u8 " ESP " ) ) ;
//ImGui::Checkbox
ImGui : : Checkbox ( XorStr ( u8 " BOX " ) , & serial - stringv . serial - string box) ;
ImGui : : Checkbox ( XorStr ( u8 " BOX " ) , & changeableplacev. changeableplace box) ;
ImGui : : SameLine ( 0 , 70.0f ) ;
ImGui : : Checkbox ( XorStr ( u8 " Name " ) , & serial - stringv . serial - string name) ;
ImGui : : Checkbox ( XorStr ( u8 " uid" ) , & serial - stringv . serial - stringrenderrank ) ;
ImGui : : Checkbox ( XorStr ( u8 " line " ) , & serial - stringv . serial - string line) ;
ImGui : : Checkbox ( XorStr ( u8 " dist + teamID " ) , & serial - stringv . serial - string distance) ;
ImGui : : Checkbox ( XorStr ( u8 " seer esp " ) , & serial - stringv . serial - string healthbar) ;
ImGui : : Checkbox ( XorStr ( u8 " Name " ) , & changeableplacev. changeableplace name) ;
ImGui : : Checkbox ( XorStr ( u8 " xp level" ) , & changeableplacev . changeableplacerenderxp ) ;
ImGui : : Checkbox ( XorStr ( u8 " line " ) , & changeableplacev. changeableplace line) ;
ImGui : : Checkbox ( XorStr ( u8 " dist + teamID " ) , & changeableplacev. changeableplace distance) ;
ImGui : : Checkbox ( XorStr ( u8 " seer esp " ) , & changeableplacev. changeableplace healthbar) ;
ImGui : : Text ( XorStr ( u8 " seer esp distence: " ) ) ;
ImGui : : SliderFloat ( XorStr ( " ##1 " ) , & serial - string seer_dist, 100.0f * 40 , 800.0f * 40 , " %.2f " ) ;
ImGui : : SliderFloat ( XorStr ( " ##1 " ) , & changeableplace seer_dist, 100.0f * 40 , 800.0f * 40 , " %.2f " ) ;
ImGui : : SameLine ( ) ;
ImGui : : Text ( u8 " (%d M) " , ( int ) ( serial - string seer_dist / 40 ) ) ;
ImGui : : Text ( u8 " (%d M) " , ( int ) ( changeableplace seer_dist / 40 ) ) ;
ImGui : : Text ( XorStr ( u8 " uid esp distence:" ) ) ;
ImGui : : SliderFloat ( XorStr ( " ##2 " ) , & serial - stringuid _dist, 100.0f * 40 , 800.0f * 40 , " %.2f " ) ;
ImGui : : Text ( XorStr ( u8 " XP level display distence:" ) ) ;
ImGui : : SliderFloat ( XorStr ( " ##2 " ) , & changeableplacexp _dist, 100.0f * 40 , 800.0f * 40 , " %.2f " ) ;
ImGui : : SameLine ( ) ;
ImGui : : Text ( u8 " (%d M) " , ( int ) ( serial - stringuid _dist / 40 ) ) ;
ImGui : : Text ( u8 " (%d M) " , ( int ) ( changeableplacexp _dist / 40 ) ) ;
ImGui : : Text ( XorStr ( u8 " name esp distence: " ) ) ;
ImGui : : SliderFloat ( XorStr ( " ##3 " ) , & serial - string name_dist, 100.0f * 40 , 800.0f * 40 , " %.2f " ) ;
ImGui : : SliderFloat ( XorStr ( " ##3 " ) , & changeableplace name_dist, 100.0f * 40 , 800.0f * 40 , " %.2f " ) ;
ImGui : : SameLine ( ) ;
ImGui : : Text ( u8 " (%d M) " , ( int ) ( serial - string name_dist / 40 ) ) ;
ImGui : : Text ( u8 " (%d M) " , ( int ) ( changeableplace name_dist / 40 ) ) ;
ImGui : : EndTabItem ( ) ;
}
ImGui : : EndTabBar ( ) ;
@ -204,44 +200,44 @@ void Overlay::Renderserial - stringMenu()
ImGui : : End ( ) ;
}
void Overlay : : Render serial - string Info( )
void Overlay : : Render changeableplace Info( )
{
//ImGui::Begin("#FOVC'", nullptr, ImGuiWindowFlags_NoMove | ImGuiInputTextFlags_ReadOnly | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoScrollbar);
//auto draw = ImGui::GetBackgroundDrawList();
//draw ->AddCircle(ImVec2(1920 / 2, 1080 / 2), serial-stringmax_fov * serial-string scale ,IM_COL32(255, 0, 0, 255), 100, 0.0f);
//draw ->AddCircle(ImVec2(1920 / 2, 1080 / 2), changeableplacemax_fov * changeableplace scale ,IM_COL32(255, 0, 0, 255), 100, 0.0f);
//ImGui::End();
ImGui : : SetNextWindowPos ( ImVec2 ( 0 , 0 ) ) ;
ImGui : : SetNextWindowSize ( ImVec2 ( 210 , 25 ) ) ;
ImGui : : Begin ( XorStr ( " ##info " ) , ( bool * ) true , ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoScrollbar ) ;
ImGui : : TextColored ( RED , u8 " Enemies <EFBFBD> <EFBFBD> %d" , serial - string spectators) ;
ImGui : : TextColored ( RED , u8 " Enemies %d" , changeableplace spectators) ;
ImGui : : SameLine ( ) ;
ImGui : : Text ( " / " ) ;
ImGui : : SameLine ( ) ;
ImGui : : TextColored ( GREEN , u8 " Team <EFBFBD> <EFBFBD> %d" , serial - string allied_spectators) ;
ImGui : : TextColored ( GREEN , u8 " Team %d" , changeableplace allied_spectators) ;
ImGui : : End ( ) ;
}
void Overlay : : Click serial - stringThrough ( bool serial - string v)
void Overlay : : Click changeableplaceThrough( bool changeableplace v)
{
if ( serial - string v)
if ( changeableplace v)
{
serial - stringnv_edit = serial - string nv_default_in_game | WS_VISIBLE ;
if ( GetWindowLong ( overlay serial - stringHWND , GWL_EXSTYLE ) ! = serial - string nv_ex_edit)
SetWindowLong ( overlay serial - stringHWND , GWL_EXSTYLE , serial - string nv_ex_edit) ;
changeableplacenv_edit = changeableplace nv_default_in_game | WS_VISIBLE ;
if ( GetWindowLong ( overlay changeableplaceHWND, GWL_EXSTYLE ) ! = changeableplace nv_ex_edit)
SetWindowLong ( overlay changeableplaceHWND, GWL_EXSTYLE , changeableplace nv_ex_edit) ;
}
else
{
serial - stringnv_edit = serial - string nv_default | WS_VISIBLE ;
if ( GetWindowLong ( overlay serial - stringHWND , GWL_EXSTYLE ) ! = serial - string nv_ex_edit_menu)
SetWindowLong ( overlay serial - stringHWND , GWL_EXSTYLE , serial - string nv_ex_edit_menu) ;
changeableplacenv_edit = changeableplace nv_default | WS_VISIBLE ;
if ( GetWindowLong ( overlay changeableplaceHWND, GWL_EXSTYLE ) ! = changeableplace nv_ex_edit_menu)
SetWindowLong ( overlay changeableplaceHWND, GWL_EXSTYLE , changeableplace nv_ex_edit_menu) ;
}
}
DWORD Overlay : : Create serial - string Overlay( )
DWORD Overlay : : Create changeableplace Overlay( )
{
EnumWindows ( EnumWindowsCallback , ( LPARAM ) & overlay serial - string HWND) ;
EnumWindows ( EnumWindowsCallback , ( LPARAM ) & overlay changeableplace HWND) ;
Sleep ( 300 ) ;
if ( overlay serial - string HWND = = 0 )
if ( overlay changeableplace HWND = = 0 )
{
printf ( XorStr ( " Can't find the overlay \n " ) ) ;
Sleep ( 1000 ) ;
@ -249,21 +245,21 @@ DWORD Overlay::Createserial - stringOverlay()
}
HDC hDC = : : GetWindowDC ( NULL ) ;
serial - string width = : : GetDeviceCaps ( hDC , HORZRES ) ;
serial - string height = : : GetDeviceCaps ( hDC , VERTRES ) ;
changeableplace width = : : GetDeviceCaps ( hDC , HORZRES ) ;
changeableplace height = : : GetDeviceCaps ( hDC , VERTRES ) ;
serial - string running = true ;
changeableplace running = true ;
// Initialize Direct3D
if ( ! CreateDeviceD3D ( overlay serial - string HWND) )
if ( ! CreateDeviceD3D ( overlay changeableplace HWND) )
{
CleanupDeviceD3D ( ) ;
return 1 ;
}
// Show the window
: : ShowWindow ( overlay serial - string HWND, SW_SHOWDEFAULT ) ;
: : UpdateWindow ( overlay serial - string HWND) ;
: : ShowWindow ( overlay changeableplace HWND, SW_SHOWDEFAULT ) ;
: : UpdateWindow ( overlay changeableplace HWND) ;
// Setup Dear ImGui context
IMGUI_CHECKVERSION ( ) ;
@ -278,7 +274,7 @@ DWORD Overlay::Createserial - stringOverlay()
ImGui : : GetStyle ( ) . WindowMinSize = ImVec2 ( 1 , 1 ) ;
// Setup Platform/Renderer bindings
ImGui_ImplWin32_Init ( overlay serial - string HWND) ;
ImGui_ImplWin32_Init ( overlay changeableplace HWND) ;
ImGui_ImplDX11_Init ( g_pd3dDevice , g_pd3dDeviceContext ) ;
ImVec4 clear_color = ImVec4 ( 0.0f , 0.0f , 0.0f , 0.00f ) ;
@ -286,14 +282,14 @@ DWORD Overlay::Createserial - stringOverlay()
// Main loop
MSG msg ;
ZeroMemory ( & msg , sizeof ( msg ) ) ;
Click serial - string Through( true ) ;
while ( serial - string running)
Click changeableplace Through( true ) ;
while ( changeableplace running)
{
HWND wnd = GetWindow ( GetForegroundWindow ( ) , GW_HWNDPREV ) ;
if ( wnd ! = overlay serial - string HWND)
if ( wnd ! = overlay changeableplace HWND)
{
SetWindowPos ( overlay serial - string HWND, wnd , 0 , 0 , 0 , 0 , SWP_ASYNCWINDOWPOS | SWP_NOMOVE | SWP_NOSIZE ) ;
: : UpdateWindow ( overlay serial - string HWND) ;
SetWindowPos ( overlay changeableplace HWND, wnd , 0 , 0 , 0 , 0 , SWP_ASYNCWINDOWPOS | SWP_NOMOVE | SWP_NOSIZE ) ;
: : UpdateWindow ( overlay changeableplace HWND) ;
}
if ( : : PeekMessage ( & msg , NULL , 0U , 0U , PM_REMOVE ) )
@ -308,35 +304,35 @@ DWORD Overlay::Createserial - stringOverlay()
ImGui_ImplWin32_NewFrame ( ) ;
ImGui : : NewFrame ( ) ;
if ( IsKeyDown ( VK_LBUTTON ) & & ! serial - string k_leftclick)
if ( IsKeyDown ( VK_LBUTTON ) & & ! changeableplace k_leftclick)
{
io . MouseDown [ 0 ] = true ;
serial - string k_leftclick = true ;
changeableplace k_leftclick = true ;
}
else if ( ! IsKeyDown ( VK_LBUTTON ) & & serial - string k_leftclick)
else if ( ! IsKeyDown ( VK_LBUTTON ) & & changeableplace k_leftclick)
{
io . MouseDown [ 0 ] = false ;
serial - string k_leftclick = false ;
changeableplace k_leftclick = false ;
}
if ( IsKeyDown ( VK_INSERT ) & & ! serial - stringk_ins & & serial - string ready)
if ( IsKeyDown ( VK_INSERT ) & & ! changeableplacek_ins & & changeableplace ready)
{
serial - stringshow_menu = ! serial - string show_menu;
Click serial - stringThrough ( ! serial - string show_menu) ;
serial - string k_ins = true ;
changeableplaceshow_menu = ! changeableplace show_menu;
Click changeableplaceThrough( ! changeableplace show_menu) ;
changeableplace k_ins = true ;
}
else if ( ! IsKeyDown ( VK_INSERT ) & & serial - string k_ins)
else if ( ! IsKeyDown ( VK_INSERT ) & & changeableplace k_ins)
{
serial - string k_ins = false ;
changeableplace k_ins = false ;
}
if ( serial - string show_menu) {
Render serial - string Menu( ) ;
if ( changeableplace show_menu) {
Render changeableplace Menu( ) ;
}
else {
Render serial - string Info( ) ;
Render changeableplace Info( ) ;
}
Render serial - string Esp( ) ;
Render changeableplace Esp( ) ;
// Rendering
ImGui : : EndFrame ( ) ;
@ -350,33 +346,33 @@ DWORD Overlay::Createserial - stringOverlay()
std : : this_thread : : sleep_for ( std : : chrono : : milliseconds ( 1 ) ) ;
}
Click serial - string Through( true ) ;
Click changeableplace Through( true ) ;
CleanupDeviceD3D ( ) ;
: : DestroyWindow ( overlay serial - string HWND) ;
: : DestroyWindow ( overlay changeableplace HWND) ;
return 0 ;
}
void Overlay : : Start serial - string ( )
void Overlay : : Start changeableplace ( )
{
DWORD ThreadID ;
CreateThread ( NULL , 0 , StaticMessageStart , ( void * ) this , 0 , & ThreadID ) ;
}
void Overlay : : Clear serial - string ( )
void Overlay : : Clear changeableplace ( )
{
serial - string running = 0 ;
changeableplace running = 0 ;
Sleep ( 50 ) ;
}
int Overlay : : get serial - string Width( )
int Overlay : : get changeableplace Width( )
{
return serial - string width;
return changeableplace width;
}
int Overlay : : get serial - string Height( )
int Overlay : : get changeableplace Height( )
{
return serial - string height;
return changeableplace height;
}
// Helper functions
@ -435,37 +431,37 @@ void CleanupDeviceD3D()
if ( g_pd3dDevice ) { g_pd3dDevice - > Release ( ) ; g_pd3dDevice = NULL ; }
}
void Overlay : : Draw serial - string Line( ImVec2 a , ImVec2 b , ImColor color , float width )
void Overlay : : Draw changeableplace Line( ImVec2 a , ImVec2 b , ImColor color , float width )
{
ImGui : : GetWindowDrawList ( ) - > AddLine ( a , b , color , width ) ;
}
void Overlay : : Draw serial - string Box( ImColor color , float x , float y , float w , float h )
void Overlay : : Draw changeableplace Box( ImColor color , float x , float y , float w , float h )
{
Draw serial - string Line( ImVec2 ( x , y ) , ImVec2 ( x + w , y ) , color , 1.0f ) ;
Draw serial - string Line( ImVec2 ( x , y ) , ImVec2 ( x , y + h ) , color , 1.0f ) ;
Draw serial - string Line( ImVec2 ( x + w , y ) , ImVec2 ( x + w , y + h ) , color , 1.0f ) ;
Draw serial - string Line( ImVec2 ( x , y + h ) , ImVec2 ( x + w , y + h ) , color , 1.0f ) ;
Draw changeableplace Line( ImVec2 ( x , y ) , ImVec2 ( x + w , y ) , color , 1.0f ) ;
Draw changeableplace Line( ImVec2 ( x , y ) , ImVec2 ( x , y + h ) , color , 1.0f ) ;
Draw changeableplace Line( ImVec2 ( x + w , y ) , ImVec2 ( x + w , y + h ) , color , 1.0f ) ;
Draw changeableplace Line( ImVec2 ( x , y + h ) , ImVec2 ( x + w , y + h ) , color , 1.0f ) ;
}
void Overlay : : serial - string Text( ImVec2 pos , ImColor color , const char * text_begin , const char * text_end , float wrap_width , const ImVec4 * cpu_fine_clip_rect )
void Overlay : : changeableplace Text( ImVec2 pos , ImColor color , const char * text_begin , const char * text_end , float wrap_width , const ImVec4 * cpu_fine_clip_rect )
{
ImGui : : GetWindowDrawList ( ) - > AddText ( ImGui : : GetFont ( ) , 14 , pos , color , text_begin , text_end , wrap_width , cpu_fine_clip_rect ) ;
}
void Overlay : : String serial - string ( ImVec2 pos , ImColor color , const char * text )
void Overlay : : String changeableplace ( ImVec2 pos , ImColor color , const char * text )
{
serial - string Text( pos , color , text , text + strlen ( text ) , 200 , 0 ) ;
changeableplace Text( pos , color , text , text + strlen ( text ) , 200 , 0 ) ;
}
void Overlay : : Rect serial - string Filled( float x0 , float y0 , float x1 , float y1 , ImColor color , float rounding , int rounding_corners_flags )
void Overlay : : Rect changeableplace Filled( float x0 , float y0 , float x1 , float y1 , ImColor color , float rounding , int rounding_corners_flags )
{
ImGui : : GetWindowDrawList ( ) - > AddRectFilled ( ImVec2 ( x0 , y0 ) , ImVec2 ( x1 , y1 ) , color , rounding , rounding_corners_flags ) ;
}
void Overlay : : Progress serial - string Bar( float x , float y , float w , float h , int value , int v_max , ImColor barColor )
void Overlay : : Progress changeableplace Bar( float x , float y , float w , float h , int value , int v_max , ImColor barColor )
{
Rect serial - string Filled( x , y , x + w , y + ( ( h / float ( v_max ) ) * ( float ) value ) , barColor , 0.0f , 0 ) ;
Rect changeableplace Filled( x , y , x + w , y + ( ( h / float ( v_max ) ) * ( float ) value ) , barColor , 0.0f , 0 ) ;
}
@ -482,36 +478,36 @@ void DrawHexagonFilled(const ImVec2& p1, const ImVec2& p2, const ImVec2& p3, con
ImGui : : GetWindowDrawList ( ) - > AddHexagonFilled ( p1 , p2 , p3 , p4 , p5 , p6 , col ) ;
}
void Overlay : : Draw serial - stringHealth ( float serial - stringx , float serial - stringy , int serial - stringshield , int serial - stringmax_shield , int serial - stringarmorType , int serial - string health) {
void Overlay : : Draw changeableplaceHealth( float changeableplacex , float changeableplacey , int changeableplaceshield , int changeableplacemax_shield , int changeableplacearmorType , int changeableplace health) {
int serial - string bg_offset = 3 ;
int serial - stringbar_width = 158 ;
int changeableplace bg_offset = 3 ;
int changeableplacebar_width = 105 ; //158
// 4steps...2*3=6
// 38*4=152 152+6 = 158
// 5steps...2*4=8
// 30*5=150 150+8 = 158
float serial - stringmax_health = 100.0f ;
float serial - stringshield_step = 25.0f ;
float changeableplacemax_health = 100.0f ; //100
float changeableplaceshield_step = 25.0f ; //25
int serial - stringshield_25 = 30 ;
int serial - string steps = 5 ;
int changeableplaceshield_25 = 14 ; //30
int changeableplace steps = 5 ;
ImVec2 bg1 ( serial - stringx - serial - stringbar_width / 2 - serial - stringbg_offset , serial - string y) ;
ImVec2 bg1 ( changeableplacex - changeableplacebar_width / 2 - changeableplacebg_offset , changeableplace y) ;
ImVec2 bg2 ( bg1 . x - 10 , bg1 . y - 16 ) ;
ImVec2 bg3 ( bg2 . x + 5 , bg2 . y - 7 ) ;
ImVec2 bg4 ( bg3 . x + serial - stringbar_width + serial - string bg_offset, bg3 . y ) ;
ImVec2 bg4 ( bg3 . x + changeableplacebar_width + changeableplace bg_offset, bg3 . y ) ;
ImVec2 bg5 ( bg4 . x + 11 , bg4 . y + 18 ) ;
ImVec2 bg6 ( serial - stringx + serial - stringbar_width / 2 + serial - stringbg_offset , serial - string y) ;
ImVec2 bg6 ( changeableplacex + changeableplacebar_width / 2 + changeableplacebg_offset , changeableplace y) ;
DrawHexagonFilled ( bg1 , bg2 , bg3 , bg4 , bg5 , bg6 , ImColor ( 0 , 0 , 0 , 120 ) ) ;
ImVec2 h1 ( bg1 . x + 3 , bg1 . y - 4 ) ;
ImVec2 h2 ( h1 . x - 5 , h1 . y - 8 ) ;
ImVec2 h3 ( h2 . x + ( float ) serial - stringhealth / serial - stringmax_health * serial - string bar_width, h2 . y ) ;
ImVec2 h4 ( h1 . x + ( float ) serial - stringhealth / serial - stringmax_health * serial - string bar_width, h1 . y ) ;
ImVec2 h3m ( h2 . x + serial - string bar_width, h2 . y ) ;
ImVec2 h4m ( h1 . x + serial - string bar_width, h1 . y ) ;
ImVec2 h3 ( h2 . x + ( float ) changeableplacehealth / changeableplacemax_health * changeableplace bar_width, h2 . y ) ;
ImVec2 h4 ( h1 . x + ( float ) changeableplacehealth / changeableplacemax_health * changeableplace bar_width, h1 . y ) ;
ImVec2 h3m ( h2 . x + changeableplace bar_width, h2 . y ) ;
ImVec2 h4m ( h1 . x + changeableplace bar_width, h1 . y ) ;
DrawQuadFilled ( h1 , h2 , h3m , h4m , ImColor ( 10 , 10 , 30 , 60 ) ) ;
DrawQuadFilled ( h1 , h2 , h3 , h4 , WHITE ) ;
@ -521,23 +517,23 @@ void Overlay::Drawserial - stringHealth(float serial - stringx, float serial - s
ImColor shieldCol ;
ImColor shieldColDark ; //not used, but the real seer q has shadow inside
if ( serial - string max_shield = = 50 ) { //white
if ( changeableplace max_shield = = 50 ) { //white
shieldCol = ImColor ( 247 , 247 , 247 ) ;
shieldColDark = ImColor ( 164 , 164 , 164 ) ;
}
else if ( serial - string max_shield = = 75 ) { //blue
else if ( changeableplace max_shield = = 75 ) { //blue
shieldCol = ImColor ( 39 , 178 , 255 ) ;
shieldColDark = ImColor ( 27 , 120 , 210 ) ;
}
else if ( serial - string max_shield = = 100 ) { //purple
else if ( changeableplace max_shield = = 100 ) { //purple
shieldCol = ImColor ( 206 , 59 , 255 ) ;
shieldColDark = ImColor ( 136 , 36 , 220 ) ;
}
else if ( serial - string max_shield = = 100 ) { //gold
else if ( changeableplace max_shield = = 100 ) { //gold
shieldCol = ImColor ( 255 , 255 , 79 ) ;
shieldColDark = ImColor ( 218 , 175 , 49 ) ;
}
else if ( serial - string max_shield = = 125 ) { //red
else if ( changeableplace max_shield = = 125 ) { //red
shieldCol = ImColor ( 219 , 2 , 2 ) ;
shieldColDark = ImColor ( 219 , 2 , 2 ) ;
}
@ -545,7 +541,7 @@ void Overlay::Drawserial - stringHealth(float serial - stringx, float serial - s
shieldCol = ImColor ( 247 , 247 , 247 ) ;
shieldColDark = ImColor ( 164 , 164 , 164 ) ;
}
int shield_tmp = serial - string shield;
int shield_tmp = changeableplace shield;
int shield1 = 0 ;
int shield2 = 0 ;
int shield3 = 0 ;
@ -582,185 +578,185 @@ void Overlay::Drawserial - stringHealth(float serial - stringx, float serial - s
}
ImVec2 s1 ( h2 . x - 1 , h2 . y - 2 ) ;
ImVec2 s2 ( s1 . x - 3 , s1 . y - 5 ) ;
ImVec2 s3 ( s2 . x + shield1 / serial - stringshield_step * serial - string shield_25, s2 . y ) ;
ImVec2 s4 ( s1 . x + shield1 / serial - stringshield_step * serial - string shield_25, s1 . y ) ;
ImVec2 s3m ( s2 . x + serial - string shield_25, s2 . y ) ;
ImVec2 s4m ( s1 . x + serial - string shield_25, s1 . y ) ;
ImVec2 s3 ( s2 . x + shield1 / changeableplaceshield_step * changeableplace shield_25, s2 . y ) ;
ImVec2 s4 ( s1 . x + shield1 / changeableplaceshield_step * changeableplace shield_25, s1 . y ) ;
ImVec2 s3m ( s2 . x + changeableplace shield_25, s2 . y ) ;
ImVec2 s4m ( s1 . x + changeableplace shield_25, s1 . y ) ;
ImVec2 ss1 ( s4m . x + 2 , s1 . y ) ;
ImVec2 ss2 ( s3m . x + 2 , s2 . y ) ;
ImVec2 ss3 ( ss2 . x + shield2 / serial - stringshield_step * serial - string shield_25, s2 . y ) ;
ImVec2 ss4 ( ss1 . x + shield2 / serial - stringshield_step * serial - string shield_25, s1 . y ) ;
ImVec2 ss3m ( ss2 . x + serial - string shield_25, s2 . y ) ;
ImVec2 ss4m ( ss1 . x + serial - string shield_25, s1 . y ) ;
ImVec2 ss3 ( ss2 . x + shield2 / changeableplaceshield_step * changeableplace shield_25, s2 . y ) ;
ImVec2 ss4 ( ss1 . x + shield2 / changeableplaceshield_step * changeableplace shield_25, s1 . y ) ;
ImVec2 ss3m ( ss2 . x + changeableplace shield_25, s2 . y ) ;
ImVec2 ss4m ( ss1 . x + changeableplace shield_25, s1 . y ) ;
ImVec2 sss1 ( ss4m . x + 2 , s1 . y ) ;
ImVec2 sss2 ( ss3m . x + 2 , s2 . y ) ;
ImVec2 sss3 ( sss2 . x + shield3 / serial - stringshield_step * serial - string shield_25, s2 . y ) ;
ImVec2 sss4 ( sss1 . x + shield3 / serial - stringshield_step * serial - string shield_25, s1 . y ) ;
ImVec2 sss3m ( sss2 . x + serial - string shield_25, s2 . y ) ;
ImVec2 sss4m ( sss1 . x + serial - string shield_25, s1 . y ) ;
ImVec2 sss3 ( sss2 . x + shield3 / changeableplaceshield_step * changeableplace shield_25, s2 . y ) ;
ImVec2 sss4 ( sss1 . x + shield3 / changeableplaceshield_step * changeableplace shield_25, s1 . y ) ;
ImVec2 sss3m ( sss2 . x + changeableplace shield_25, s2 . y ) ;
ImVec2 sss4m ( sss1 . x + changeableplace shield_25, s1 . y ) ;
ImVec2 ssss1 ( sss4m . x + 2 , s1 . y ) ;
ImVec2 ssss2 ( sss3m . x + 2 , s2 . y ) ;
ImVec2 ssss3 ( ssss2 . x + shield4 / serial - stringshield_step * serial - string shield_25, s2 . y ) ;
ImVec2 ssss4 ( ssss1 . x + shield4 / serial - stringshield_step * serial - string shield_25, s1 . y ) ;
ImVec2 ssss3m ( ssss2 . x + serial - string shield_25, s2 . y ) ;
ImVec2 ssss4m ( ssss1 . x + serial - string shield_25, s1 . y ) ;
ImVec2 ssss3 ( ssss2 . x + shield4 / changeableplaceshield_step * changeableplace shield_25, s2 . y ) ;
ImVec2 ssss4 ( ssss1 . x + shield4 / changeableplaceshield_step * changeableplace shield_25, s1 . y ) ;
ImVec2 ssss3m ( ssss2 . x + changeableplace shield_25, s2 . y ) ;
ImVec2 ssss4m ( ssss1 . x + changeableplace shield_25, s1 . y ) ;
ImVec2 sssss1 ( ssss4m . x + 2 , s1 . y ) ;
ImVec2 sssss2 ( ssss3m . x + 2 , s2 . y ) ;
ImVec2 sssss3 ( sssss2 . x + shield5 / serial - stringshield_step * serial - string shield_25, s2 . y ) ;
ImVec2 sssss4 ( sssss1 . x + shield5 / serial - stringshield_step * serial - string shield_25, s1 . y ) ;
ImVec2 sssss3m ( sssss2 . x + serial - string shield_25, s2 . y ) ;
ImVec2 sssss4m ( sssss1 . x + serial - string shield_25, s1 . y ) ;
if ( serial - string max_shield = = 50 ) {
if ( serial - string shield < = 25 ) {
if ( serial - string shield < 25 ) {
ImVec2 sssss3 ( sssss2 . x + shield5 / changeableplaceshield_step * changeableplace shield_25, s2 . y ) ;
ImVec2 sssss4 ( sssss1 . x + shield5 / changeableplaceshield_step * changeableplace shield_25, s1 . y ) ;
ImVec2 sssss3m ( sssss2 . x + changeableplace shield_25, s2 . y ) ;
ImVec2 sssss4m ( sssss1 . x + changeableplace shield_25, s1 . y ) ;
if ( changeableplace max_shield = = 50 ) {
if ( changeableplace shield < = 25 ) {
if ( changeableplace shield < 25 ) {
DrawQuadFilled ( s1 , s2 , s3m , s4m , shieldCracked ) ;
DrawQuadFilled ( ss1 , ss2 , ss3m , ss4m , shieldCracked ) ;
}
if ( serial - string shield ! = 0 )
if ( changeableplace shield ! = 0 )
DrawQuadFilled ( s1 , s2 , s3 , s4 , shieldCol ) ;
}
else if ( serial - string shield < = 50 ) {
else if ( changeableplace shield < = 50 ) {
DrawQuadFilled ( s1 , s2 , s3 , s4 , shieldCol ) ;
if ( serial - string shield ! = 50 ) {
if ( changeableplace shield ! = 50 ) {
DrawQuadFilled ( ss1 , ss2 , ss3m , ss4m , shieldCracked ) ;
}
if ( serial - string shield ! = 0 )
if ( changeableplace shield ! = 0 )
DrawQuadFilled ( ss1 , ss2 , ss3 , ss4 , shieldCol ) ;
}
}
else if ( serial - string max_shield = = 75 ) {
if ( serial - string shield < = 25 ) {
if ( serial - string shield < 25 ) {
else if ( changeableplace max_shield = = 75 ) {
if ( changeableplace shield < = 25 ) {
if ( changeableplace shield < 25 ) {
DrawQuadFilled ( s1 , s2 , s3m , s4m , shieldCracked ) ;
DrawQuadFilled ( ss1 , ss2 , ss3m , ss4m , shieldCracked ) ;
DrawQuadFilled ( sss1 , sss2 , sss3m , sss4m , shieldCracked ) ;
}
if ( serial - string shield ! = 0 )
if ( changeableplace shield ! = 0 )
DrawQuadFilled ( s1 , s2 , s3 , s4 , shieldCol ) ;
}
else if ( serial - string shield < = 50 ) {
else if ( changeableplace shield < = 50 ) {
DrawQuadFilled ( s1 , s2 , s3 , s4 , shieldCol ) ;
if ( serial - string shield < 50 ) {
if ( changeableplace shield < 50 ) {
DrawQuadFilled ( ss1 , ss2 , ss3m , ss4m , shieldCracked ) ;
DrawQuadFilled ( sss1 , sss2 , sss3m , sss4m , shieldCracked ) ;
}
if ( serial - string shield ! = 0 )
if ( changeableplace shield ! = 0 )
DrawQuadFilled ( ss1 , ss2 , ss3 , ss4 , shieldCol ) ;
}
else if ( serial - string shield < = 75 ) {
else if ( changeableplace shield < = 75 ) {
DrawQuadFilled ( s1 , s2 , s3 , s4 , shieldCol ) ;
DrawQuadFilled ( ss1 , ss2 , ss3 , ss4 , shieldCol ) ;
if ( serial - string shield < 75 ) {
if ( changeableplace shield < 75 ) {
DrawQuadFilled ( sss1 , sss2 , sss3m , sss4m , shieldCracked ) ;
}
if ( serial - string shield ! = 0 )
if ( changeableplace shield ! = 0 )
DrawQuadFilled ( sss1 , sss2 , sss3 , sss4 , shieldCol ) ;
}
}
else if ( serial - string max_shield = = 100 ) {
if ( serial - string shield < = 25 ) {
if ( serial - string shield < 25 ) {
else if ( changeableplace max_shield = = 100 ) {
if ( changeableplace shield < = 25 ) {
if ( changeableplace shield < 25 ) {
DrawQuadFilled ( s1 , s2 , s3m , s4m , shieldCracked ) ;
DrawQuadFilled ( ss1 , ss2 , ss3m , ss4m , shieldCracked ) ;
DrawQuadFilled ( sss1 , sss2 , sss3m , sss4m , shieldCracked ) ;
DrawQuadFilled ( ssss1 , ssss2 , ssss3m , ssss4m , shieldCracked ) ;
}
if ( serial - string shield ! = 0 )
if ( changeableplace shield ! = 0 )
DrawQuadFilled ( s1 , s2 , s3 , s4 , shieldCol ) ;
}
else if ( serial - string shield < = 50 ) {
else if ( changeableplace shield < = 50 ) {
DrawQuadFilled ( s1 , s2 , s3 , s4 , shieldCol ) ;
if ( serial - string shield < 50 ) {
if ( changeableplace shield < 50 ) {
DrawQuadFilled ( ss1 , ss2 , ss3m , ss4m , shieldCracked ) ;
DrawQuadFilled ( sss1 , sss2 , sss3m , sss4m , shieldCracked ) ;
DrawQuadFilled ( ssss1 , ssss2 , ssss3m , ssss4m , shieldCracked ) ;
}
if ( serial - string shield ! = 0 )
if ( changeableplace shield ! = 0 )
DrawQuadFilled ( ss1 , ss2 , ss3 , ss4 , shieldCol ) ;
}
else if ( serial - string shield < = 75 ) {
else if ( changeableplace shield < = 75 ) {
DrawQuadFilled ( s1 , s2 , s3 , s4 , shieldCol ) ;
DrawQuadFilled ( ss1 , ss2 , ss3 , ss4 , shieldCol ) ;
if ( serial - string shield < 75 ) {
if ( changeableplace shield < 75 ) {
DrawQuadFilled ( sss1 , sss2 , sss3m , sss4m , shieldCracked ) ;
DrawQuadFilled ( ssss1 , ssss2 , ssss3m , ssss4m , shieldCracked ) ;
}
if ( serial - string shield ! = 0 )
if ( changeableplace shield ! = 0 )
DrawQuadFilled ( sss1 , sss2 , sss3 , sss4 , shieldCol ) ;
}
else if ( serial - string shield < = 100 ) {
else if ( changeableplace shield < = 100 ) {
DrawQuadFilled ( s1 , s2 , s3 , s4 , shieldCol ) ;
DrawQuadFilled ( ss1 , ss2 , ss3 , ss4 , shieldCol ) ;
DrawQuadFilled ( sss1 , sss2 , sss3 , sss4 , shieldCol ) ;
if ( serial - string shield < 100 ) {
if ( changeableplace shield < 100 ) {
DrawQuadFilled ( ssss1 , ssss2 , ssss3m , ssss4m , shieldCracked ) ;
}
if ( serial - string shield ! = 0 )
if ( changeableplace shield ! = 0 )
DrawQuadFilled ( ssss1 , ssss2 , ssss3 , ssss4 , shieldCol ) ;
}
}
else if ( serial - string max_shield = = 125 ) {
if ( serial - string shield < = 25 ) {
if ( serial - string shield < 25 ) {
else if ( changeableplace max_shield = = 125 ) {
if ( changeableplace shield < = 25 ) {
if ( changeableplace shield < 25 ) {
DrawQuadFilled ( s1 , s2 , s3m , s4m , shieldCracked ) ;
DrawQuadFilled ( ss1 , ss2 , ss3m , ss4m , shieldCracked ) ;
DrawQuadFilled ( sss1 , sss2 , sss3m , sss4m , shieldCracked ) ;
DrawQuadFilled ( ssss1 , ssss2 , ssss3m , ssss4m , shieldCracked ) ;
DrawQuadFilled ( sssss1 , sssss2 , sssss3m , sssss4m , shieldCracked ) ;
}
if ( serial - string shield ! = 0 )
if ( changeableplace shield ! = 0 )
DrawQuadFilled ( s1 , s2 , s3 , s4 , shieldCol ) ;
}
else if ( serial - string shield < = 50 ) {
else if ( changeableplace shield < = 50 ) {
DrawQuadFilled ( s1 , s2 , s3 , s4 , shieldCol ) ;
if ( serial - string shield < 50 ) {
if ( changeableplace shield < 50 ) {
DrawQuadFilled ( ss1 , ss2 , ss3m , ss4m , shieldCracked ) ;
DrawQuadFilled ( sss1 , sss2 , sss3m , sss4m , shieldCracked ) ;
DrawQuadFilled ( ssss1 , ssss2 , ssss3m , ssss4m , shieldCracked ) ;
DrawQuadFilled ( sssss1 , sssss2 , sssss3m , sssss4m , shieldCracked ) ;
}
if ( serial - string shield ! = 0 )
if ( changeableplace shield ! = 0 )
DrawQuadFilled ( ss1 , ss2 , ss3 , ss4 , shieldCol ) ;
}
else if ( serial - string shield < = 75 ) {
else if ( changeableplace shield < = 75 ) {
DrawQuadFilled ( s1 , s2 , s3 , s4 , shieldCol ) ;
DrawQuadFilled ( ss1 , ss2 , ss3 , ss4 , shieldCol ) ;
if ( serial - string shield < 75 ) {
if ( changeableplace shield < 75 ) {
DrawQuadFilled ( sss1 , sss2 , sss3m , sss4m , shieldCracked ) ;
DrawQuadFilled ( ssss1 , ssss2 , ssss3m , ssss4m , shieldCracked ) ;
DrawQuadFilled ( sssss1 , sssss2 , sssss3m , sssss4m , shieldCracked ) ;
}
if ( serial - string shield ! = 0 )
if ( changeableplace shield ! = 0 )
DrawQuadFilled ( sss1 , sss2 , sss3 , sss4 , shieldCol ) ;
}
else if ( serial - string shield < = 100 ) {
else if ( changeableplace shield < = 100 ) {
DrawQuadFilled ( s1 , s2 , s3 , s4 , shieldCol ) ;
DrawQuadFilled ( ss1 , ss2 , ss3 , ss4 , shieldCol ) ;
DrawQuadFilled ( sss1 , sss2 , sss3 , sss4 , shieldCol ) ;
if ( serial - string shield < 100 ) {
if ( changeableplace shield < 100 ) {
DrawQuadFilled ( ssss1 , ssss2 , ssss3m , ssss4m , shieldCracked ) ;
DrawQuadFilled ( sssss1 , sssss2 , sssss3m , sssss4m , shieldCracked ) ;
}
if ( serial - string shield ! = 0 )
if ( changeableplace shield ! = 0 )
DrawQuadFilled ( ssss1 , ssss2 , ssss3 , ssss4 , shieldCol ) ;
}
else if ( serial - string shield < = 125 ) {
else if ( changeableplace shield < = 125 ) {
DrawQuadFilled ( s1 , s2 , s3 , s4 , shieldCol ) ;
DrawQuadFilled ( ss1 , ss2 , ss3 , ss4 , shieldCol ) ;
DrawQuadFilled ( sss1 , sss2 , sss3 , sss4 , shieldCol ) ;
DrawQuadFilled ( ssss1 , ssss2 , ssss3 , ssss4 , shieldCol ) ;
if ( serial - string shield < 125 ) {
if ( changeableplace shield < 125 ) {
DrawQuadFilled ( sssss1 , sssss2 , sssss3m , sssss4m , shieldCracked ) ;
}
if ( serial - string shield ! = 0 )
if ( changeableplace shield ! = 0 )
DrawQuadFilled ( sssss1 , sssss2 , sssss3 , sssss4 , shieldCol ) ;
}
}