@ -1,72 +1,73 @@
# include "overlay.h"
extern int changeableplaceaim ;
extern bool changeableplaceesp ;
extern bool changeableplaceaim_no_recoil ;
extern bool changeableplaceready ;
extern bool changeableplaceuse_nvidia ;
extern float changeableplacemax_dist ;
extern float changeableplaceseer_dist ;
extern float changeableplacesmooth ;
extern float changeableplacemax_fov ;
extern float changeableplacexp_dist ;
extern float changeableplacescale ;
extern int changeableplacebone ;
extern bool changeableplacethirdperson ;
extern float changeableplacename_dist ;
extern int changeableplacespectators ;
extern int changeableplaceallied_spectators ;
extern bool changeableplacechargerifle ;
extern bool changeableplacefreecam ;
extern bool changeableplacelockall_mode ;
extern bool changeableplacedisplay_spec ;
extern bool changeableplacefiring_range ;
extern int changeableplaceindex ;
int changeableplacewidth ;
int changeableplaceheight ;
bool changeableplacek_leftclick = false ;
bool changeableplacek_ins = false ;
bool changeableplaceshow_menu = false ;
changeableplacevisuals changeableplacev ;
extern int placeholderaim ;
extern bool placeholderesp ;
extern bool placeholderaim_no_recoil ;
extern bool placeholderready ;
extern bool placeholderuse_nvidia ;
extern float placeholdermax_dist ;
extern float placeholderseer_dist ;
extern float placeholdersmooth ;
extern float placeholdermax_fov ;
extern float placeholderxp_dist ;
extern float placeholderscale ;
extern int placeholderbone ;
extern bool placeholderthirdperson ;
extern float placeholdername_dist ;
extern int placeholderspectators ;
extern int placeholderallied_spectators ;
extern bool placeholderchargerifle ;
extern bool placeholderfreecam ;
extern bool placeholderlockall_mode ;
extern bool placeholderfiring_range ;
extern int placeholderindex ;
extern float placeholderrcs_pitch ;
extern float placeholderrcs_yaw ;
int placeholderwidth ;
int placeholderheight ;
bool placeholderk_leftclick = false ;
bool placeholderk_ins = false ;
bool placeholdershow_menu = false ;
placeholdervisuals placeholderv ;
extern bool IsKeyDown ( int vk ) ;
LONG changeable placenv_default = WS_POPUP | WS_CLIPSIBLINGS ;
LONG changeable placenv_default_in_game = changeable placenv_default | WS_DISABLED ;
LONG changeable placenv_edit = changeable placenv_default_in_game | WS_VISIBLE ;
LONG placeholder nv_default = WS_POPUP | WS_CLIPSIBLINGS ;
LONG placeholder nv_default_in_game = placeholder nv_default | WS_DISABLED ;
LONG placeholder nv_edit = placeholder nv_default_in_game | WS_VISIBLE ;
LONG changeable placenv_ex_default = WS_EX_TOOLWINDOW ;
LONG changeable placenv_ex_edit = changeable placenv_ex_default | WS_EX_LAYERED | WS_EX_TRANSPARENT ;
LONG changeable placenv_ex_edit_menu = changeable placenv_ex_default | WS_EX_TRANSPARENT ;
LONG placeholder nv_ex_default = WS_EX_TOOLWINDOW ;
LONG placeholder nv_ex_edit = placeholder nv_ex_default | WS_EX_LAYERED | WS_EX_TRANSPARENT ;
LONG placeholder nv_ex_edit_menu = placeholder nv_ex_default | WS_EX_TRANSPARENT ;
static DWORD WINAPI StaticMessageStart ( void * changeable placeParam)
static DWORD WINAPI StaticMessageStart ( void * placeholder Param)
{
Overlay * changeable placeov = ( Overlay * ) changeable placeParam;
changeable placeov- > Create changeable placeOverlay( ) ;
Overlay * placeholder ov = ( Overlay * ) placeholder Param;
placeholder ov- > Create placeholder Overlay( ) ;
return 0 ;
}
BOOL CALLBACK EnumWindowsCallback ( HWND changeable placehwnd, LPARAM lParam )
BOOL CALLBACK EnumWindowsCallback ( HWND placeholder hwnd, LPARAM lParam )
{
wchar_t class changeable placeName[ 255 ] = L " " ;
GetClassName ( changeable placehwnd, class changeable placeName, 255 ) ;
if ( changeable placeuse_nvidia)
wchar_t class placeholder Name[ 255 ] = L " " ;
GetClassName ( placeholder hwnd, class placeholder Name, 255 ) ;
if ( placeholder use_nvidia)
{
if ( wcscmp ( XorStrW ( L " CEF-OSC-WIDGET " ) , class changeable placeName) = = 0 ) //Nvidia overlay
if ( wcscmp ( XorStrW ( L " CEF-OSC-WIDGET " ) , class placeholder Name) = = 0 ) //Nvidia overlay
{
HWND * w = ( HWND * ) lParam ;
if ( GetWindowLong ( changeable placehwnd, GWL_STYLE ) ! = changeable placenv_default & & GetWindowLong ( changeable placehwnd, GWL_STYLE ) ! = changeable placenv_default_in_game)
if ( GetWindowLong ( placeholder hwnd, GWL_STYLE ) ! = placeholder nv_default & & GetWindowLong ( placeholder hwnd, GWL_STYLE ) ! = placeholder nv_default_in_game)
return TRUE ;
* w = changeable placehwnd;
* w = placeholder hwnd;
return TRUE ;
}
}
else
{
if ( wcscmp ( XorStrW ( L " changeable placeoverlay" ) , class changeable placeName) = = 0 ) //Custom overlay
if ( wcscmp ( XorStrW ( L " placeholder overlay" ) , class placeholder Name) = = 0 ) //Custom overlay
{
HWND * w = ( HWND * ) lParam ;
* w = changeable placehwnd;
* w = placeholder hwnd;
return TRUE ;
}
}
@ -85,29 +86,29 @@ void CleanupDeviceD3D();
void CreateRenderTarget ( ) ;
void CleanupRenderTarget ( ) ;
void Overlay : : Render changeable placeMenu( )
void Overlay : : Render placeholder Menu( )
{
static bool changeable placeaim_enable = false ;
static bool changeable placevis_check = false ;
static bool changeable placespec_disable = false ;
static bool changeable placeall_spec_disable = false ;
static bool placeholder aim_enable = false ;
static bool placeholder vis_check = false ;
static bool placeholder spec_disable = false ;
static bool placeholder all_spec_disable = false ;
if ( changeable placeaim > 0 )
if ( placeholder aim > 0 )
{
changeable placeaim_enable = true ;
if ( changeable placeaim > 1 )
placeholder aim_enable = true ;
if ( placeholder aim > 1 )
{
changeable placevis_check = true ;
placeholder vis_check = true ;
}
else
{
changeable placevis_check = false ;
placeholder vis_check = false ;
}
}
else
{
changeable placeaim_enable = false ;
changeable placevis_check = false ;
placeholder aim_enable = false ;
placeholder vis_check = false ;
}
ImGui : : SetNextWindowPos ( ImVec2 ( 0 , 0 ) ) ;
ImGui : : SetNextWindowSize ( ImVec2 ( 490 , 275 ) ) ;
@ -117,82 +118,88 @@ void Overlay::RenderchangeableplaceMenu()
{
if ( ImGui : : BeginTabItem ( XorStr ( u8 " MainMenu " ) ) )
{
ImGui : : Checkbox ( XorStr ( u8 " ESP " ) , & changeable placeesp) ;
ImGui : : Checkbox ( XorStr ( u8 " Aimbot " ) , & changeable placeaim_enable) ;
ImGui : : Checkbox ( XorStr ( u8 " ESP " ) , & placeholder esp) ;
ImGui : : Checkbox ( XorStr ( u8 " Aimbot " ) , & placeholder aim_enable) ;
if ( changeable placeaim_enable)
if ( placeholder aim_enable)
{
ImGui : : SameLine ( ) ;
ImGui : : Checkbox ( XorStr ( u8 " Visible check " ) , & changeable placevis_check) ;
ImGui : : Checkbox ( XorStr ( u8 " Visible check " ) , & placeholder vis_check) ;
ImGui : : SameLine ( ) ;
ImGui : : Checkbox ( XorStr ( u8 " No recoil " ) , & changeable placeaim_no_recoil) ;
if ( changeable placevis_check)
ImGui : : Checkbox ( XorStr ( u8 " No recoil " ) , & placeholder aim_no_recoil) ;
if ( placeholder vis_check)
{
changeable placeaim = 2 ;
placeholder aim = 2 ;
}
else
{
changeable placeaim = 1 ;
placeholder aim = 1 ;
}
}
else
{
changeable placeaim = 0 ;
placeholder aim = 0 ;
}
ImGui : : Checkbox ( XorStr ( u8 " freecamera " ) , & changeable placefreecam) ;
ImGui : : Checkbox ( XorStr ( u8 " Lock on teammates " ) , & changeable placelockall_mode) ;
ImGui : : Checkbox ( XorStr ( u8 " firing_range mode " ) , & changeable placefiring_range) ; // changeable placefiring_range
//ImGui::InputInt(XorStr("index"), & changeable placeindex);//changeable placeindex
ImGui : : Checkbox ( XorStr ( u8 " freecamera " ) , & placeholder freecam) ;
ImGui : : Checkbox ( XorStr ( u8 " Lock on teammates " ) , & placeholder lockall_mode) ;
ImGui : : Checkbox ( XorStr ( u8 " firing_range mode " ) , & placeholder firing_range) ; // placeholder firing_range
//ImGui::InputInt(XorStr("index"), & placeholder index);//placeholder index
ImGui : : EndTabItem ( ) ;
}
if ( ImGui : : BeginTabItem ( XorStr ( u8 " Aimbot " ) ) )
{
ImGui : : Text ( XorStr ( u8 " Max distence: " ) ) ;
ImGui : : SliderFloat ( XorStr ( " ##1 " ) , & changeable placemax_dist, 100.0f * 40 , 800.0f * 40 , " %.2f " ) ;
ImGui : : SliderFloat ( XorStr ( " ##1 " ) , & placeholder max_dist, 100.0f * 40 , 800.0f * 40 , " %.2f " ) ;
ImGui : : SameLine ( ) ;
ImGui : : Text ( u8 " (%d M) " , ( int ) ( changeable placemax_dist / 40 ) ) ;
ImGui : : Text ( u8 " real dist :%d M " , ( int ) ( changeable placemax_dist / 40 ) ) ;
ImGui : : Text ( u8 " (%d M) " , ( int ) ( placeholder max_dist / 40 ) ) ;
ImGui : : Text ( u8 " real dist :%d M " , ( int ) ( placeholder max_dist / 40 ) ) ;
ImGui : : Text ( XorStr ( u8 " Smooth " ) ) ;
ImGui : : SliderFloat ( XorStr ( " ##2 " ) , & changeable placesmooth, 76.0f , 100.0f , " %.2f " ) ;
ImGui : : SliderFloat ( XorStr ( " ##2 " ) , & placeholder smooth, 76.0f , 100.0f , " %.2f " ) ;
ImGui : : Text ( XorStr ( u8 " FOV: " ) ) ;
ImGui : : SliderFloat ( XorStr ( " ##3 " ) , & changeable placemax_fov, 5.0f , 250.0f , " %.2f " ) ;
ImGui : : SliderFloat ( XorStr ( " ##3 " ) , & placeholder max_fov, 5.0f , 250.0f , " %.2f " ) ;
ImGui : : Text ( XorStr ( u8 " Bone: " ) ) ;
ImGui : : SliderInt ( XorStr ( " ##4 " ) , & changeableplacebone , 0 , 3 ) ;
ImGui : : SliderInt ( XorStr ( " ##4 " ) , & placeholderbone , 0 , 3 ) ;
ImGui : : Text ( XorStr ( u8 " RCS PITCH: " ) ) ;
ImGui : : SliderFloat ( XorStr ( " ##5 " ) , & placeholderrcs_pitch , 0 , 1 ) ;
ImGui : : Text ( XorStr ( u8 " RCS YAW: " ) ) ;
ImGui : : SliderFloat ( XorStr ( " ##6 " ) , & placeholderrcs_yaw , 0 , 1 ) ;
//ImGui::Text(XorStr(u8"FOV Draw scale:"));
//ImGui::SliderFloat(XorStr("##5"), &changeableplacescale, 0.0f, 140.0f, "%.2f");
//ImGui::SliderFloat(XorStr("##5"), & placeholder 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 " ) , & changeable placev. changeable placebox) ;
ImGui : : Checkbox ( XorStr ( u8 " BOX " ) , & placeholder v. placeholder box) ;
ImGui : : SameLine ( 0 , 70.0f ) ;
ImGui : : Checkbox ( XorStr ( u8 " Name " ) , & changeable placev. changeable placename) ;
ImGui : : Checkbox ( XorStr ( u8 " xp level " ) , & changeable placev. changeable placerenderxp) ;
ImGui : : Checkbox ( XorStr ( u8 " line " ) , & changeable placev. changeable placeline) ;
ImGui : : Checkbox ( XorStr ( u8 " dist + teamID " ) , & changeable placev. changeable placedistance) ;
ImGui : : Checkbox ( XorStr ( u8 " seer esp " ) , & changeable placev. changeable placehealthbar) ;
ImGui : : Checkbox ( XorStr ( u8 " Name " ) , & placeholder v. placeholder name) ;
ImGui : : Checkbox ( XorStr ( u8 " xp level " ) , & placeholder v. placeholder renderxp) ;
ImGui : : Checkbox ( XorStr ( u8 " line " ) , & placeholder v. placeholder line) ;
ImGui : : Checkbox ( XorStr ( u8 " dist + teamID " ) , & placeholder v. placeholder distance) ;
ImGui : : Checkbox ( XorStr ( u8 " seer esp " ) , & placeholder v. placeholder healthbar) ;
ImGui : : Text ( XorStr ( u8 " seer esp distence: " ) ) ;
ImGui : : SliderFloat ( XorStr ( " ##1 " ) , & changeable placeseer_dist, 100.0f * 40 , 800.0f * 40 , " %.2f " ) ;
ImGui : : SliderFloat ( XorStr ( " ##1 " ) , & placeholder seer_dist, 100.0f * 40 , 800.0f * 40 , " %.2f " ) ;
ImGui : : SameLine ( ) ;
ImGui : : Text ( u8 " (%d M) " , ( int ) ( changeable placeseer_dist / 40 ) ) ;
ImGui : : Text ( u8 " (%d M) " , ( int ) ( placeholder seer_dist / 40 ) ) ;
ImGui : : Text ( XorStr ( u8 " XP level display distence: " ) ) ;
ImGui : : SliderFloat ( XorStr ( " ##2 " ) , & changeable placexp_dist, 100.0f * 40 , 800.0f * 40 , " %.2f " ) ;
ImGui : : SliderFloat ( XorStr ( " ##2 " ) , & placeholder xp_dist, 100.0f * 40 , 800.0f * 40 , " %.2f " ) ;
ImGui : : SameLine ( ) ;
ImGui : : Text ( u8 " (%d M) " , ( int ) ( changeable placexp_dist / 40 ) ) ;
ImGui : : Text ( u8 " (%d M) " , ( int ) ( placeholder xp_dist / 40 ) ) ;
ImGui : : Text ( XorStr ( u8 " name esp distence: " ) ) ;
ImGui : : SliderFloat ( XorStr ( " ##3 " ) , & changeable placename_dist, 100.0f * 40 , 800.0f * 40 , " %.2f " ) ;
ImGui : : SliderFloat ( XorStr ( " ##3 " ) , & placeholder name_dist, 100.0f * 40 , 800.0f * 40 , " %.2f " ) ;
ImGui : : SameLine ( ) ;
ImGui : : Text ( u8 " (%d M) " , ( int ) ( changeable placename_dist / 40 ) ) ;
ImGui : : Text ( u8 " (%d M) " , ( int ) ( placeholder name_dist / 40 ) ) ;
ImGui : : EndTabItem ( ) ;
}
ImGui : : EndTabBar ( ) ;
@ -200,44 +207,40 @@ void Overlay::RenderchangeableplaceMenu()
ImGui : : End ( ) ;
}
void Overlay : : Render changeable placeInfo( )
void Overlay : : Render placeholder 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), changeableplacemax_fov * changeableplacescale ,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 %d " , changeable placespectators) ;
ImGui : : TextColored ( RED , u8 " Enemies %d " , placeholderspectators ) ;
ImGui : : SameLine ( ) ;
ImGui : : Text ( " / " ) ;
ImGui : : SameLine ( ) ;
ImGui : : TextColored ( GREEN , u8 " Team %d " , changeable placeallied_spectators) ;
ImGui : : TextColored ( GREEN , u8 " Team %d " , placeholder allied_spectators) ;
ImGui : : End ( ) ;
}
void Overlay : : Click changeable placeThrough( bool changeable placev)
void Overlay : : Click placeholder Through( bool placeholder v)
{
if ( changeable placev)
if ( placeholder v)
{
changeable placenv_edit = changeable placenv_default_in_game | WS_VISIBLE ;
if ( GetWindowLong ( overlay changeable placeHWND, GWL_EXSTYLE ) ! = changeable placenv_ex_edit)
SetWindowLong ( overlay changeable placeHWND, GWL_EXSTYLE , changeable placenv_ex_edit) ;
placeholder nv_edit = placeholder nv_default_in_game | WS_VISIBLE ;
if ( GetWindowLong ( overlay placeholder HWND, GWL_EXSTYLE ) ! = placeholder nv_ex_edit)
SetWindowLong ( overlay placeholder HWND, GWL_EXSTYLE , placeholder nv_ex_edit) ;
}
else
{
changeable placenv_edit = changeable placenv_default | WS_VISIBLE ;
if ( GetWindowLong ( overlay changeable placeHWND, GWL_EXSTYLE ) ! = changeable placenv_ex_edit_menu)
SetWindowLong ( overlay changeable placeHWND, GWL_EXSTYLE , changeable placenv_ex_edit_menu) ;
placeholder nv_edit = placeholder nv_default | WS_VISIBLE ;
if ( GetWindowLong ( overlay placeholder HWND, GWL_EXSTYLE ) ! = placeholder nv_ex_edit_menu)
SetWindowLong ( overlay placeholder HWND, GWL_EXSTYLE , placeholder nv_ex_edit_menu) ;
}
}
DWORD Overlay : : Create changeable placeOverlay( )
DWORD Overlay : : Create placeholder Overlay( )
{
EnumWindows ( EnumWindowsCallback , ( LPARAM ) & overlay changeable placeHWND) ;
EnumWindows ( EnumWindowsCallback , ( LPARAM ) & overlay placeholder HWND) ;
Sleep ( 300 ) ;
if ( overlay changeable placeHWND = = 0 )
if ( overlay placeholder HWND = = 0 )
{
printf ( XorStr ( " Can't find the overlay \n " ) ) ;
Sleep ( 1000 ) ;
@ -245,21 +248,21 @@ DWORD Overlay::CreatechangeableplaceOverlay()
}
HDC hDC = : : GetWindowDC ( NULL ) ;
changeable placewidth = : : GetDeviceCaps ( hDC , HORZRES ) ;
changeable placeheight = : : GetDeviceCaps ( hDC , VERTRES ) ;
placeholder width = : : GetDeviceCaps ( hDC , HORZRES ) ;
placeholder height = : : GetDeviceCaps ( hDC , VERTRES ) ;
changeable placerunning = true ;
placeholder running = true ;
// Initialize Direct3D
if ( ! CreateDeviceD3D ( overlay changeable placeHWND) )
if ( ! CreateDeviceD3D ( overlay placeholder HWND) )
{
CleanupDeviceD3D ( ) ;
return 1 ;
}
// Show the window
: : ShowWindow ( overlay changeable placeHWND, SW_SHOWDEFAULT ) ;
: : UpdateWindow ( overlay changeable placeHWND) ;
: : ShowWindow ( overlay placeholder HWND, SW_SHOWDEFAULT ) ;
: : UpdateWindow ( overlay placeholder HWND) ;
// Setup Dear ImGui context
IMGUI_CHECKVERSION ( ) ;
@ -274,7 +277,7 @@ DWORD Overlay::CreatechangeableplaceOverlay()
ImGui : : GetStyle ( ) . WindowMinSize = ImVec2 ( 1 , 1 ) ;
// Setup Platform/Renderer bindings
ImGui_ImplWin32_Init ( overlay changeable placeHWND) ;
ImGui_ImplWin32_Init ( overlay placeholder HWND) ;
ImGui_ImplDX11_Init ( g_pd3dDevice , g_pd3dDeviceContext ) ;
ImVec4 clear_color = ImVec4 ( 0.0f , 0.0f , 0.0f , 0.00f ) ;
@ -282,14 +285,14 @@ DWORD Overlay::CreatechangeableplaceOverlay()
// Main loop
MSG msg ;
ZeroMemory ( & msg , sizeof ( msg ) ) ;
Click changeable placeThrough( true ) ;
while ( changeable placerunning)
Click placeholder Through( true ) ;
while ( placeholder running)
{
HWND wnd = GetWindow ( GetForegroundWindow ( ) , GW_HWNDPREV ) ;
if ( wnd ! = overlay changeable placeHWND)
if ( wnd ! = overlay placeholder HWND)
{
SetWindowPos ( overlay changeable placeHWND, wnd , 0 , 0 , 0 , 0 , SWP_ASYNCWINDOWPOS | SWP_NOMOVE | SWP_NOSIZE ) ;
: : UpdateWindow ( overlay changeable placeHWND) ;
SetWindowPos ( overlay placeholder HWND, wnd , 0 , 0 , 0 , 0 , SWP_ASYNCWINDOWPOS | SWP_NOMOVE | SWP_NOSIZE ) ;
: : UpdateWindow ( overlay placeholder HWND) ;
}
if ( : : PeekMessage ( & msg , NULL , 0U , 0U , PM_REMOVE ) )
@ -304,35 +307,36 @@ DWORD Overlay::CreatechangeableplaceOverlay()
ImGui_ImplWin32_NewFrame ( ) ;
ImGui : : NewFrame ( ) ;
if ( IsKeyDown ( VK_LBUTTON ) & & ! changeable placek_leftclick)
if ( IsKeyDown ( VK_LBUTTON ) & & ! placeholder k_leftclick)
{
io . MouseDown [ 0 ] = true ;
changeable placek_leftclick = true ;
placeholder k_leftclick = true ;
}
else if ( ! IsKeyDown ( VK_LBUTTON ) & & changeable placek_leftclick)
else if ( ! IsKeyDown ( VK_LBUTTON ) & & placeholder k_leftclick)
{
io . MouseDown [ 0 ] = false ;
changeable placek_leftclick = false ;
placeholder k_leftclick = false ;
}
if ( IsKeyDown ( VK_INSERT ) & & ! changeable placek_ins & & changeable placeready)
if ( IsKeyDown ( VK_INSERT ) & & ! placeholder k_ins & & placeholder ready)
{
changeable placeshow_menu = ! changeable placeshow_menu;
Click changeable placeThrough( ! changeable placeshow_menu) ;
changeable placek_ins = true ;
placeholder show_menu = ! placeholder show_menu;
Click placeholder Through( ! placeholder show_menu) ;
placeholder k_ins = true ;
}
else if ( ! IsKeyDown ( VK_INSERT ) & & changeable placek_ins)
else if ( ! IsKeyDown ( VK_INSERT ) & & placeholder k_ins)
{
changeable placek_ins = false ;
placeholder k_ins = false ;
}
if ( changeable placeshow_menu) {
Render changeable placeMenu( ) ;
if ( placeholder show_menu) {
Render placeholder Menu( ) ;
}
else {
RenderchangeableplaceInfo ( ) ;
RenderplaceholderInfo ( ) ;
RenderplaceholderSpectator ( ) ;
}
Render changeable placeEsp( ) ;
Render placeholder Esp( ) ;
// Rendering
ImGui : : EndFrame ( ) ;
@ -346,33 +350,33 @@ DWORD Overlay::CreatechangeableplaceOverlay()
std : : this_thread : : sleep_for ( std : : chrono : : milliseconds ( 1 ) ) ;
}
Click changeable placeThrough( true ) ;
Click placeholder Through( true ) ;
CleanupDeviceD3D ( ) ;
: : DestroyWindow ( overlay changeable placeHWND) ;
: : DestroyWindow ( overlay placeholder HWND) ;
return 0 ;
}
void Overlay : : Start changeable place( )
void Overlay : : Start placeholder ( )
{
DWORD ThreadID ;
CreateThread ( NULL , 0 , StaticMessageStart , ( void * ) this , 0 , & ThreadID ) ;
}
void Overlay : : Clear changeable place( )
void Overlay : : Clear placeholder ( )
{
changeable placerunning = 0 ;
placeholder running = 0 ;
Sleep ( 50 ) ;
}
int Overlay : : get changeable placeWidth( )
int Overlay : : get placeholder Width( )
{
return changeable placewidth;
return placeholder width;
}
int Overlay : : get changeable placeHeight( )
int Overlay : : get placeholder Height( )
{
return changeable placeheight;
return placeholder height;
}
// Helper functions
@ -431,37 +435,47 @@ void CleanupDeviceD3D()
if ( g_pd3dDevice ) { g_pd3dDevice - > Release ( ) ; g_pd3dDevice = NULL ; }
}
void Overlay : : Draw changeable placeLine( ImVec2 a , ImVec2 b , ImColor color , float width )
void Overlay : : Draw placeholder Line( ImVec2 a , ImVec2 b , ImColor color , float width )
{
ImGui : : GetWindowDrawList ( ) - > AddLine ( a , b , color , width ) ;
}
void Overlay : : Draw changeable placeBox( ImColor color , float x , float y , float w , float h )
void Overlay : : Draw placeholder Box( ImColor color , float x , float y , float w , float h )
{
Draw changeable placeLine( ImVec2 ( x , y ) , ImVec2 ( x + w , y ) , color , 1.0f ) ;
Draw changeable placeLine( ImVec2 ( x , y ) , ImVec2 ( x , y + h ) , color , 1.0f ) ;
Draw changeable placeLine( ImVec2 ( x + w , y ) , ImVec2 ( x + w , y + h ) , color , 1.0f ) ;
Draw changeable placeLine( ImVec2 ( x , y + h ) , ImVec2 ( x + w , y + h ) , color , 1.0f ) ;
Draw placeholder Line( ImVec2 ( x , y ) , ImVec2 ( x + w , y ) , color , 1.0f ) ;
Draw placeholder Line( ImVec2 ( x , y ) , ImVec2 ( x , y + h ) , color , 1.0f ) ;
Draw placeholder Line( ImVec2 ( x + w , y ) , ImVec2 ( x + w , y + h ) , color , 1.0f ) ;
Draw placeholder Line( ImVec2 ( x , y + h ) , ImVec2 ( x + w , y + h ) , color , 1.0f ) ;
}
void Overlay : : changeable placeText( ImVec2 pos , ImColor color , const char * text_begin , const char * text_end , float wrap_width , const ImVec4 * cpu_fine_clip_rect )
void Overlay : : placeholder 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 : : Stringchangeableplace ( ImVec2 pos , ImColor color , const char * text )
void Overlay : : placeholderText ( ImVec2 pos , ImColor color , const char * text_begin , const char * text_end , float wrap_width , const ImVec4 * cpu_fine_clip_rect , int font )
{
ImGui : : GetWindowDrawList ( ) - > AddText ( ImGui : : GetFont ( ) , font , pos , color , text_begin , text_end , wrap_width , cpu_fine_clip_rect ) ;
}
void Overlay : : Stringplaceholder ( ImVec2 pos , ImColor color , const char * text )
{
placeholderText ( pos , color , text , text + strlen ( text ) , 200 , 0 ) ;
}
void Overlay : : Stringplaceholder ( ImVec2 pos , ImColor color , const char * text , int font )
{
changeableplaceText ( pos , color , text , text + strlen ( text ) , 200 , 0 ) ;
placeholder Text( pos , color , text , text + strlen ( text ) , 200 , 0 , font ) ;
}
void Overlay : : RectchangeableplaceFilled ( float x0 , float y0 , float x1 , float y1 , ImColor color , float rounding , int rounding_corners_flags )
void Overlay : : Rect placeholder 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 : : ProgresschangeableplaceBar ( float x , float y , float w , float h , int value , int v_max , ImColor barColor )
void Overlay : : Progress placeholder Bar( float x , float y , float w , float h , int value , int v_max , ImColor barColor )
{
Rect changeable placeFilled( x , y , x + w , y + ( ( h / float ( v_max ) ) * ( float ) value ) , barColor , 0.0f , 0 ) ;
Rect placeholder Filled( x , y , x + w , y + ( ( h / float ( v_max ) ) * ( float ) value ) , barColor , 0.0f , 0 ) ;
}
@ -478,36 +492,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 changeable placeHealth( float changeable placex, float changeable placey, int changeable placeshield, int changeable placemax_shield, int changeable placearmorType, int changeable placehealth) {
void Overlay : : Draw placeholder Health( float placeholder x, float placeholder y, int placeholder shield, int placeholder max_shield, int placeholder armorType, int placeholder health) {
int changeable placebg_offset = 3 ;
int changeable placebar_width = 105 ; //158
int placeholder bg_offset = 3 ;
int placeholder bar_width = 105 ; //158
// 4steps...2*3=6
// 38*4=152 152+6 = 158
// 5steps...2*4=8
// 30*5=150 150+8 = 158
float changeable placemax_health = 100.0f ; //100
float changeable placeshield_step = 25.0f ; //25
float placeholder max_health = 100.0f ; //100
float placeholder shield_step = 25.0f ; //25
int changeable placeshield_25 = 14 ; //30
int changeable placesteps = 5 ;
int placeholder shield_25 = 14 ; //30
int placeholder steps = 5 ;
ImVec2 bg1 ( changeable placex - changeable placebar_width / 2 - changeable placebg_offset, changeable placey) ;
ImVec2 bg1 ( placeholder x - placeholder bar_width / 2 - placeholder bg_offset, placeholder y) ;
ImVec2 bg2 ( bg1 . x - 10 , bg1 . y - 16 ) ;
ImVec2 bg3 ( bg2 . x + 5 , bg2 . y - 7 ) ;
ImVec2 bg4 ( bg3 . x + changeable placebar_width + changeable placebg_offset, bg3 . y ) ;
ImVec2 bg4 ( bg3 . x + placeholder bar_width + placeholder bg_offset, bg3 . y ) ;
ImVec2 bg5 ( bg4 . x + 11 , bg4 . y + 18 ) ;
ImVec2 bg6 ( changeable placex + changeable placebar_width / 2 + changeable placebg_offset, changeable placey) ;
ImVec2 bg6 ( placeholder x + placeholder bar_width / 2 + placeholder bg_offset, placeholder 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 ) changeable placehealth / changeable placemax_health * changeable placebar_width, h2 . y ) ;
ImVec2 h4 ( h1 . x + ( float ) changeable placehealth / changeable placemax_health * changeable placebar_width, h1 . y ) ;
ImVec2 h3m ( h2 . x + changeable placebar_width, h2 . y ) ;
ImVec2 h4m ( h1 . x + changeable placebar_width, h1 . y ) ;
ImVec2 h3 ( h2 . x + ( float ) placeholderh ealth / placeholder max_health * placeholder bar_width, h2 . y ) ;
ImVec2 h4 ( h1 . x + ( float ) placeholderh ealth / placeholder max_health * placeholder bar_width, h1 . y ) ;
ImVec2 h3m ( h2 . x + placeholder bar_width, h2 . y ) ;
ImVec2 h4m ( h1 . x + placeholder bar_width, h1 . y ) ;
DrawQuadFilled ( h1 , h2 , h3m , h4m , ImColor ( 10 , 10 , 30 , 60 ) ) ;
DrawQuadFilled ( h1 , h2 , h3 , h4 , WHITE ) ;
@ -517,23 +531,23 @@ void Overlay::DrawchangeableplaceHealth(float changeableplacex, float changeable
ImColor shieldCol ;
ImColor shieldColDark ; //not used, but the real seer q has shadow inside
if ( changeable placemax_shield = = 50 ) { //white
if ( placeholder max_shield = = 50 ) { //white
shieldCol = ImColor ( 247 , 247 , 247 ) ;
shieldColDark = ImColor ( 164 , 164 , 164 ) ;
}
else if ( changeable placemax_shield = = 75 ) { //blue
else if ( placeholder max_shield = = 75 ) { //blue
shieldCol = ImColor ( 39 , 178 , 255 ) ;
shieldColDark = ImColor ( 27 , 120 , 210 ) ;
}
else if ( changeable placemax_shield = = 100 ) { //purple
else if ( placeholder max_shield = = 100 ) { //purple
shieldCol = ImColor ( 206 , 59 , 255 ) ;
shieldColDark = ImColor ( 136 , 36 , 220 ) ;
}
else if ( changeable placemax_shield = = 100 ) { //gold
else if ( placeholder max_shield = = 100 ) { //gold
shieldCol = ImColor ( 255 , 255 , 79 ) ;
shieldColDark = ImColor ( 218 , 175 , 49 ) ;
}
else if ( changeable placemax_shield = = 125 ) { //red
else if ( placeholder max_shield = = 125 ) { //red
shieldCol = ImColor ( 219 , 2 , 2 ) ;
shieldColDark = ImColor ( 219 , 2 , 2 ) ;
}
@ -541,7 +555,7 @@ void Overlay::DrawchangeableplaceHealth(float changeableplacex, float changeable
shieldCol = ImColor ( 247 , 247 , 247 ) ;
shieldColDark = ImColor ( 164 , 164 , 164 ) ;
}
int shield_tmp = changeable placeshield;
int shield_tmp = placeholder shield;
int shield1 = 0 ;
int shield2 = 0 ;
int shield3 = 0 ;
@ -578,185 +592,185 @@ void Overlay::DrawchangeableplaceHealth(float changeableplacex, float changeable
}
ImVec2 s1 ( h2 . x - 1 , h2 . y - 2 ) ;
ImVec2 s2 ( s1 . x - 3 , s1 . y - 5 ) ;
ImVec2 s3 ( s2 . x + shield1 / changeable placeshield_step * changeable placeshield_25, s2 . y ) ;
ImVec2 s4 ( s1 . x + shield1 / changeable placeshield_step * changeable placeshield_25, s1 . y ) ;
ImVec2 s3m ( s2 . x + changeable placeshield_25, s2 . y ) ;
ImVec2 s4m ( s1 . x + changeable placeshield_25, s1 . y ) ;
ImVec2 s3 ( s2 . x + shield1 / placeholder shield_step * placeholder shield_25, s2 . y ) ;
ImVec2 s4 ( s1 . x + shield1 / placeholder shield_step * placeholder shield_25, s1 . y ) ;
ImVec2 s3m ( s2 . x + placeholder shield_25, s2 . y ) ;
ImVec2 s4m ( s1 . x + placeholder shield_25, s1 . y ) ;
ImVec2 ss1 ( s4m . x + 2 , s1 . y ) ;
ImVec2 ss2 ( s3m . x + 2 , s2 . y ) ;
ImVec2 ss3 ( ss2 . x + shield2 / changeable placeshield_step * changeable placeshield_25, s2 . y ) ;
ImVec2 ss4 ( ss1 . x + shield2 / changeable placeshield_step * changeable placeshield_25, s1 . y ) ;
ImVec2 ss3m ( ss2 . x + changeable placeshield_25, s2 . y ) ;
ImVec2 ss4m ( ss1 . x + changeable placeshield_25, s1 . y ) ;
ImVec2 ss3 ( ss2 . x + shield2 / placeholder shield_step * placeholder shield_25, s2 . y ) ;
ImVec2 ss4 ( ss1 . x + shield2 / placeholder shield_step * placeholder shield_25, s1 . y ) ;
ImVec2 ss3m ( ss2 . x + placeholder shield_25, s2 . y ) ;
ImVec2 ss4m ( ss1 . x + placeholder shield_25, s1 . y ) ;
ImVec2 sss1 ( ss4m . x + 2 , s1 . y ) ;
ImVec2 sss2 ( ss3m . x + 2 , s2 . y ) ;
ImVec2 sss3 ( sss2 . x + shield3 / changeable placeshield_step * changeable placeshield_25, s2 . y ) ;
ImVec2 sss4 ( sss1 . x + shield3 / changeable placeshield_step * changeable placeshield_25, s1 . y ) ;
ImVec2 sss3m ( sss2 . x + changeable placeshield_25, s2 . y ) ;
ImVec2 sss4m ( sss1 . x + changeable placeshield_25, s1 . y ) ;
ImVec2 sss3 ( sss2 . x + shield3 / placeholder shield_step * placeholder shield_25, s2 . y ) ;
ImVec2 sss4 ( sss1 . x + shield3 / placeholder shield_step * placeholder shield_25, s1 . y ) ;
ImVec2 sss3m ( sss2 . x + placeholder shield_25, s2 . y ) ;
ImVec2 sss4m ( sss1 . x + placeholder shield_25, s1 . y ) ;
ImVec2 ssss1 ( sss4m . x + 2 , s1 . y ) ;
ImVec2 ssss2 ( sss3m . x + 2 , s2 . y ) ;
ImVec2 ssss3 ( ssss2 . x + shield4 / changeable placeshield_step * changeable placeshield_25, s2 . y ) ;
ImVec2 ssss4 ( ssss1 . x + shield4 / changeable placeshield_step * changeable placeshield_25, s1 . y ) ;
ImVec2 ssss3m ( ssss2 . x + changeable placeshield_25, s2 . y ) ;
ImVec2 ssss4m ( ssss1 . x + changeable placeshield_25, s1 . y ) ;
ImVec2 ssss3 ( ssss2 . x + shield4 / placeholder shield_step * placeholder shield_25, s2 . y ) ;
ImVec2 ssss4 ( ssss1 . x + shield4 / placeholder shield_step * placeholder shield_25, s1 . y ) ;
ImVec2 ssss3m ( ssss2 . x + placeholder shield_25, s2 . y ) ;
ImVec2 ssss4m ( ssss1 . x + placeholder shield_25, s1 . y ) ;
ImVec2 sssss1 ( ssss4m . x + 2 , s1 . y ) ;
ImVec2 sssss2 ( ssss3m . x + 2 , s2 . y ) ;
ImVec2 sssss3 ( sssss2 . x + shield5 / changeable placeshield_step * changeable placeshield_25, s2 . y ) ;
ImVec2 sssss4 ( sssss1 . x + shield5 / changeable placeshield_step * changeable placeshield_25, s1 . y ) ;
ImVec2 sssss3m ( sssss2 . x + changeable placeshield_25, s2 . y ) ;
ImVec2 sssss4m ( sssss1 . x + changeable placeshield_25, s1 . y ) ;
if ( changeable placemax_shield = = 50 ) {
if ( changeable placeshield < = 25 ) {
if ( changeable placeshield < 25 ) {
ImVec2 sssss3 ( sssss2 . x + shield5 / placeholder shield_step * placeholder shield_25, s2 . y ) ;
ImVec2 sssss4 ( sssss1 . x + shield5 / placeholder shield_step * placeholder shield_25, s1 . y ) ;
ImVec2 sssss3m ( sssss2 . x + placeholder shield_25, s2 . y ) ;
ImVec2 sssss4m ( sssss1 . x + placeholder shield_25, s1 . y ) ;
if ( placeholder max_shield = = 50 ) {
if ( placeholder shield < = 25 ) {
if ( placeholder shield < 25 ) {
DrawQuadFilled ( s1 , s2 , s3m , s4m , shieldCracked ) ;
DrawQuadFilled ( ss1 , ss2 , ss3m , ss4m , shieldCracked ) ;
}
if ( changeable placeshield ! = 0 )
if ( placeholder shield ! = 0 )
DrawQuadFilled ( s1 , s2 , s3 , s4 , shieldCol ) ;
}
else if ( changeable placeshield < = 50 ) {
else if ( placeholder shield < = 50 ) {
DrawQuadFilled ( s1 , s2 , s3 , s4 , shieldCol ) ;
if ( changeable placeshield ! = 50 ) {
if ( placeholder shield ! = 50 ) {
DrawQuadFilled ( ss1 , ss2 , ss3m , ss4m , shieldCracked ) ;
}
if ( changeable placeshield ! = 0 )
if ( placeholder shield ! = 0 )
DrawQuadFilled ( ss1 , ss2 , ss3 , ss4 , shieldCol ) ;
}
}
else if ( changeable placemax_shield = = 75 ) {
if ( changeable placeshield < = 25 ) {
if ( changeable placeshield < 25 ) {
else if ( placeholder max_shield = = 75 ) {
if ( placeholder shield < = 25 ) {
if ( placeholder shield < 25 ) {
DrawQuadFilled ( s1 , s2 , s3m , s4m , shieldCracked ) ;
DrawQuadFilled ( ss1 , ss2 , ss3m , ss4m , shieldCracked ) ;
DrawQuadFilled ( sss1 , sss2 , sss3m , sss4m , shieldCracked ) ;
}
if ( changeable placeshield ! = 0 )
if ( placeholder shield ! = 0 )
DrawQuadFilled ( s1 , s2 , s3 , s4 , shieldCol ) ;
}
else if ( changeable placeshield < = 50 ) {
else if ( placeholder shield < = 50 ) {
DrawQuadFilled ( s1 , s2 , s3 , s4 , shieldCol ) ;
if ( changeable placeshield < 50 ) {
if ( placeholder shield < 50 ) {
DrawQuadFilled ( ss1 , ss2 , ss3m , ss4m , shieldCracked ) ;
DrawQuadFilled ( sss1 , sss2 , sss3m , sss4m , shieldCracked ) ;
}
if ( changeable placeshield ! = 0 )
if ( placeholder shield ! = 0 )
DrawQuadFilled ( ss1 , ss2 , ss3 , ss4 , shieldCol ) ;
}
else if ( changeable placeshield < = 75 ) {
else if ( placeholder shield < = 75 ) {
DrawQuadFilled ( s1 , s2 , s3 , s4 , shieldCol ) ;
DrawQuadFilled ( ss1 , ss2 , ss3 , ss4 , shieldCol ) ;
if ( changeable placeshield < 75 ) {
if ( placeholder shield < 75 ) {
DrawQuadFilled ( sss1 , sss2 , sss3m , sss4m , shieldCracked ) ;
}
if ( changeable placeshield ! = 0 )
if ( placeholder shield ! = 0 )
DrawQuadFilled ( sss1 , sss2 , sss3 , sss4 , shieldCol ) ;
}
}
else if ( changeable placemax_shield = = 100 ) {
if ( changeable placeshield < = 25 ) {
if ( changeable placeshield < 25 ) {
else if ( placeholder max_shield = = 100 ) {
if ( placeholder shield < = 25 ) {
if ( placeholder 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 ( changeable placeshield ! = 0 )
if ( placeholder shield ! = 0 )
DrawQuadFilled ( s1 , s2 , s3 , s4 , shieldCol ) ;
}
else if ( changeable placeshield < = 50 ) {
else if ( placeholder shield < = 50 ) {
DrawQuadFilled ( s1 , s2 , s3 , s4 , shieldCol ) ;
if ( changeable placeshield < 50 ) {
if ( placeholder shield < 50 ) {
DrawQuadFilled ( ss1 , ss2 , ss3m , ss4m , shieldCracked ) ;
DrawQuadFilled ( sss1 , sss2 , sss3m , sss4m , shieldCracked ) ;
DrawQuadFilled ( ssss1 , ssss2 , ssss3m , ssss4m , shieldCracked ) ;
}
if ( changeable placeshield ! = 0 )
if ( placeholder shield ! = 0 )
DrawQuadFilled ( ss1 , ss2 , ss3 , ss4 , shieldCol ) ;
}
else if ( changeable placeshield < = 75 ) {
else if ( placeholder shield < = 75 ) {
DrawQuadFilled ( s1 , s2 , s3 , s4 , shieldCol ) ;
DrawQuadFilled ( ss1 , ss2 , ss3 , ss4 , shieldCol ) ;
if ( changeable placeshield < 75 ) {
if ( placeholder shield < 75 ) {
DrawQuadFilled ( sss1 , sss2 , sss3m , sss4m , shieldCracked ) ;
DrawQuadFilled ( ssss1 , ssss2 , ssss3m , ssss4m , shieldCracked ) ;
}
if ( changeable placeshield ! = 0 )
if ( placeholder shield ! = 0 )
DrawQuadFilled ( sss1 , sss2 , sss3 , sss4 , shieldCol ) ;
}
else if ( changeable placeshield < = 100 ) {
else if ( placeholder shield < = 100 ) {
DrawQuadFilled ( s1 , s2 , s3 , s4 , shieldCol ) ;
DrawQuadFilled ( ss1 , ss2 , ss3 , ss4 , shieldCol ) ;
DrawQuadFilled ( sss1 , sss2 , sss3 , sss4 , shieldCol ) ;
if ( changeable placeshield < 100 ) {
if ( placeholder shield < 100 ) {
DrawQuadFilled ( ssss1 , ssss2 , ssss3m , ssss4m , shieldCracked ) ;
}
if ( changeable placeshield ! = 0 )
if ( placeholder shield ! = 0 )
DrawQuadFilled ( ssss1 , ssss2 , ssss3 , ssss4 , shieldCol ) ;
}
}
else if ( changeable placemax_shield = = 125 ) {
if ( changeable placeshield < = 25 ) {
if ( changeable placeshield < 25 ) {
else if ( placeholder max_shield = = 125 ) {
if ( placeholder shield < = 25 ) {
if ( placeholder 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 ( changeable placeshield ! = 0 )
if ( placeholder shield ! = 0 )
DrawQuadFilled ( s1 , s2 , s3 , s4 , shieldCol ) ;
}
else if ( changeable placeshield < = 50 ) {
else if ( placeholder shield < = 50 ) {
DrawQuadFilled ( s1 , s2 , s3 , s4 , shieldCol ) ;
if ( changeable placeshield < 50 ) {
if ( placeholder 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 ( changeable placeshield ! = 0 )
if ( placeholder shield ! = 0 )
DrawQuadFilled ( ss1 , ss2 , ss3 , ss4 , shieldCol ) ;
}
else if ( changeable placeshield < = 75 ) {
else if ( placeholder shield < = 75 ) {
DrawQuadFilled ( s1 , s2 , s3 , s4 , shieldCol ) ;
DrawQuadFilled ( ss1 , ss2 , ss3 , ss4 , shieldCol ) ;
if ( changeable placeshield < 75 ) {
if ( placeholder shield < 75 ) {
DrawQuadFilled ( sss1 , sss2 , sss3m , sss4m , shieldCracked ) ;
DrawQuadFilled ( ssss1 , ssss2 , ssss3m , ssss4m , shieldCracked ) ;
DrawQuadFilled ( sssss1 , sssss2 , sssss3m , sssss4m , shieldCracked ) ;
}
if ( changeable placeshield ! = 0 )
if ( placeholder shield ! = 0 )
DrawQuadFilled ( sss1 , sss2 , sss3 , sss4 , shieldCol ) ;
}
else if ( changeable placeshield < = 100 ) {
else if ( placeholder shield < = 100 ) {
DrawQuadFilled ( s1 , s2 , s3 , s4 , shieldCol ) ;
DrawQuadFilled ( ss1 , ss2 , ss3 , ss4 , shieldCol ) ;
DrawQuadFilled ( sss1 , sss2 , sss3 , sss4 , shieldCol ) ;
if ( changeable placeshield < 100 ) {
if ( placeholder shield < 100 ) {
DrawQuadFilled ( ssss1 , ssss2 , ssss3m , ssss4m , shieldCracked ) ;
DrawQuadFilled ( sssss1 , sssss2 , sssss3m , sssss4m , shieldCracked ) ;
}
if ( changeable placeshield ! = 0 )
if ( placeholder shield ! = 0 )
DrawQuadFilled ( ssss1 , ssss2 , ssss3 , ssss4 , shieldCol ) ;
}
else if ( changeable placeshield < = 125 ) {
else if ( placeholder 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 ( changeable placeshield < 125 ) {
if ( placeholder shield < 125 ) {
DrawQuadFilled ( sssss1 , sssss2 , sssss3m , sssss4m , shieldCracked ) ;
}
if ( changeable placeshield ! = 0 )
if ( placeholder shield ! = 0 )
DrawQuadFilled ( sssss1 , sssss2 , sssss3 , sssss4 , shieldCol ) ;
}
}