You can add bots to any of the modes including objective (there was an thread on it around here that dates back to the old ssm modding days), but you do not need to spawn bots into an object to have it attacked by other bots. All you need to do is add
ITTargetTemperature to the objects AI template and set the defending team:
ObjectTemplate.active Chi-he
aiTemplate.addType ITTargetTemperature
ObjectTemplate.create ObjectSpawner japhtankspawner
ObjectTemplate.setObjectTemplate 2 none
ObjectTemplate.setObjectTemplate 1 chi-he
ObjectTemplate.MinSpawnDelay 50
ObjectTemplate.MaxSpawnDelay 60
ObjectTemplate.SpawnDelayAtStart 0
ObjectTemplate.TimeToLive 45
ObjectTemplate.Distance 40
ObjectTemplate.DamageWhenLost 4
ObjectTemplate.teamOnVehicle 1
ObjectTemplate.maxNrOfObjectSpawned 1
Object.create japhtankspawner
Object.absolutePosition 1600.22/47.1/2603.48
Object.rotation -153.45/0/0
Object.setTeam 1
Because the objectives do not have AI templates written, you need to create new templates in order for the bots to attack them. Here's a generic one i use for most objectives:
aiTemplatePlugIn.create Unit V2RKTUnit
aiTemplatePlugIn.equipmentType 8
aiTemplatePlugIn.setStrategicStrength 0 9
aiTemplatePlugIn.setStrategicStrength 1 9
rem aiTemplatePlugIn.setHasExposedSoldier 1
rem aiTemplatePlugIn.setUseNoPathfindingToGetToObject 1
aiTemplatePlugIn.create Cover V2RKTCover
aiTemplatePlugIn.coverValue 60.0
aiTemplatePlugIn.create Physical V2RKTPhysical
aiTemplatePlugIn.setStrType HeavyArmour
aiTemplatePlugIn.create ControlInfo V2RKTCtrl
aiTemplatePlugIn.driveTurnControl PINone
aiTemplatePlugIn.driveThrottleControl PINone
aiTemplatePlugIn.aimHorizontalControl PIMouseLookX
aiTemplatePlugIn.aimVerticalControl PIMouseLookY
aiTemplatePlugIn.lookHorizontalControl PIMouseLookX
aiTemplatePlugIn.lookVerticalControl PIMouseLookY
aiTemplatePlugIn.throttleSensitivity -1.0
aiTemplatePlugIn.pitchSensitivity 0.21817
aiTemplatePlugIn.rollSensitivity -0.21817
aiTemplatePlugIn.yawSensitivity -2.5
aiTemplatePlugIn.lookVerticalSensitivity 0.21817
aiTemplatePlugIn.lookHorizontalSensitivity -0.21817
aiTemplatePlugIn.throttleLookAhead 1.0
aiTemplatePlugIn.pitchLookAhead 1.0
aiTemplatePlugIn.rollLookAhead 1.0
aiTemplatePlugIn.yawLookAhead 1.0
aiTemplatePlugIn.lookVerticalLookAhead 1.0
aiTemplatePlugIn.lookHorizontalLookAhead 1.0
aiTemplatePlugIn.throttleScale 1.0
rem *** Angle in radians ***
aiTemplatePlugIn.pitchScale 5.0
aiTemplatePlugIn.rollScale 5.0
aiTemplatePlugIn.yawScale 2.0
aiTemplatePlugIn.lookVerticalScale 1.0
aiTemplatePlugIn.lookHorizontalScale 1.0
rem aiTemplatePlugIn.setCameraRelativeMinRotationDeg 0/0/0
rem aiTemplatePlugIn.setCameraRelativeMaxRotationDeg 0/0/0
rem *** AITemplate ***
aiTemplate.create V2RKTAI
aiTemplate.addType ITUnit
aiTemplate.addType ITGround
aiTemplate.addType ITFixed
aiTemplate.addType ITCover
aiTemplate.addType ITTargetTemperature
aiTemplate.degeneration 50
aiTemplate.allowedTimeDiff 2
aiTemplate.basicTemp 200
aiTemplate.commonKnowledge 0
aiTemplate.addPlugIn V2RKTUnit
aiTemplate.addPlugIn V2RKTCover
aiTemplate.addPlugIn V2RKTPhysical
aiTemplate.addPlugIn V2RKTCtrl
ObjectTemplate.active Rat_NorthFactory
ObjectTemplate.aiTemplate V2RKTAI
ObjectTemplate.active Rat_SouthFactory
ObjectTemplate.aiTemplate V2RKTAI
Don't forget to set the teams in ObjectiveSpawnerTemplates.con:
ObjectTemplate.create DestroyTargetObjective DestroyFactory02
ObjectTemplate.setNetworkableInfo ObjectiveInfo
ObjectTemplate.setTargetName Factory01
ObjectTemplate.ObjectiveName Rat_NorthFactory
ObjectTemplate.setObjectiveDelay 1.0
ObjectTemplate.setTeam 1
ObjectTemplate.create DestroyTargetObjective DestroyFactory03
ObjectTemplate.setNetworkableInfo ObjectiveInfo
ObjectTemplate.setTargetName Factory02
ObjectTemplate.ObjectiveName Rat_SouthFactory
ObjectTemplate.setObjectiveDelay 1.0
ObjectTemplate.setTeam 1
Edit: Here is a link to a BFSP thread where i posted my FHSW Operation Rattrap SSM extension. Everything you need to know about adding bots to a mode (objective in this case) is in there. Let me know if ther'es anything i can do to clarify.
Matt
http://www.battlefieldsingleplayer.com/ ... 5&start=15
Edit 2: This Hellendoorn map extension adds AI to objective mode server side: