@@ -86,6 +86,9 @@ public final class PlayerEspHack extends Hack implements UpdateListener,
8686 + "server-side NPCs but may hide real players who are intentionally\n "
8787 + "hidden from the tab-list." ,
8888 true );
89+ private final SliderSetting tracerThickness =
90+ new SliderSetting ("Tracer thickness" , 2 , 0.5 , 8 , 0.1 ,
91+ SliderSetting .ValueDisplay .DECIMAL .withSuffix ("px" ));
8992 private final CheckboxSetting filledBoxes = new CheckboxSetting (
9093 "Filled boxes" ,
9194 "When enabled, renders solid filled boxes instead of outlined boxes." ,
@@ -106,8 +109,8 @@ public final class PlayerEspHack extends Hack implements UpdateListener,
106109 private final Map <UUID , LosState > losStates = new HashMap <>();
107110 private static final long LOS_HOLD_MS = 250 ;
108111 private static final long LOS_FADE_MS = 120 ;
109- private static final double THREAT_LINE_WIDTH = 4.0 ; // thickness of threat
110- // lines
112+ private static final double THREAT_LINE_WIDTH = 4.0 ; // base thickness of
113+ // threat lines
111114
112115 public PlayerEspHack ()
113116 {
@@ -118,6 +121,7 @@ public PlayerEspHack()
118121 addSetting (losThreatDetection );
119122 addSetting (losThreatFov );
120123 addSetting (losThreatRange );
124+ addSetting (tracerThickness );
121125 addSetting (filledBoxes );
122126 addSetting (filledAlpha );
123127 addSetting (useStaticPlayerColor );
@@ -273,12 +277,15 @@ public void onRender(MatrixStack matrixStack, float partialTicks)
273277 normalEnds .add (colored );
274278 }
275279
280+ double normalLineWidth = tracerThickness .getValue ();
281+ double threatLineWidth = normalLineWidth + Math .max (0 ,
282+ THREAT_LINE_WIDTH - tracerThickness .getDefaultValue ());
276283 if (!normalEnds .isEmpty ())
277284 RenderUtils .drawTracers (matrixStack , partialTicks , normalEnds ,
278- false );
285+ false , normalLineWidth );
279286 if (!threatEnds .isEmpty ())
280287 RenderUtils .drawTracers (matrixStack , partialTicks , threatEnds ,
281- false , THREAT_LINE_WIDTH );
288+ false , threatLineWidth );
282289 }
283290 }
284291
0 commit comments