This page is under construction
Archives/bf1942/levels/Invasion_of_the_Philippines.rfa
bf1942/levels/Invasion_of_the_Philippines/AI.con
if v_arg1 == host

console.useRelativePaths 0

rem **** This line is really important, it forces the AITemplates information to be loaded! ****
game.isAiLevel 1

aiSettings.setNSides 2

run bf1942/game/AI/Conditions.con v_arg1
run bf1942/game/AI/Prerequisites.con v_arg1
run bf1942/game/AI/Strategies.con v_arg1

aiSettings.setMaxNBots 1
aiSettings.createLODManager 200 2
aiSettings.lodEnable 1

run bf1942/game/AI/radio.con v_arg1

game.showAIStats 0
game.autoSpawnBots 1

console.useRelativePaths 1

aiSettings.setNBehaviours 0
aiSettings.setNVehiclesTypes 0
aiSettings.setBasicBotWeights UnitWeights
aiSettings.setStandardPersonality StandardWeights 1
aiSettings.setStandardPersonality StandardWeights 2
aiSettings.setStandardMoralAdmin default 1
aiSettings.setStandardMoralAdmin default 2

aiStrategy.setTreeModifier TTNFriendGroundFixed 2.0
aiStrategy.setTreeModifierCombatStrength TTNFriendGroundFixed All 2.0
aiStrategy.setTreeModifierCombatStrength TTNHostileGround All 5.0

aiSettings.setWorldMapSize 2048 2048
aiSettings.setViewDistance 1024
aiSettings.setInformationGridDimension 32

ai.init 2

AIBotManager.setLodLevelTicks 6 6 6
AIBotManager.setLodLevelPriority 6 4 2
AIBotManager.setPlannedDecisionMakingThreshold 0.5 1.0 3.0
AIBotManager.setUnplannedDecisionMakingThreshold 0.3 0.8 2.0
AIBotManager.setDecisionMakingInterleave 2 2
AIBotManager.setSensingQuotient 2 1
AIBotManager.setSystemQuotient 30 40 30

ai.saiMapXDimension 64
ai.saiMapYDimension 64

ai.createSAI

ai.saiEnable 1
game.showAIstats 0

ai.botStatisticUpdateSpeed 3

aiStrategicArea.create test 0/0 1/1 1

aiStrategy.createConstantCondition ChickenKeeperCondition Crisp EqualGreater Enemy ControlPoint 0
aiStrategy.setConditionStrength Required

aiStrategy.createPrerequisite ChickenKeeperPrerequisite
aiStrategy.addCondition ChickenKeeperCondition 10.0

aiStrategy.createStrategy ChickenKeeperStrategy
aiStrategy.setPrerequisite ChickenKeeperPrerequisite

ai.addSAIStrategy 1 ChickenKeeperStrategy
ai.addSAIStrategy 2 ChickenKeeperStrategy

endif

game.addFirstNameOnTeam 1 [BOT]
game.addSecondNameOnTeam 1 Announcer
game.addFirstNameOnTeam 2 [BOT]
game.addSecondNameOnTeam 2 Announcer