diff --git a/NewHorizons/Builder/Props/EchoesOfTheEye/AlarmTotemBuilder.cs b/NewHorizons/Builder/Props/EchoesOfTheEye/AlarmTotemBuilder.cs index cf9b0c23..46144b6b 100644 --- a/NewHorizons/Builder/Props/EchoesOfTheEye/AlarmTotemBuilder.cs +++ b/NewHorizons/Builder/Props/EchoesOfTheEye/AlarmTotemBuilder.cs @@ -48,6 +48,12 @@ namespace NewHorizons.Builder.Props.EchoesOfTheEye alarmTotem._sightAngle = info.sightAngle; alarmTotem._sightDistance = info.sightDistance; + if (info.stretchVisionCone != null) + { + var visionCone = totemObj.transform.Find("Effects_IP_SIM_AlarmTotem/AlarmTotemVisionCone"); + visionCone.localScale = Vector3.Scale(visionCone.localScale, info.stretchVisionCone); + } + return totemObj; } } diff --git a/NewHorizons/External/Modules/Props/EchoesOfTheEye/AlarmTotemInfo.cs b/NewHorizons/External/Modules/Props/EchoesOfTheEye/AlarmTotemInfo.cs index cc902dbf..94b0919f 100644 --- a/NewHorizons/External/Modules/Props/EchoesOfTheEye/AlarmTotemInfo.cs +++ b/NewHorizons/External/Modules/Props/EchoesOfTheEye/AlarmTotemInfo.cs @@ -20,5 +20,10 @@ namespace NewHorizons.External.Modules.Props.EchoesOfTheEye /// The width of the alarm's "vision cone" in degrees. /// [DefaultValue(60f)] public float sightAngle = 60f; + + /// + /// Scales the visible vision cone in the simulation view (does not affect the actual vision cone detection). + /// + public MVector3 stretchVisionCone; } }