mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Add vision cone model scaling for alarm totems
This commit is contained in:
parent
0752b11b65
commit
b85ec167db
@ -48,6 +48,12 @@ namespace NewHorizons.Builder.Props.EchoesOfTheEye
|
|||||||
alarmTotem._sightAngle = info.sightAngle;
|
alarmTotem._sightAngle = info.sightAngle;
|
||||||
alarmTotem._sightDistance = info.sightDistance;
|
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;
|
return totemObj;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -20,5 +20,10 @@ namespace NewHorizons.External.Modules.Props.EchoesOfTheEye
|
|||||||
/// The width of the alarm's "vision cone" in degrees.
|
/// The width of the alarm's "vision cone" in degrees.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DefaultValue(60f)] public float sightAngle = 60f;
|
[DefaultValue(60f)] public float sightAngle = 60f;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Scales the visible vision cone in the simulation view (does not affect the actual vision cone detection).
|
||||||
|
/// </summary>
|
||||||
|
public MVector3 stretchVisionCone;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user