Struct TrackRulesParticipant
- Namespace
- rF2SharedMemoryNet.RF2Data.Structs
- Assembly
- rF2SharedMemoryNet.dll
Represents a participant in track rules management for a racing simulation, including information about position, status, and rules compliance.
public struct TrackRulesParticipant
- Inherited Members
Remarks
This structure is used to manage and track the state of individual participants during formation laps, caution periods, and other race scenarios. It includes input-only fields for participant identification and status, input/output fields for rules compliance and position assignments, and additional fields for messaging and future expansion.
Fields
ColumnAssignment
Represents the column assignment for a participant, indicating the specific line or lane they are supposed to be in.
public TrackRulesColumn ColumnAssignment
Field Value
Remarks
This field specifies the track rules column for a participant, which determines their designated position on the track.
CurrentRelativeDistance
Represents the current relative distance of the vehicle in the race.
public double CurrentRelativeDistance
Field Value
Remarks
The value is calculated as the sum of the lap distance multiplied by the relative laps and the lap distance of the vehicle. This property is useful for determining the vehicle's position relative to other competitors.
Expansion
For future expansion.
public byte[] Expansion
Field Value
- byte[]
FrozenOrder
Represents the 0-based position of the frozen order when a caution flag is issued.
public short FrozenOrder
Field Value
Remarks
This value is not valid during formation laps.
GoalRelativeDistance
Represents the relative distance to the goal, calculated based on the leader's position and adjusted by the desired column spacing and position assignments.
public double GoalRelativeDistance
Field Value
ID
Represents the unique identifier for a slot.
public int ID
Field Value
Message
Represents a message intended for a participant, providing context or explanation about the current situation.
public byte[] Message
Field Value
- byte[]
Remarks
The message is stored as an array of 96 bytes and is untranslated. It is expected to be processed by client machines for translation.
PitsOpen
Indicates whether the rules allow this particular vehicle to enter the pits at the current time.
public byte PitsOpen
Field Value
Remarks
2 for false or 3 for true; if you want to edit it, set to 0 for false or 1 for true. To simplify use PitsOpen
Place
Represents the 1-based position of an entity.
public short Place
Field Value
Remarks
Typically used for initializing the track order during a formation lap.
PositionAssignment
Represents the 0-based position within a column (line or lane) where the participant is assigned.
public int PositionAssignment
Field Value
RelativeLaps
Represents the current number of formation or caution laps relative to the safety car.
public int RelativeLaps
Field Value
Remarks
This value is typically zero, except when the safety car crosses the start/finish line. It can be decremented to implement rules such as the 'wave around' or 'beneficiary rule' (commonly referred to as 'lucky dog' or 'free pass').
Unused
Unused
public byte[] Unused
Field Value
- byte[]
UpToSpeed
Indicates whether the vehicle is up to speed and can be followed while in the frozen order.
public byte UpToSpeed
Field Value
Remarks
This flag should be set to false for vehicles that have temporarily spun out and have not yet returned to normal speed.
YellowSeverity
Represents the severity rating of how much this vehicle is contributing to a yellow flag.
public float YellowSeverity