4 [Attribute(desc: "Distance below which random offset will not be applied. [m]", params: "0 inf")]
5protectedfloat m_fPositionOffsetCloseDistance;
6
7 [Attribute(desc: "Distance from which target position offsetting will use max values. [m]\nIf this value is 0 then offset will not be applied", params: "0 inf")]
8protectedfloat m_fPositionOffsetFarDistance;
9
10 [Attribute(desc: "Max possible offset that can be added to the target position. [m]", params: "0 inf")]
11protectedfloat m_fMaxPositionOffset;
12
13 [Attribute(desc: "Curve that describes bottom end of the random distance.\nWhen values are reed, the X axis is determined by (DistanceFromCharacterToTargetPosition - PositionOffsetCloseDistance) / PositionOffsetFarDistance,\n while Y axis will be used to determine min offset distance by multipling it by MaxPositionOffset", uiwidget: UIWidgets.CurveDialog, params: "1 1 0 0")]
16 [Attribute(desc: "Curve that describes top end of the random distance.\nWhen values are reed, the X axis is determined by (DistanceFromCharacterToTargetPosition - PositionOffsetCloseDistance) / PositionOffsetFarDistance,\n while Y axis will be used to determine max offset distance by multipling it by MaxPositionOffset", uiwidget: UIWidgets.CurveDialog, params: "1 1 0 0")]
66Print("Warning! Minimal order offset value is lower than maximal! Check configuration of curves for " + m_sCommandName + "at point " + distanceNormal, LogLevel.WARNING);
91Print("ERROR: Command " + m_sCommandName + " is misconfigured in Commands.conf! Its 'Position Offset Close Distance' (" + m_fPositionOffsetCloseDistance + ") is larger than 'Position Offset Far Distance' (" + m_fPositionOffsetFarDistance + ")", LogLevel.ERROR);
92 m_fPositionOffsetCloseDistance = 0;
93 m_fPositionOffsetFarDistance = 0;
94 }
95
96#ifdef ENABLE_DIAG
97if (Replication.IsServer()) //position is only spoofed on the server as it is spawning the waypoint