22
22
public class ArcUnits {
23
23
private static final int maxBuildPlans = 100 ;
24
24
private static boolean alwaysShowUnitRTSAi , unitHealthBar , unitLogicMoveLine , unitLogicTimerBars , unithitbox , unitBuildPlan ;
25
- private static float minHealthDrawStat ;
26
25
private static float unitWeaponRange , unitWeaponRangeAlpha ;
27
26
public static boolean selectedUnitsFlyer , selectedUnitsLand ;
28
27
@@ -40,8 +39,6 @@ public class ArcUnits{
40
39
unithitbox = Core .settings .getBool ("unithitbox" );
41
40
unitBuildPlan = Core .settings .getBool ("unitbuildplan" );
42
41
43
- minHealthDrawStat = Core .settings .getInt ("unitBarDrawMinHealth" );
44
-
45
42
unitWeaponRange = Core .settings .getInt ("unitWeaponRange" ) * tilesize ;
46
43
unitWeaponRangeAlpha = Core .settings .getInt ("unitWeaponRangeAlpha" ) / 100f ;
47
44
@@ -61,20 +58,18 @@ public static void draw(Unit unit){
61
58
if (unitTargetType > 0 ) drawAimTarget (unit );
62
59
if (arcBuildInfo && unit .isLocal ()) drawBuildRange ();
63
60
}
64
- if ((RenderExt .unitHideExcludePlayers && unit .isPlayer ()) || (unit .maxHealth + unit .shield ) >= minHealthDrawStat ){
65
- Draw .z (Draw .z () + 0.1f );
66
- if (unit .team () == player .team () || RenderExt .showOtherInfo ){
67
- if (unitWeaponRange > 0 ) drawWeaponRange (unit );
68
- if (alwaysShowUnitRTSAi ) drawRTSAI (unit );
69
- if (unitHealthBar ) drawHealthBar (unit );
70
- if (unit .controller () instanceof LogicAI ai ){
71
- if (unitLogicMoveLine ) drawLogicMove (unit , ai );
72
- if (unitLogicTimerBars ) drawLogicTimer (unit , ai );
73
- }
74
- if (unitBuildPlan ) drawBuildPlan (unit );
61
+ Draw .z (Draw .z () + 0.1f );
62
+ if (unit .team () == player .team () || RenderExt .showOtherInfo ){
63
+ if (unitWeaponRange > 0 ) drawWeaponRange (unit );
64
+ if (alwaysShowUnitRTSAi ) drawRTSAI (unit );
65
+ if (unitHealthBar ) drawHealthBar (unit );
66
+ if (unit .controller () instanceof LogicAI ai ){
67
+ if (unitLogicMoveLine ) drawLogicMove (unit , ai );
68
+ if (unitLogicTimerBars ) drawLogicTimer (unit , ai );
75
69
}
76
- if (unithitbox ) drawHitBox (unit );
70
+ if (unitBuildPlan ) drawBuildPlan (unit );
77
71
}
72
+ if (unithitbox ) drawHitBox (unit );
78
73
}
79
74
80
75
private static void drawAimRange (Unit unit ){
0 commit comments