Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void c_visuals::indicators2()
- {
- if (c_config::get().fakelag_on && (c_config::get().rage_fakelag_conds[0] || c_config::get().rage_fakelag_conds[1] || c_config::get().rage_fakelag_conds[2]) && c_config::get().fakelag) {
- auto local_player = Globals::LocalPlayer;
- if (!local_player) return;
- if (!local_player->IsAlive()) return;
- auto weapon = local_player->GetActiveWeapon();
- int w = 0, h = 0;
- g_pEngine->GetScreenSize(w, h);
- static auto draw_bar = [](int x, int y, float val, float max, const char* name, DWORD zalupa) {
- if (val > max)
- val = max;
- g_pSurface->DrawT(x + 125 / 2, y - 8, Color(255, 255, 255, 255), zalupa, true, name);
- g_pSurface->FilledRect(x, y, 125, 15, Color(50, 50, 50, 75));
- g_pSurface->FilledRect(x, y, 125 * (val / max), 15, Color(0, 255, 0, 75));
- };
- static auto last_fake_origin = Vector();
- static auto last_origin = Vector();
- auto NetChannel = g_pEngine->GetNetChannel();
- if (!NetChannel) return;
- if (!NetChannel->m_nChokedPackets) {
- last_fake_origin = last_origin;
- last_origin = local_player->GetOrigin();
- }
- auto nci = g_pEngine->GetNetChannelInfo();
- if (!nci)
- return;
- if (local_player->IsAlive()) {
- draw_bar(10, h / 2 - 50, NetChannel->m_nChokedPackets, 17.0f, "choke", Globals::CourierNew);
- draw_bar(10, h / 2, (weapon->GetAmmo()) * 1000.0f, 400.0f, "extend", Globals::CourierNew);
- draw_bar(10, h / 2 + 50, last_fake_origin.DistToSqr(last_origin), 15.0f, "lc", Globals::CourierNew);
- // g_pSurface->DrawT(Box.left + Box.right + 5, Box.top + (offsetY * 11), textcolor, font, false, ());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement