<!-- ----------------------------------------------- -->
<!-- Points awarded for corner mastering and sliding -->
<!-- ----------------------------------------------- -->
<Corner>
<!-- Links to restrictions based on race type. In order for the detector to be enabled, all the restrictions must pass. -->
<RaceTypeLink Name="PlayerOutsideDriftEvent" />
<!-- Links to a scoring restriction object. -->
<RestrictionLink Name="OnRoad" />
<RestrictionLink Name="SomeSpeed" />
<!-- Collisions of the specified properties will prevent sections from being mastered. -->
<!-- Each CollisionMatch tag can have a Type attribute with a value of "vehicle", "flappable", "ground", "terrain", or "object". -->
<!-- MinimumForce attribute, if present, specifies the minimum collision force for the impact to prevent scoring. -->
<!-- Other flags (Impact, Scrape, StartTouch, EndTouch) can further filter the collision events. -->
<CollisionMatch Type="Vehicle" MinimumForce="100" />
<!-- Minimum slip angle that will be considered for sliding, in degrees. -->
<!-- If the vehicle slips during a corner this much, the corner will be considered -->
<!-- failed, but slide scoring may be awarded. -->
<MinimumSlipForSlide Value="20" />
<!-- Maximum allowed deviations from optimum in corners. -->
<CornerLimits>
<!-- Maximum allowed distance in meters from the racing line for a corner/straight to be -->
<!-- considered successful. If the vehicle gets farther than this for even a moment, the -->
<!-- whole track section will not be successful. -->
<MaximumLineDistance Value="3" />
<!-- By how much can the speed be higher than optimum in AIW? -->
<MaximumSpeedIncreaseKMH Value="1000" />
<!-- By how much can the speed be lower than optimum in AIW? -->
<!-- Whichever of these options gives more leeway at any particular moment is used. -->
<!-- For example, values of 30 and 0.6 means that the speed can drop by 30kmh, or by 40% (to 60%), -->
<!-- whichever is lower. -->
<MaximumSpeedDecreaseKMH Value="50" />
<MinimumSpeedFraction Value="0.6" />
</CornerLimits>
<!-- Maximum allowed deviations from optimum on straights. -->
<StraightLimits>
<!-- Maximum allowed distance in meters from the racing line for a corner/straight to be -->
<!-- considered successful. If the vehicle gets farther than this for even a moment, the -->
<!-- whole track section will not be successful. -->
<MaximumLineDistance Value="3" />
<!-- By how much can the speed be higher than optimum in AIW? -->
<MaximumSpeedIncreaseKMH Value="1000" />
<!-- By how much can the speed be lower than optimum in AIW? -->
<!-- Whichever of these options gives more leeway at any particular moment is used. -->
<!-- For example, values of 30 and 0.6 means that the speed can drop by 30kmh, or by 40% (to 60%), -->
<!-- whichever is lower. -->
<MaximumSpeedDecreaseKMH Value="20" />
<MinimumSpeedFraction Value="0.75" />
</StraightLimits>
<!-- If this value is true, all straights will be automatically considered mastered when the -->
<!-- player drives through them. parameters. If this value is true, the *Straight* Parameters -->
<!-- have no meaning. If this value is false, the player must follow the racing line and -->
<!-- have the correct speed on straights in order to master the straights. -->
<AlwaysAwardStraights Value="yes" />
<!-- Specifies the distance from the start, until which the detection will automatically master -->
<!-- all sections on point-to-point tracks. -->
<AlwaysAwardCornersOnP2PDistance Value="150" />
<!-- Points awarded for passing a corner section OK. -->
<ApexTarget Value="Precision" />
<ApexPoints Value="50" />
<!-- The function that determines the score for corner sliding, evaluated as C + Duration * T + DurationSquared * T^2 + Quality * I + QualitySquared * I^2 -->
<!-- where T is the time for which the player has been sliding and I is the integral of the quality of the slide. -->
<!-- The function will not award any points for durations lower than the specified minimum time. -->
<SlidePointsFunction>
<Target Value="Aggression" />
<MinimumDuration Value="0.15" />
<Constant Value="0" />
<Duration Value="15" />
<DurationSquared Value="0" />
<Quality Value="0" />
<QualitySquared Value="0" />
</SlidePointsFunction>
<!-- This parameter specifies whether multiple events of the corner sluide type that happen during a single combo -->
<!-- will be merged together in the combo list. The age specifies the maximum age of events eligible -->
<!-- for merging; 0 means always, non-zero means that events will be merged if the delay between the -->
<!-- two occurences was at most that long. -->
<SlideMergeMultipleEvents Value="yes" />
<SlideMergeMaximumAge Value="1" />
</Corner>