Skip to content

Commit

Permalink
🚑 Fix view model glow (maybe), remove FOV circle
Browse files Browse the repository at this point in the history
  • Loading branch information
hir0xygen committed May 28, 2024
1 parent 56ae135 commit 2475c2e
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 26 deletions.
7 changes: 0 additions & 7 deletions Features/Glow.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -555,13 +555,6 @@ struct Glow {

Memory::Write<uint8_t>(currentWeapon + OFF_GLOW_HIGHLIGHT_ID, ViewmodelGlowID);
}

if (!Features::Glow::ViewModelGlow) {
uint64_t actWeaponID = Memory::Read<uint64_t>(Myself->BasePointer + OFF_VIEWMODELS) & 0xFFFF;
uint64_t currentWeapon = Memory::Read<uint64_t>(OFF_REGION + OFF_ENTITY_LIST + (actWeaponID << 5));

Memory::Write<uint8_t>(currentWeapon + OFF_GLOW_HIGHLIGHT_ID, 0);
}
}

void ViewmodelGlowSettings() {
Expand Down
4 changes: 1 addition & 3 deletions Features/Radar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,13 @@
#define DEG2RAD(x) ((float)(x) * (float)(M_PI / 180.f))

struct Radar {
XDisplay *X11Display;
Camera *GameCamera;
Level *m_level;
LocalPlayer *Myself;
std::vector<Player *> *Players;
std::chrono::milliseconds LastUpdateTime;

Radar(XDisplay *X11Display, std::vector<Player *> *Players, Camera *GameCamera, Level *level, LocalPlayer *localplayer) {
this->X11Display = X11Display;
Radar(std::vector<Player *> *Players, Camera *GameCamera, Level *level, LocalPlayer *localplayer) {
this->Players = Players;
this->GameCamera = GameCamera;
this->m_level = level;
Expand Down
14 changes: 0 additions & 14 deletions Features/Sense.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -530,20 +530,6 @@ struct Sense {
Renderer::DrawLine(Canvas, Vector2D(x, y - Features::Sense::CrosshairSize), Vector2D(x, y + Features::Sense::CrosshairSize), Features::Sense::CrosshairThickness, ImColor(Features::Colors::CrosshairColor[0], Features::Colors::CrosshairColor[1], Features::Colors::CrosshairColor[2], Features::Colors::CrosshairColor[3])); // Top - bottom
}

// Draw FOV Circle (Legitbot)
if (Features::Sense::DrawFOVCircle && Features::Aimbot::AimbotEnabled && Myself->IsCombatReady()) {
float FOV = std::min(Features::Aimbot::FOV, Features::Aimbot::FOV * (AimAssistState->GetFOVScale() * Features::Aimbot::ZoomScale));
float Radius = tanf(DEG2RAD(FOV) / 2) / tanf(DEG2RAD(Features::Sense::GameFOV) / 2) * ScreenWidth;
Renderer::DrawCircle(Canvas, Vector2D(ScreenWidth / 2, ScreenHeight / 2), Radius, 40, ImColor(Features::Colors::FOVColor[0], Features::Colors::FOVColor[1], Features::Colors::FOVColor[2], Features::Colors::FOVColor[3]), Features::Sense::FOVThickness);
}

// Draw Filled FOV Circle (Legitbot)
if (Features::Sense::DrawFilledFOVCircle && Features::Aimbot::AimbotEnabled && Myself->IsCombatReady()) {
float FOV = std::min(Features::Aimbot::FOV, Features::Aimbot::FOV * (AimAssistState->GetFOVScale() * Features::Aimbot::ZoomScale));
float Radius = tanf(DEG2RAD(FOV) / 2) / tanf(DEG2RAD(Features::Sense::GameFOV) / 2) * ScreenWidth;
Renderer::DrawCircleFilled(Canvas, Vector2D(ScreenWidth / 2, ScreenHeight / 2), Radius, 40, ImColor(Features::Colors::FilledFOVColor[0], Features::Colors::FilledFOVColor[1], Features::Colors::FilledFOVColor[2], Features::Colors::FilledFOVColor[3]));
}

// Draw lot of things
if (Features::Settings::ESPEnabled) {
for (auto p : *Players) {
Expand Down
2 changes: 1 addition & 1 deletion Utils/Features.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ namespace Features {
};

// Aimbot
bool DrawFOVCircle = true;
bool DrawFOVCircle = false;
bool DrawFilledFOVCircle = false;
float FOVThickness = 1.0;
float GameFOV = 120;
Expand Down
2 changes: 1 addition & 1 deletion xap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ std::vector<Player *> *Players = new std::vector<Player *>;

// Features
Sense *ESP = new Sense(Map, Players, GameCamera, Myself, X11Display);
Radar *MapRadar = new Radar(X11Display, Players, GameCamera, Map, Myself);
Radar *MapRadar = new Radar(Players, GameCamera, Map, Myself);
Glow *GlowESP = new Glow(Map, Players, GameCamera, Myself);
Legitbot *Legit = new Legitbot(X11Display, Map, Myself, Players);
Triggerbot *Trigger = new Triggerbot(X11Display, Map, Myself, Players);
Expand Down

0 comments on commit 2475c2e

Please sign in to comment.