@@ -156,10 +156,25 @@ static bool Prefix(
156156 "GetShotQuality" , new object [ ] { selectedActor , position , rotation , target } ) ;
157157 line . material . color = Color . white ;
158158 line . endColor = line . startColor = Color . Lerp ( Color . clear , ModSettings . Direct . Color , shotQuality ) ;
159+ // PoC follows for a very high contrast line to help color blind players
160+ // line.endColor = line.startColor = Color.black;
161+ // LineRenderer line8080 =
162+ // (LineRenderer)ReflectionHelper.InvokePrivateMethode(__instance, "getLine",
163+ // new object[] { });
164+ // line8080.positionCount = 2;
165+ // line8080.SetPosition(0, vector);
166+ // line8080.material = __instance.MaterialOutOfRange;
167+ // line8080.endColor = line8080.startColor = Color.white;
168+ // line8080.material.color = Color.white;
169+ // line8080.startWidth = line8080.endWidth = ModSettings.Direct.Thickness * 1.5f;
170+ // line8080.SetPosition(1, vector2);
171+ if ( ModSettings . Direct . Dashed )
172+ {
173+ line . material = __instance . MaterialOutOfRange ;
174+ line . material . color = line . endColor ;
175+ }
159176 }
160-
161- line . startWidth = __instance . LOSWidthBegin ;
162- line . endWidth = __instance . LOSWidthEnd ;
177+ line . startWidth = line . endWidth = ModSettings . Direct . Thickness ;
163178 }
164179
165180 line . SetPosition ( 1 , vector2 ) ;
@@ -188,6 +203,11 @@ static bool Prefix(
188203 line . material . color = Color . white ;
189204 line . startColor = line . endColor = ModSettings . ObstructedAttackerSide . Color ;
190205 line . startWidth = line . endWidth = ModSettings . ObstructedAttackerSide . Thickness ;
206+ if ( ModSettings . ObstructedAttackerSide . Dashed )
207+ {
208+ line . material = __instance . MaterialOutOfRange ;
209+ line . material . color = line . endColor ;
210+ }
191211 }
192212
193213 LineRenderer line2 =
@@ -202,6 +222,11 @@ static bool Prefix(
202222 line2 . material . color = Color . white ;
203223 line2 . startColor = line2 . endColor = ModSettings . ObstructedTargetSide . Color ;
204224 line2 . startWidth = line2 . endWidth = ModSettings . ObstructedTargetSide . Thickness ;
225+ if ( ModSettings . ObstructedTargetSide . Dashed )
226+ {
227+ line2 . material = __instance . MaterialOutOfRange ;
228+ line2 . material . color = line2 . endColor ;
229+ }
205230 }
206231 else
207232 {
0 commit comments