Skip to content

Commit

Permalink
fixed Watermark
Browse files Browse the repository at this point in the history
  • Loading branch information
ByteCorum committed Sep 8, 2024
1 parent b5e8d71 commit 3259d01
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 24 deletions.
1 change: 1 addition & 0 deletions DragonBurn/Features/BombTimer.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ namespace bmb
ImGuiWindowFlags flags = ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize;
ImGui::SetNextWindowPos({ (ImGui::GetIO().DisplaySize.x - 200.0f) / 2.0f, 80.0f }, ImGuiCond_Once);
ImGui::SetNextWindowSize({ windowWidth, 0 }, ImGuiCond_Once);
ImGui::GetStyle().WindowRounding = 8.0f;
ImGui::Begin("Bomb Timer", nullptr, flags);

float remaining = (40000 - (int64_t)time + plantTime) / (float)1000;
Expand Down
31 changes: 7 additions & 24 deletions DragonBurn/Features/Misc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,35 +22,18 @@ namespace Misc

// globalvars GV;
ImGuiWindowFlags windowFlags = ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoResize | ImGuiWindowFlags_AlwaysAutoResize;
ImGui::SetNextWindowBgAlpha(0.6f);
ImGui::SetNextWindowBgAlpha(0.8f);
ImGui::GetStyle().WindowRounding = 8.0f;
ImGui::Begin("Watermark", nullptr, windowFlags);

// Cheat FPS
static auto FrameRate = 1.0f;
FrameRate = ImGui::GetIO().Framerate;

// Current Time
struct tm ptm;
getCurrentTime(&ptm);

// Player Ping
int playerPing;
ProcessMgr.ReadMemory(LocalPlayer.Controller.Address + 0x718, playerPing);

// Player Pos
Vec3 Pos = LocalPlayer.Pawn.Pos;

// Player Angle
Vec2 Angle = LocalPlayer.Pawn.ViewAngle;

ImGui::Text("DragonBurn");
ImGui::Text("%d FPS | %d ms | %02d:%02d:%02d",
FrameRate != 0.0f ? static_cast<int>(FrameRate) : 0,
playerPing,
ptm.tm_hour, ptm.tm_min, ptm.tm_sec);
ImGui::Text("Pos: %.2f, %.2f, %.2f", Pos.x, Pos.y, Pos.z);
ImGui::Text("Angle: %.2f, %.2f", Angle.x, Angle.y);
ImGui::Text("Vel: %.2f", LocalPlayer.Pawn.Speed);
ImGui::Text(" DragonBurn");
ImGui::Text(" External CS2 cheat");
ImGui::Text(" Vel: %.2f", LocalPlayer.Pawn.Speed);
ImGui::Text(" Pos: %.1f, %.1f, %.1f ", Pos.x, Pos.y, Pos.z);
ImGui::Text(" ");

ImGui::End();
}
Expand Down
1 change: 1 addition & 0 deletions DragonBurn/Features/SpectatorList.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ namespace SpecList
ImGuiWindowFlags flags = ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoResize;
ImGui::SetNextWindowPos({ 10.0f, ImGui::GetIO().DisplaySize.y/2-200}, ImGuiCond_Once);
ImGui::SetNextWindowSize({ windowWidth, 0 }, ImGuiCond_Once);
ImGui::GetStyle().WindowRounding = 8.0f;

if (ImGui::Begin("Spectators", NULL, flags))
{
Expand Down

0 comments on commit 3259d01

Please sign in to comment.