Class_name = "CPhysPlatformRadioTurretAI"
object_name = "CTurretRadioAI"

//////	Controller specific
Artificial=true;

ControlledType="GOT_VEHICLE_TURRET";

// formula for calculating the aiming error zone

// calculation formula
// error_along_axis (meters) = tan(
// random_number * (AddCoef + ProjSpeedCoef * speed_difference_in_the_sight_plane (in meters per second) )
// * (current_overload * OverloadCoef + CoefLow/Hi/Ace)
// )
// * distance_to_target;
// random_number is a number from -1.0 to 1.0
// tan is the tangent. depending on the tangent of the error angle and the distance to the target, the final zone is obtained

// coefficient of conversion of the difference in the speed of the object on which the turret stands and the target, in the aiming plane, into the error angles
ProjSpeedCoef = 0.01f;

// default aiming error rate
AddCoef = 0.01f;

//            
MaxBotOverload = 8.0f;

//      
OverloadCoef = 0.1f;

// coefficients for the dependence of the final shooting area on the AI level
CoefLow		= 4.5f;
CoefMed		= 3.0f;
CoefHigh	= 2.5f;
CoefAce		= 1.0f;

//            
//       
ErrorCircleTime = 4.0f;
ErrorChangeTime = 2.0f;

//       ,      
MaxWaitTime = 1.5f;	

// ,             
GroundTargetErrorCoeff = 0.1f;

// ,            
BalloonTargetErrorCoeff = 0.1f;

//   -  ,    
FireShootTimeMin = 2.0f;
FireShootTimeMax = 3.0f;

FireWaitTimeMin = 1.0f;
FireWaitTimeMax = 2.0f;

//   ,    ,   -    
//      ,   Low    400     -  ,   ..

MaxSearchTime  = 8.0f;

SearchDistanceLow   = 0.813f;
SearchDistanceMed   = 0.933f;
SearchDistanceHigh  = 1.066f;
SearchDistanceAce   = 1.066f;

SearchDistanceMinLow   = 0.733f;
SearchDistanceMinMed   = 0.813f;
SearchDistanceMinHigh  = 1.000f;
SearchDistanceMinAce   = 1.000f;

SearchDistanceAttackBalloon				= 400.0f;
SearchDistanceAttackGround				= 300.0f;
SearchDistanceShort						= 0.7;
SearchDistanceMedium					= 2.0;
BackFire3DAngle							= 30.0;
BackFireDistance						= 400.0;
BackFirePlanePriorityType				= 2;
BackFireResetToDefaultTime				= 10.0;

StartAimErrLow = 0.48;	//Initial bracketing aim error (reduced twice with each shot)
StartAimErrMed = 0.24;
StartAimErrHigh = 0.12;
StartAimErrAce = 0.12;

KvSide = 0.5;	//Modifier for side bracketing

TargetRecognitionDelayLow = 15.0	//Delay before start to aim to a new target at 1000m range
TargetRecognitionDelayMed = 8.0
TargetRecognitionDelayHigh = 5.0
TargetRecognitionDelayAce = 3.0