This page is under construction
Archives/bf1942/levels/DC_Urban_Siege.rfa
bf1942/levels/DC_Urban_Siege/objects/KA52/Ai/Objects.con
rem *** Plugins ***
aiTemplatePlugIn.create Cover KA52Cover
aiTemplatePlugIn.coverValue 2.0

aiTemplatePlugIn.create Physical KA52Physical
aiTemplatePlugIn.setStrType Air

aiTemplatePlugIn.create Unit KA52Unit
aiTemplatePlugIn.equipmentType 18
aiTemplatePlugIn.setStrategicStrength 0 7
aiTemplatePlugIn.setStrategicStrength 1 3

aiTemplatePlugIn.create ControlInfo3d KA52Ctrl
aiTemplatePlugIn.driveTurnControl PIYaw
aiTemplatePlugIn.driveThrottleControl PIThrottle
aiTemplatePlugIn.aimHorizontalControl PIYaw
aiTemplatePlugIn.aimVerticalControl PIPitch
aiTemplatePlugIn.driveRollControl PIRoll
aiTemplatePlugIn.drivePitchControl PIPitch
rem aiTemplatePlugIn.aimRollControl PIRoll
aiTemplatePlugIn.aimRollControl PIYaw
aiTemplatePlugIn.aimThrottleControl PIThrottle

aiTemplatePlugIn.throttleSensitivity -0.28
aiTemplatePlugIn.pitchSensitivity 0.28
aiTemplatePlugIn.rollSensitivity 0.28
aiTemplatePlugIn.yawSensitivity -0.28
aiTemplatePlugIn.throttleLookAhead 0.4
aiTemplatePlugIn.pitchLookAhead 0.3
aiTemplatePlugIn.rollLookAhead 0.2
aiTemplatePlugIn.yawLookAhead 0.1
aiTemplatePlugIn.throttleScale 0.6
rem *** Angle in radians ***
aiTemplatePlugIn.pitchScale 0.0010
aiTemplatePlugIn.rollScale 0.0010
aiTemplatePlugIn.yawScale 0.0060
aiTemplatePlugIn.maxRollAngle 0.0016
aiTemplatePlugIn.maxClimbAngle -0.0213

aiTemplatePlugIn.create Mobile KA52Mobile
aiTemplatePlugIn.vehicleNumber -1
aiTemplatePlugIn.maxSpeed 40.0
aiTemplatePlugIn.turnRadius 25.0
aiTemplatePlugIn.avoidCollisionLookAhead 160.0

aiTemplatePlugIn.create Armament KA52Arms


rem *** AITemplate ***
aiTemplate.create KA52
aiTemplate.addType ITUnit
aiTemplate.addType ITMobile
aiTemplate.addType ITAir
aiTemplate.degeneration 5
aiTemplate.allowedTimeDiff 0.5
aiTemplate.basicTemp 18
aiTemplate.commonKnowledge 0
aiTemplate.addPlugIn KA52Unit
aiTemplate.addPlugIn KA52Cover
aiTemplate.addPlugIn KA52Physical
aiTemplate.addPlugIn KA52Ctrl
aiTemplate.addPlugIn KA52Mobile
aiTemplate.addPlugIn KA52Arms


rem *** The M230 Machine Cannon
rem *********************************************************************

rem sdc removed anitair to make ai focus down

rem *** Plugins ***
aiTemplatePlugIn.create Armament KA52AICopilotArms
rem aiTemplatePlugIn.setIsAntiAircraft 1

aiTemplatePlugIn.create Unit KA52AICopilotUnit
aiTemplatePlugIn.equipmentType 4
aiTemplatePlugIn.setStrategicStrength 0 7
aiTemplatePlugIn.setStrategicStrength 1 5
aiTemplatePlugIn.setSelectKey PIMenuSelect2

aiTemplatePlugIn.create ControlInfo KA52AICopilotCtrl
aiTemplatePlugIn.driveTurnControl PIYaw
aiTemplatePlugIn.driveThrottleControl PIThrottle
aiTemplatePlugIn.aimHorizontalControl PIMouseLookX
aiTemplatePlugIn.aimVerticalControl PIMouseLookY
aiTemplatePlugIn.lookHorizontalControl PIMouseLookX
aiTemplatePlugIn.lookVerticalControl PIMouseLookY
aiTemplatePlugIn.throttleSensitivity -1.0
aiTemplatePlugIn.pitchSensitivity 1.21817
aiTemplatePlugIn.rollSensitivity -0.21817
aiTemplatePlugIn.yawSensitivity -1.0
aiTemplatePlugIn.lookVerticalSensitivity 1.21817
aiTemplatePlugIn.lookHorizontalSensitivity -0.21817
aiTemplatePlugIn.throttleLookAhead 1.0
aiTemplatePlugIn.pitchLookAhead 2.0
aiTemplatePlugIn.rollLookAhead 2.0
aiTemplatePlugIn.yawLookAhead 2.0
aiTemplatePlugIn.lookVerticalLookAhead 2.0
aiTemplatePlugIn.lookHorizontalLookAhead 2.0
aiTemplatePlugIn.throttleScale 1.0
rem *** Angle in radians ***
aiTemplatePlugIn.pitchScale 5.0
aiTemplatePlugIn.rollScale 5.0
aiTemplatePlugIn.yawScale 2.020
aiTemplatePlugIn.lookVerticalScale 3.0
aiTemplatePlugIn.lookHorizontalScale 3.0
rem *** adjust Turret Rotation
aiTemplatePlugIn.setCameraRelativeMinRotationDeg -25/-15/0
aiTemplatePlugIn.setCameraRelativeMaxRotationDeg 25/15/0

rem *** AITemplate ***
aiTemplate.create KA52AICopilot
aiTemplate.addType ITUnit
aiTemplate.addType ITAir
aiTemplate.degeneration 5
aiTemplate.allowedTimeDiff 0.5
aiTemplate.basicTemp 24
aiTemplate.secondary 1
aiTemplate.commonKnowledge 0
aiTemplate.addPlugIn KA52AICopilotArms
aiTemplate.addPlugIn KA52AICopilotUnit
aiTemplate.addPlugIn KA52AICopilotCtrl


rem *********************************************************
rem *********************************************************