8 [
Attribute(
"8", UIWidgets.Slider,
"Time interval when maximum WindSpeed [s]",
"0 60 1")]
9 int m_iTimeIntervalMin;
11 [
Attribute(
"20", UIWidgets.Slider,
"Time interval when minimum WindSpeed [s]",
"0 60 1")]
14 [
Attribute(
"0 0 0", UIWidgets.Coords,
"Mins OOB Point")]
17 [
Attribute(
"0 0 0", UIWidgets.Coords,
"Maxs OOB Point")]
20 private static const float RANDOM_PERCENTAGE_MIN = 0.7;
21 private static const float RANDOM_PERCENTAGE_MAX = 1.3;
29 Math3D.MatrixIdentity4(mat);
51 PlayerController playerControler =
GetGame().GetPlayerController();
55 PlayerCamera playerCamera = playerControler.GetPlayerCamera();
62 SignalsManagerComponent signalsManagerComponent = SignalsManagerComponent.Cast(owner.FindComponent(SignalsManagerComponent));
63 if (signalsManagerComponent)
64 signalsManagerComponent.SetSignalValue(signalsManagerComponent.AddOrFindSignal(
"Interior"), interior);
70 vector mins = vector.Zero;
71 vector maxs = vector.Zero;
73 entity.GetWorldBounds(mins, maxs);
75 return !(point[0] < mins[0] || point[0] > maxs[0] || point[1] < mins[1] || point[1] > maxs[1] || point[2] < mins[2] || point[2] > maxs[2]);
84 m_fTriggerInterval = Math.RandomFloat(timeInterval * RANDOM_PERCENTAGE_MIN, timeInterval * RANDOM_PERCENTAGE_MAX);
96 v = owner.CoordToParent(v);
102 private float Interpolate(
float in,
float Xmin,
float Xmax,
float Ymin,
float Ymax)
110 return ((Ymin * (Xmax - in) + Ymax * (in - Xmin)) / (Xmax - Xmin));