diff --git a/Amalgam/src/Features/Aimbot/AimbotMelee/AimbotMelee.cpp b/Amalgam/src/Features/Aimbot/AimbotMelee/AimbotMelee.cpp index 2c500ad7..6561ed7d 100644 --- a/Amalgam/src/Features/Aimbot/AimbotMelee/AimbotMelee.cpp +++ b/Amalgam/src/Features/Aimbot/AimbotMelee/AimbotMelee.cpp @@ -505,10 +505,10 @@ static inline void DrawVisuals(CTFPlayer* pLocal, CTFWeaponBase* pWeapon, CUserC G::AimPoint = { tTarget.m_vPos, I::GlobalVars->tickcount }; bool bPath = Vars::Visuals::Prediction::SwingLines.Value && Vars::Visuals::Prediction::PlayerPath.Value; - bool bLine = Vars::Visuals::Line::TracersEnabled.Value; + //bool bLine = Vars::Visuals::Line::TracersEnabled.Value; bool bBoxes = Vars::Visuals::Hitbox::BonesEnabled.Value & Vars::Visuals::Hitbox::BonesEnabledEnum::OnShot; bool bRealPath = Vars::Visuals::Prediction::RealPath.Value; - if (bPath || bLine || bBoxes || bRealPath) + if (bPath /*|| bLine*/ || bBoxes || bRealPath) { if (pCmd->buttons & IN_ATTACK && G::CanPrimaryAttack && pWeapon->m_flSmackTime() < 0.f) { @@ -538,17 +538,17 @@ static inline void DrawVisuals(CTFPlayer* pLocal, CTFWeaponBase* pWeapon, CUserC } if (G::Attacking == 1) { - if (bLine) - { - Vec3 vEyePos = pLocal->GetShootPos(); - float flDist = vEyePos.DistTo(tTarget.m_vPos); - Vec3 vForward; Math::AngleVectors(tTarget.m_vAngleTo, &vForward); + //if (bLine) + //{ + // Vec3 vEyePos = pLocal->GetShootPos(); + // float flDist = vEyePos.DistTo(tTarget.m_vPos); + // Vec3 vForward; Math::AngleVectors(tTarget.m_vAngleTo, &vForward); - if (Vars::Colors::LineIgnoreZ.Value.a) - G::LineStorage.emplace_back(std::pair(vEyePos, vEyePos + vForward * flDist), I::GlobalVars->curtime + Vars::Visuals::Line::DrawDuration.Value, Vars::Colors::LineIgnoreZ.Value); - if (Vars::Colors::Line.Value.a) - G::LineStorage.emplace_back(std::pair(vEyePos, vEyePos + vForward * flDist), I::GlobalVars->curtime + Vars::Visuals::Line::DrawDuration.Value, Vars::Colors::Line.Value, true); - } + // if (Vars::Colors::LineIgnoreZ.Value.a) + // G::LineStorage.emplace_back(std::pair(vEyePos, vEyePos + vForward * flDist), I::GlobalVars->curtime + Vars::Visuals::Line::DrawDuration.Value, Vars::Colors::LineIgnoreZ.Value); + // if (Vars::Colors::Line.Value.a) + // G::LineStorage.emplace_back(std::pair(vEyePos, vEyePos + vForward * flDist), I::GlobalVars->curtime + Vars::Visuals::Line::DrawDuration.Value, Vars::Colors::Line.Value, true); + //} if (bBoxes) { auto vBoxes = F::Visuals.GetHitboxes(tTarget.m_pRecord->m_aBones, tTarget.m_pEntity->As()); diff --git a/Amalgam/src/Features/ImGui/Menu/Menu.cpp b/Amalgam/src/Features/ImGui/Menu/Menu.cpp index 76efe3f7..6ef72a65 100644 --- a/Amalgam/src/Features/ImGui/Menu/Menu.cpp +++ b/Amalgam/src/Features/ImGui/Menu/Menu.cpp @@ -282,11 +282,12 @@ void CMenu::MenuAimbot(int iTab) if (Section("Projectile")) { FDropdown(Vars::Aimbot::Projectile::StrafePrediction, FDropdownEnum::Left); - FDropdown(Vars::Aimbot::Projectile::SplashPrediction, FDropdownEnum::Right); + FDropdown(Vars::Aimbot::Projectile::Hitboxes, FDropdownEnum::Right); + FDropdown(Vars::Aimbot::Projectile::SplashPrediction, FDropdownEnum::Left); + FDropdown(Vars::Aimbot::Projectile::SplashMode, FDropdownEnum::Right); FDropdown(Vars::Aimbot::Projectile::AutoDetonate, FDropdownEnum::Left); FDropdown(Vars::Aimbot::Projectile::AutoAirblast, FDropdownEnum::Right); - FDropdown(Vars::Aimbot::Projectile::Hitboxes, FDropdownEnum::Left); - FDropdown(Vars::Aimbot::Projectile::Modifiers, FDropdownEnum::Right); + FDropdown(Vars::Aimbot::Projectile::Modifiers); FSlider(Vars::Aimbot::Projectile::MaxSimulationTime, FSliderEnum::Left); PushTransparent(!Vars::Aimbot::Projectile::StrafePrediction.Value); { @@ -327,9 +328,8 @@ void CMenu::MenuAimbot(int iTab) } FText("Splash", { 5, 5 }); - if (FPopupButton("Splash", { 0, -5 }, -8)) + if (FPopupButton("Splash", { 0, -5 })) { - FDropdown(Vars::Aimbot::Projectile::SplashMode); PushTransparent(Vars::Aimbot::Projectile::SplashMode.Value != Vars::Aimbot::Projectile::SplashModeEnum::Trace); { FSlider(Vars::Aimbot::Projectile::SplashPointsDirect, FSliderEnum::Left); diff --git a/Amalgam/src/SDK/Vars.h b/Amalgam/src/SDK/Vars.h index f4dfcdb8..9552d1d4 100644 --- a/Amalgam/src/SDK/Vars.h +++ b/Amalgam/src/SDK/Vars.h @@ -307,18 +307,21 @@ NAMESPACE_BEGIN(Vars) CVarEnum(StrafePrediction, VA_LIST("Predict", "Strafe prediction"), 0b11, DROPDOWN_MULTI, "Off", VA_LIST("Air strafing", "Ground strafing"), Air = 1 << 0, Ground = 1 << 1); - CVarEnum(SplashPrediction, VA_LIST("Splash", "Splash prediction"), 0, NONE, nullptr, + CVarEnum(Hitboxes, VA_LIST("Hitboxes", "Projectile hitboxes"), 0b001111, DROPDOWN_MULTI, nullptr, + VA_LIST("Auto", "##Divider", "Head", "Body", "Feet", "##Divider", "Bodyaim if lethal", "Prioritize feet"), + Auto = 1 << 0, Head = 1 << 1, Body = 1 << 2, Feet = 1 << 3, BodyaimIfLethal = 1 << 4, PrioritizeFeet = 1 << 5); + CVarEnum(SplashPrediction, "Splash prediction", 0, NONE, nullptr, VA_LIST("Off", "Include", "Prefer", "Only"), Off, Include, Prefer, Only); + CVarEnum(SplashMode, "Splash mode", 0, NONE, nullptr, + VA_LIST("Trace", "Face"), + Trace, Face); CVarEnum(AutoDetonate, "Auto detonate", 0b00, DROPDOWN_MULTI, "Off", VA_LIST("Stickies", "Flares", "##Divider", "Prevent self damage", "Ignore invisible"), Stickies = 1 << 0, Flares = 1 << 1, PreventSelfDamage = 1 << 2, IgnoreInvisible = 1 << 3); CVarEnum(AutoAirblast, "Auto airblast", 0b000, DROPDOWN_MULTI, "Off", VA_LIST("Enabled", "##Divider", "Redirect", "Ignore FOV"), Enabled = 1 << 0, Redirect = 1 << 1, IgnoreFOV = 1 << 2); - CVarEnum(Hitboxes, VA_LIST("Hitboxes", "Projectile hitboxes"), 0b001111, DROPDOWN_MULTI, nullptr, - VA_LIST("Auto", "##Divider", "Head", "Body", "Feet", "##Divider", "Bodyaim if lethal", "Prioritize feet"), - Auto = 1 << 0, Head = 1 << 1, Body = 1 << 2, Feet = 1 << 3, BodyaimIfLethal = 1 << 4, PrioritizeFeet = 1 << 5); CVarEnum(Modifiers, VA_LIST("Modifiers", "Projectile modifiers"), 0b0010, DROPDOWN_MULTI, nullptr, VA_LIST("Charge weapon", "Cancel charge", "Use arm time", "Air splash", "Lob angles", "Target dormant"), ChargeWeapon = 1 << 0, CancelCharge = 1 << 1, UseArmTime = 1 << 2, AirSplash = 1 << 3, LobAngles = 1 << 4, TargetDormant = 1 << 5); @@ -359,9 +362,6 @@ NAMESPACE_BEGIN(Vars) CVar(HuntsmanPullPoint, "Huntsman pull point", false, NOSAVE | DEBUGVAR); CVar(HuntsmanPullNoZ, "Pull no Z", false, NOSAVE | DEBUGVAR); - CVarEnum(SplashMode, "Splash mode", 0, NOSAVE | DEBUGVAR, nullptr, - VA_LIST("Trace", "Face"), - Trace, Face); CVar(SplashAirCount, "Splash air count", 0, NOSAVE | DEBUGVAR | SLIDER_MIN, 0, 10); CVar(SplashPointsDirect, "Splash points direct", 100, NOSAVE | DEBUGVAR | SLIDER_MIN | SLIDER_PRECISION, 0, 400, 5); CVar(SplashPointsArc, "Splash points arc", 100, NOSAVE | DEBUGVAR | SLIDER_MIN | SLIDER_PRECISION, 0, 400, 5);