tracer middle
This commit is contained in:
parent
ab5b730e51
commit
1fc7af8f4c
@ -29,6 +29,7 @@ namespace cheat::feature
|
|||||||
NF(f_ArrowRadius, "Arrow Radius", "ESP", 100.0f),
|
NF(f_ArrowRadius, "Arrow Radius", "ESP", 100.0f),
|
||||||
NF(f_OutlineThickness, "Outline Thickness", "ESP", 1.0f),
|
NF(f_OutlineThickness, "Outline Thickness", "ESP", 1.0f),
|
||||||
NF(f_TracerSize, "Tracer Size", "ESP", 1.0f),
|
NF(f_TracerSize, "Tracer Size", "ESP", 1.0f),
|
||||||
|
NF(f_MiddleScreenTracer, "Middle Screen Tracer", "ESP", false),
|
||||||
NF(f_DrawDistance, "Draw Distance", "ESP", false),
|
NF(f_DrawDistance, "Draw Distance", "ESP", false),
|
||||||
NF(f_DrawName, "Draw Name", "ESP", false),
|
NF(f_DrawName, "Draw Name", "ESP", false),
|
||||||
|
|
||||||
@ -71,6 +72,7 @@ namespace cheat::feature
|
|||||||
|
|
||||||
ConfigWidget(f_Fill);
|
ConfigWidget(f_Fill);
|
||||||
ConfigWidget(f_FillTransparency, 0.01f, 0.0f, 1.0f, "Transparency of filled part.");
|
ConfigWidget(f_FillTransparency, 0.01f, 0.0f, 1.0f, "Transparency of filled part.");
|
||||||
|
ConfigWidget(f_MiddleScreenTracer, "Draw tracer from middle part of the screen.");
|
||||||
|
|
||||||
if (f_DrawTracerMode.value() == DrawTracerMode::OffscreenArrows &&
|
if (f_DrawTracerMode.value() == DrawTracerMode::OffscreenArrows &&
|
||||||
BeginGroupPanel("Arrow tracer options", ImVec2(-1, 0), true))
|
BeginGroupPanel("Arrow tracer options", ImVec2(-1, 0), true))
|
||||||
|
@ -38,6 +38,7 @@ namespace cheat::feature
|
|||||||
config::Field<float> f_ArrowRadius;
|
config::Field<float> f_ArrowRadius;
|
||||||
config::Field<float> f_OutlineThickness;
|
config::Field<float> f_OutlineThickness;
|
||||||
config::Field<float> f_TracerSize;
|
config::Field<float> f_TracerSize;
|
||||||
|
config::Field<bool> f_MiddleScreenTracer;
|
||||||
|
|
||||||
config::Field<int> f_FontSize;
|
config::Field<int> f_FontSize;
|
||||||
config::Field<bool> f_FontOutline;
|
config::Field<bool> f_FontOutline;
|
||||||
|
@ -388,7 +388,13 @@ namespace cheat::feature::esp::render
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
auto draw = ImGui::GetBackgroundDrawList();
|
auto draw = ImGui::GetBackgroundDrawList();
|
||||||
|
ImRect screen_rect = { 0.0f, 0.0f, ImGui::GetIO().DisplaySize.x, ImGui::GetIO().DisplaySize.y };
|
||||||
|
auto screen_center = screen_rect.GetCenter();
|
||||||
|
auto& esp = ESP::GetInstance();
|
||||||
|
if (!esp.f_MiddleScreenTracer)
|
||||||
draw->AddLine(s_AvatarPosition, *screenPos, color);
|
draw->AddLine(s_AvatarPosition, *screenPos, color);
|
||||||
|
else
|
||||||
|
draw->AddLine(screen_center, *screenPos, color);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define PI 3.14159265358979323846
|
#define PI 3.14159265358979323846
|
||||||
|
Loading…
Reference in New Issue
Block a user