Car AI Setup

Edit
Date: January 9, 2017
Authors: Gel38
Categories: Parameters
Tags: car_making

;====================
; Car AI details
;====================

AI { ;Start AI
UnderThresh 93.820000
UnderRange 3835.356934
UnderFront 197.100006
UnderRear 556.727966
UnderMax 0.510582
OverThresh 462.209991
OverRange 1182.744873
OverMax 1.000000
OverAccThresh 37.340000
OverAccRange 625.908142
PickupBias 13106
BlockBias 22936
OvertakeBias 19660
Suspension 16383
Aggression 0
} ; End AI

This setting says when the AI should correct the car when it is sliding sideways. If the sideways speed of the car exceeds the limit, the car's AI will kick in and correct the sliding issue. Lower numbers will cause the AI to correct the car sooner, and higher numbers will let the car slide further. This ranges from 0 to infinity.

This is the smootheness of correction given to the car when the UnderThresh setting takes over, and causes the car to correct itself. Lower numbers cause sharp corrections, and higher numbers encourage the AI to give smoother corrections to the vehicle. This settings ranges from 1 to infinity.

This settings works in tandem with the UnderRear setting. If the front and of the car exceeds this limit, the AI will tell the car rather to fully brake, or press the accelerator. Lower numbers will cause the car to fully brake sooner, and higher numbers will encourage the AI to tell the car to press the accelerator. The range is from 0 to infinity.

This settings works in tandem with the UnderFront setting. If the front and rear of the car exceeds this limit, the AI will tell the car rather to fully brake, or press the accelerator. Lower numbers will cause the car to fully brake sooner, and higher numbers will encourage the AI to tell the car to press the accelerator. The range is from 0 to infinity.

This is the maximum limit at which the AI is allowed to correct the steering of the car while sliding. Lower numbers give smoothe corrections to the steering, and higher numbers will give sharp steering correction. This setting ranges from 0 to 1.

If the rear of the car is moving faster than the front of the car (resulting in Oversteer), OverThresh kicks in to correct the problem. Setting this number low will cause the car to correct the steering more quickly. Setting the number higher will result in the car turning into the oversteer, causing a spinout. This ranges from 0 to infinity.

This is the smoothness of steering correction given during powersliding or spinouts. Lower numbers give sharp corrections to the steering, while, higher numbers encourage smoothe corrections. This setting ranges from 1 to infinity.

This is the maximum amount that the AI is allowed to correct the steering of the car in the event of a powerslide or spinout. Lower numbers will give smoother corrections, and higher numbers will give sharper corrections to the steering. The range for this setting is 0 to 1.

This refers to the amount of throttle correction given during the event of a powerslide or spinout. A lower value will cause the AI to correct the throttle sooner, and a higher value will let the car follow through with the slide or spin. The range is from 0 to infinity.

This setting tells the car to either apply the brake or depress the throttle in the event of a powerslide or spinout. A lower value will cause the car to brake more. A higher setting will cause the car to more often apply the throttle. The range is from 1 to infinity.

This setting may tell the car how often to acquire a pickup in a race. Assuming, a higher number might make the car acquire pickups more often, and lower numbers may cause it too acquire them less often. However, this needs testing.

This may be how likely the car is, when controlled by the AI, to block other cars which may seek to pass it. Assuming, a higher number might make the car move to block another car more often, and lower numbers may cause it to block less often. This setting needs further testing.

This setting may refer to how likely the car is to overtake (pass) another car. Assuming, higher numbers may cause the car to overtake more often when coming upon another opponent. It may also be that lower numbers will cause the car to be more passive, and not overtake opponents as quickly. This needs further testing.

No input. This setting needs further testing.

This setting may correspond to PickupBias, BlockBias, and OvertakeBias. It is possible that this setting could tell the car how often it should use these setting. Assuming, higher numbers make the car more aggressive, and lower numbers make the car more passive. This setting needs further testing.

Additional AI notes: If a car has less than 2 wheels on the ground, the AI will not defer to the 'Car AI Details' section. In this case, the car will refer to the track's AI. Thus, if your car is a motorcycle with only 2 wheels, the car will only use the AI settings which the track tells the car, and not the AI Details.