-
Автор темы
- #1
Оформление темы не по правилам.
Код:
void Indicators () {
if (Globals :: LocalPlayer) {
if (Globals :: LocalPlayer-> IsAlive ()) {
if (! Globals :: LocalPlayer-> AnimState ())
întoarcere;
if (c_config :: get (). remove_flash)
* Globals :: LocalPlayer-> m_flFlashMaxAlpha () = 0;
int subtracție_pos = 0;
int subtracție_pos2 = 0;
int FAKE_G = Globals :: LocalPlayer-> DesyncValue () / -58.f * 255.f;
int FAKE_R = 255.f - FAKE_G;
int FAKE_B = 0.f;
int LAG_COMP_GREEN = (Globals :: LocalPlayer-> GetOrigin () - StoredLocalPlayer :: StoredOrigin) .LengthSqr () / 4096.f * 255.f;
int LAG_COMP_RED = 255.f - LAG_COMP_GREEN;
int LAG_COMP_BLUE = 0.f;
auto chocked_commands = * (int *) (uintptr_t (g_pClientState) + 0x4D28);
bool Show_Manual = c_config :: get (). yaw_standing == 4 || c_config :: get (). yaw_moving == 4 || c_config :: get (). yaw_air == 4;
bool show_choked = true;
bool show_fake = true;
static int frames_on_ground = 0;
int screenSizeX, screenCenterX;
int screenSizeY, screenCenterY;
auto lineSize = 8;
g_pEngine-> GetScreenSize (ecranSizeX, screenSizeY);
auto GetFPS = []() -> int
{
float static m_Framerate = 0;
m_Framerate = 0.9 * m_Framerate + (1.0 - 0.9) * g_pGlobalVars->absoluteframetime; // https://github.com/ValveSoftware/source-sdk-2013/blob/master/mp/src/game/client/vgui_netgraphpanel.cpp#L744
returnare int (1.f / m_Framerate);
};
auto tickRate = 1.0f / g_pGlobalVars->intervalPerTick;
if (Show_Manual) {
Color theme = Color (c_config :: get (). Menu_color_r, c_config :: get (). Menu_color_g, c_config :: get (). Menu_color_b);
std :: array <vec2_t, 3> right_facing {vec2_t (((screenSizeX / 2) + 32) - 8, screenSizeY / 2 - 8), vec2_t (((screenSizeX / 2) + 32) + 8, screenSizeY / 2) , vec2_t (((ecranSizeX / 2) + 32) - 8, ecranSizeY / 2 + 8)};
std :: array <vec2_t, 3> left_facing {vec2_t (((screenSizeX / 2) - 31) + 8, screenSizeY / 2 + 8), vec2_t (((screenSizeX / 2) - 31) - 8, screenSizeY / 2) , vec2_t (((screenSizeX / 2) - 31) + 8, screenSizeY / 2 - 8)};
g_pSurface-> draw_filled_triangle (left_facing, Globals :: Manual_Side? theme: Color (125, 125, 125, 185));
g_pSurface-> PolygonOutline (3, left_facing, Color (0, 0, 0, 255));
g_pSurface-> draw_filled_triangle (dreapta_facing, Globals :: Manual_Side? Color (125, 125, 125, 185): theme);
g_pSurface-> PolygonOutline (3, left_facing, Color (0, 0, 0, 255));
}
if (GetFPS () <tickRate) {
g_pSurface-> DrawT (10, (screenSizeY - 75 - subtraction_pos), Color (255, 0, 0, 255), Globals :: IndicatorFont, false, "FPS");
scadere_pos + = 25;
}
std :: string choke_meme;
choke_meme + = "sufocat:";
choke_meme + = std :: to_string (chocked_commands);
bool Breaking_Lag_Compensation = (Globals :: LocalPlayer-> GetOrigin () - StoredLocalPlayer :: StoredOrigin) .Length2DSqr ()> (4096.f);
if (GetAsyncKeyState (c_config :: get (). slowwalk_bind))
{
g_pSurface-> DrawT (10, (screenSizeY - 75 - subtraction_pos), Color (78, 177, 0, 255), Globals :: IndicatorFont, false, "SW");
scadere_pos + = 25;
}
/ * if (c_config :: get (). yaw_air == 1)
{
g_pSurface-> DrawT (10, (screenSizeY - 75 - subtraction_pos), Color (78, 177, 0, 255), Globals :: IndicatorFont, false, "BACK");
scadere_pos + = 25;
}
if (c_config :: get (). yaw_moving == 1)
{
g_pSurface-> DrawT (10, (screenSizeY - 75 - subtraction_pos), Color (78, 177, 0, 255), Globals :: IndicatorFont, false, "BACK");
scadere_pos + = 25;
}*/
if (c_config :: get (). yaw_standing == 1 & c_config :: get (). yaw_moving == 1 & c_config :: get (). yaw_air == 1)
{
g_pSurface-> DrawT (10, (screenSizeY - 75 - subtraction_pos), Color (0, 0, 255, 0), Globals :: IndicatorFont, false, "BACK");
scadere_pos + = 25;
}
if (c_config :: get (). yaw_standing == 4 & c_config :: get (). yaw_moving == 4 & c_config :: get (). yaw_air == 4)
{
g_pSurface-> DrawT (10, (screenSizeY - 75 - subtraction_pos), Color (0, 0, 255, 0), Globals :: IndicatorFont, false, "MANUAL");
scadere_pos + = 25;
}
if (GetAsyncKeyState (c_config :: get (). fakeduck_bind))
{
g_pSurface-> DrawT (10, (screenSizeY - 75 - subtraction_pos), Color (78, 177, 0, 255), Globals :: IndicatorFont, false, "FD");
scadere_pos + = 25;
}
if (GetAsyncKeyState (c_config :: get (). baimkeybind))
{
g_pSurface-> DrawT (10, (screenSizeY - 75 - subtraction_pos), Color (78, 177, 0, 255), Globals :: IndicatorFont, false, "BAIM");
scadere_pos + = 25;
}
if (Globals :: LocalPlayer-> GetFlags () & FL_ONGROUND) {
frames_on_ground + = 10;
}
if (! (Globals :: LocalPlayer-> GetFlags () & FL_ONGROUND) && Globals :: LocalPlayer-> GetVelocity (). Lungă2D ()> 75) {
frames_on_ground = 0;
}
bool Breaking_Lag_Compensation2 = (Globals :: LocalPlayer-> GetOrigin () - StoredLocalPlayer :: StoredOrigin) .Length2DSqr ()> (4096.f);
if (! (Globals :: LocalPlayer-> GetFlags () & FL_ONGROUND) && Globals :: LocalPlayer-> GetVelocity (). Lungime2D ()> 75 || frames_on_ground <100)
{
g_pSurface-> DrawT (10, (screenSizeY - 75 - subtraction_pos), Breaking_Lag_Compensation? Color (78, 177, 0, 255): Color (255, 0, 0, 255), Globals :: IndicatorFont, false, "LC") ;
scadere_pos + = 25;
}
if (show_fake) {
g_pSurface-> DrawT (10, (screenSizeY - 75 - subtraction_pos), Color (FAKE_R, FAKE_G, FAKE_B, 255), Globals :: IndicatorFont, false, "FAKE", Globals :: LocalPlayer-> DesyncValue ());
scadere_pos + = 25;
int w, h;
g_pEngine-> GetScreenSize (w, h);
ora_t acum = ora (0);
char * dt = ctime (& acum);
PlayerInfo_t pInfo;
}
// g_pSurface-> DrawSetColor (177, 0, 0, 180);
// g_pSurface-> DrawFilledRect (w - 255, 4, 182 + w - 187, 20);
// g_pSurface-> DrawT (w - 245, 5, Color (255, 255, 255, 255), Globals :: CourierNew, false, "Balaur.cc BY KRAKEN)");
// g_pSurface->DrawT(w - 273 + 92, 5, Color(255, 255, 255, 255), Globals::CourierNew, false, dt);
}
}
}
Последнее редактирование: