This page is under construction
archives/bf1942/levels/mario_fever.rfa
bf1942/levels/mario_fever/Objects/Vehicles/DroneTower/AI.inc
aiTemplatePlugIn.create Unit DroneTowerUnit
aiTemplatePlugIn.equipmentType 4
aiTemplatePlugIn.setStrategicStrength 0 1
aiTemplatePlugIn.setStrategicStrength 1 3
aiTemplatePlugIn.setHasExposedSoldier 0
aiTemplatePlugIn.setUseNoPathfindingToGetToObject 1

aiTemplatePlugIn.create Armament DroneTowerArmament
aiTemplatePlugIn.setIsAntiAircraft 1

aiTemplatePlugIn.create Physical DroneTowerPhysical
aiTemplatePlugIn.setStrType LightArmour

aiTemplatePlugIn.create ControlInfo DroneTowerCtrl
aiTemplatePlugIn.driveTurnControl PIYaw
aiTemplatePlugIn.driveThrottleControl PIThrottle
aiTemplatePlugIn.aimHorizontalControl PIMouseLookX
aiTemplatePlugIn.aimVerticalControl PIMouseLookY
aiTemplatePlugIn.lookHorizontalControl PIMouseLookX
aiTemplatePlugIn.lookVerticalControl PIMouseLookY
aiTemplatePlugIn.throttleSensitivity -1
aiTemplatePlugIn.pitchSensitivity 0.21817
aiTemplatePlugIn.rollSensitivity -0.21817
aiTemplatePlugIn.yawSensitivity -2.5
aiTemplatePlugIn.lookVerticalSensitivity 0.21817
aiTemplatePlugIn.lookHorizontalSensitivity -0.21817
aiTemplatePlugIn.throttleLookAhead 1
aiTemplatePlugIn.pitchLookAhead 1
aiTemplatePlugIn.rollLookAhead 1
aiTemplatePlugIn.yawLookAhead 1
aiTemplatePlugIn.lookVerticalLookAhead 1
aiTemplatePlugIn.lookHorizontalLookAhead 1
aiTemplatePlugIn.throttleScale 1
aiTemplatePlugIn.pitchScale 5
aiTemplatePlugIn.rollScale 5
aiTemplatePlugIn.yawScale 0.002
aiTemplatePlugIn.lookVerticalScale 1
aiTemplatePlugIn.lookHorizontalScale 1
aiTemplatePlugIn.setCameraRelativeMinRotationDeg -360/-60/0
aiTemplatePlugIn.setCameraRelativeMaxRotationDeg 360/68/0

aiTemplate.create DroneTower
aiTemplate.addType ITUnit
aiTemplate.addType ITGround
aiTemplate.addType ITFixed
aiTemplate.addType ITObstructedView
aiTemplate.degeneration 20
aiTemplate.allowedTimeDiff 3
aiTemplate.basicTemp 15
aiTemplate.commonKnowledge 0
aiTemplate.addPlugIn DroneTowerUnit
aiTemplate.addPlugIn DroneTowerPhysical
aiTemplate.addPlugIn DroneTowerArmament
aiTemplate.addPlugIn DroneTowerCtrl

weaponTemplate.create DroneTowerGun
weaponTemplate.burst 1
weaponTemplate.indirect 0
weaponTemplate.minRange 0
weaponTemplate.maxRange 256
weaponTemplate.useAimerOnly 1
weaponTemplate.weaponActivate PINone
weaponTemplate.weaponFire PIFire
weaponTemplate.setStrength Infantry 10
weaponTemplate.setStrength LightArmour 5
weaponTemplate.setStrength HeavyArmour 2
weaponTemplate.setStrength NavalArmour 0
weaponTemplate.setStrength Submarine 0
weaponTemplate.setStrength Air 7