Page 1 of 3

Make Bots Use Vehicle More Often?

Posted: Wed Nov 20, 2013 7:23 pm
by Swaffy
My bots aren't using halftracks as much as I'd like them to. They seem to choose scout cars more (makes sense because they're faster), but APCs are safer for them. My knowledge about how bots make choices is small, so any help would be appreciated.

Or a link would work as well. My searches didn't come up with anything too helpful.

Re: Make Bots Use Vehicle More Often?

Posted: Wed Nov 20, 2013 9:37 pm
by BotHunter
I've never met anyone who cared about the well-being of their bots! :)

Re: Make Bots Use Vehicle More Often?

Posted: Wed Nov 20, 2013 11:34 pm
by Swaffy
BotHunter wrote:I've never met anyone who cared about the well-being of their bots! :)
Well, APCs also have guns on them so they'd be a bit tougher, instead of being in a cannon fodder mobile. XD

Re: Make Bots Use Vehicle More Often?

Posted: Wed Nov 20, 2013 11:51 pm
by Vilespring
Swaffy wrote:Well, APCs also have guns on them so they'd be a bit tougher, instead of being in a cannon fodder mobile. XD
AI template trade?

Re: Make Bots Use Vehicle More Often?

Posted: Thu Nov 21, 2013 6:30 pm
by Swaffy
Thanks for helping, man.

... Vehicles/Land/M3A1/AI/Objects.con

Code: Select all

rem *** Plugins ***
aiTemplatePlugIn.create Mobile M3A1Mobile
aiTemplatePlugIn.vehicleNumber 0
aiTemplatePlugIn.maxSpeed 15.0
aiTemplatePlugIn.turnRadius 25.0
aiTemplatePlugIn.coverSearchRadius 50.0
aiTemplatePlugIn.lodHeight 1.35

rem *** Plugins ***
aiTemplatePlugIn.create Unit M3A1Unit
aiTemplatePlugIn.setStrategicStrength 0 1
aiTemplatePlugIn.setStrategicStrength 1 0
aiTemplatePlugIn.equipmentType 6

aiTemplatePlugIn.create Physical M3A1Physical
aiTemplatePlugIn.setStrType LightArmour
rem aiTemplatePlugIn.strType LightArmour

aiTemplatePlugIn.create ControlInfo M3A1Ctrl
aiTemplatePlugIn.driveTurnControl           PIYaw
aiTemplatePlugIn.driveThrottleControl       PIThrottle
aiTemplatePlugIn.aimHorizontalControl       PIYaw
aiTemplatePlugIn.aimVerticalControl         PIMouseLookY
aiTemplatePlugIn.lookHorizontalControl      PIYaw
aiTemplatePlugIn.lookVerticalControl        PIMouseLookY
aiTemplatePlugIn.throttleSensitivity       -1.0
rem aiTemplatePlugIn.pitchSensitivity           0.021817
rem aiTemplatePlugIn.rollSensitivity           -0.021817
aiTemplatePlugIn.pitchSensitivity           0.21817
aiTemplatePlugIn.rollSensitivity           -0.21817
aiTemplatePlugIn.yawSensitivity            -2.5
rem aiTemplatePlugIn.lookVerticalSensitivity    0.021817
rem aiTemplatePlugIn.lookHorizontalSensitivity -0.021817
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                 1.0
aiTemplatePlugIn.rollScale                  1.0
aiTemplatePlugIn.yawScale                   0.0020
aiTemplatePlugIn.lookVerticalScale          1.0
aiTemplatePlugIn.lookHorizontalScale        1.0
aiTemplatePlugIn.maxSpeedBumpinessFallOff   0.01
aiTemplatePlugIn.setCameraRelativeMinRotationDeg 0/0/0
aiTemplatePlugIn.setCameraRelativeMaxRotationDeg 0/0/0


rem *** AITemplate ***
aiTemplate.create M3A1
aiTemplate.addType ITBiological
aiTemplate.addType ITUnit
aiTemplate.addType ITMobile
aiTemplate.addType ITGround
aiTemplate.addType ITObstructedView
aiTemplate.degeneration 20
aiTemplate.allowedTimeDiff 1
aiTemplate.basicTemp 7
aiTemplate.commonKnowledge 0
aiTemplate.addPlugIn M3A1Unit
aiTemplate.addPlugIn M3A1Mobile
aiTemplate.addPlugIn M3A1Ctrl
aiTemplate.addPlugIn M3A1Physical


rem  *** The turret mounted MG
rem **********************************************************************
rem **********************************************************************

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

aiTemplatePlugIn.create Unit M3A1TopMgUnit
aiTemplatePlugIn.equipmentType 4
aiTemplatePlugIn.setStrategicStrength 0 1
aiTemplatePlugIn.setStrategicStrength 1 1
aiTemplatePlugIn.setSelectKey PIMenuSelect2
aiTemplatePlugIn.setHasExposedSoldier 1

aiTemplatePlugIn.create ControlInfo M3A1TopMgCtrl
aiTemplatePlugIn.driveTurnControl           PIYaw
aiTemplatePlugIn.driveThrottleControl       PIThrottle
aiTemplatePlugIn.aimHorizontalControl       PIMouseLookX
aiTemplatePlugIn.aimVerticalControl         PIMouseLookY
aiTemplatePlugIn.lookHorizontalControl      PIMouseLookX
aiTemplatePlugIn.lookVerticalControl        PIMouseLookY
aiTemplatePlugIn.throttleSensitivity       -1.0
rem aiTemplatePlugIn.pitchSensitivity           0.021817
rem aiTemplatePlugIn.rollSensitivity           -0.021817
aiTemplatePlugIn.pitchSensitivity           0.21817
aiTemplatePlugIn.rollSensitivity           -0.21817
aiTemplatePlugIn.yawSensitivity            -2.5
rem aiTemplatePlugIn.lookVerticalSensitivity    0.021817
rem aiTemplatePlugIn.lookHorizontalSensitivity -0.021817
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                   0.0020
aiTemplatePlugIn.lookVerticalScale          1.0
aiTemplatePlugIn.lookHorizontalScale        1.0
rem aiTemplatePlugIn.setCameraRelativeMinRotationDeg -360/-45/0
rem aiTemplatePlugIn.setCameraRelativeMaxRotationDeg 360/20/0
aiTemplatePlugIn.setCameraRelativeMinRotationDeg -360/-20/0
aiTemplatePlugIn.setCameraRelativeMaxRotationDeg 360/45/0


rem *** AITemplate ***
aiTemplate.create M3A1TopMG
aiTemplate.addType ITUnit
aiTemplate.addType ITBiological
aiTemplate.addType ITGround
aiTemplate.degeneration 20
aiTemplate.allowedTimeDiff 1
aiTemplate.basicTemp 5
aiTemplate.commonKnowledge 0
aiTemplate.secondary 1
aiTemplate.addPlugIn M3A1TopMgArms
aiTemplate.addPlugIn M3A1TopMgUnit
aiTemplate.addPlugIn M3A1TopMgCtrl

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



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

rem *** Plugins ***

aiTemplatePlugIn.create Unit M3A1Passenger3Unit
aiTemplatePlugIn.equipmentType 8
aiTemplatePlugIn.setStrategicStrength 0 1
aiTemplatePlugIn.setStrategicStrength 1 0
aiTemplatePlugIn.setSelectKey PIMenuSelect3

aiTemplatePlugIn.create ControlInfo M3A1Passenger3Ctrl
aiTemplatePlugIn.driveTurnControl           PIYaw
aiTemplatePlugIn.driveThrottleControl       PIThrottle
aiTemplatePlugIn.aimHorizontalControl       PIMouseLookX
aiTemplatePlugIn.aimVerticalControl         PIMouseLookY
aiTemplatePlugIn.lookHorizontalControl      PIMouseLookX
aiTemplatePlugIn.lookVerticalControl        PIMouseLookY
aiTemplatePlugIn.throttleSensitivity       -1.0
rem aiTemplatePlugIn.pitchSensitivity           0.021817
rem aiTemplatePlugIn.rollSensitivity           -0.021817
aiTemplatePlugIn.pitchSensitivity           0.21817
aiTemplatePlugIn.rollSensitivity           -0.21817
aiTemplatePlugIn.yawSensitivity            -2.5
rem aiTemplatePlugIn.lookVerticalSensitivity    0.021817
rem aiTemplatePlugIn.lookHorizontalSensitivity -0.021817
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                   0.0020
aiTemplatePlugIn.lookVerticalScale          1.0
aiTemplatePlugIn.lookHorizontalScale        1.0
aiTemplatePlugIn.setCameraRelativeMinRotationDeg -90/0/0
aiTemplatePlugIn.setCameraRelativeMaxRotationDeg 90/0/0


rem *** AITemplate ***
aiTemplate.create M3A1Passenger3
aiTemplate.addType ITUnit
aiTemplate.addType ITBiological
aiTemplate.addType ITGround
aiTemplate.addType ITObstructedView
aiTemplate.degeneration 20
aiTemplate.allowedTimeDiff 1
aiTemplate.basicTemp 4
aiTemplate.commonKnowledge 0
aiTemplate.secondary 1
aiTemplate.addPlugIn M3A1Passenger3Unit
aiTemplate.addPlugIn M3A1Passenger3Ctrl

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

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

rem *** Plugins ***

aiTemplatePlugIn.create Unit M3A1Passenger4Unit
aiTemplatePlugIn.equipmentType 8
aiTemplatePlugIn.setStrategicStrength 0 1
aiTemplatePlugIn.setStrategicStrength 1 0
aiTemplatePlugIn.setSelectKey PIMenuSelect4

aiTemplatePlugIn.create ControlInfo M3A1Passenger4Ctrl
aiTemplatePlugIn.driveTurnControl           PIYaw
aiTemplatePlugIn.driveThrottleControl       PIThrottle
aiTemplatePlugIn.aimHorizontalControl       PIMouseLookX
aiTemplatePlugIn.aimVerticalControl         PIMouseLookY
aiTemplatePlugIn.lookHorizontalControl      PIMouseLookX
aiTemplatePlugIn.lookVerticalControl        PIMouseLookY
aiTemplatePlugIn.throttleSensitivity       -1.0
rem aiTemplatePlugIn.pitchSensitivity           0.021817
rem aiTemplatePlugIn.rollSensitivity           -0.021817
aiTemplatePlugIn.pitchSensitivity           0.21817
aiTemplatePlugIn.rollSensitivity           -0.21817
aiTemplatePlugIn.yawSensitivity            -2.5
rem aiTemplatePlugIn.lookVerticalSensitivity    0.021817
rem aiTemplatePlugIn.lookHorizontalSensitivity -0.021817
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                   0.0020
aiTemplatePlugIn.lookVerticalScale          1.0
aiTemplatePlugIn.lookHorizontalScale        1.0
aiTemplatePlugIn.setCameraRelativeMinRotationDeg -90/0/0
aiTemplatePlugIn.setCameraRelativeMaxRotationDeg 90/0/0

rem *** AITemplate ***
aiTemplate.create M3A1Passenger4
aiTemplate.addType ITUnit
aiTemplate.addType ITBiological
aiTemplate.addType ITGround
aiTemplate.degeneration 15
aiTemplate.allowedTimeDiff 2
aiTemplate.basicTemp 4
aiTemplate.commonKnowledge 0
aiTemplate.secondary 1
aiTemplate.addPlugIn M3A1Passenger4Unit
aiTemplate.addPlugIn M3A1Passenger4Ctrl

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

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

rem *** Plugins ***

aiTemplatePlugIn.create Unit M3A1Passenger5Unit
aiTemplatePlugIn.equipmentType 8
aiTemplatePlugIn.setStrategicStrength 0 1
aiTemplatePlugIn.setStrategicStrength 1 0
aiTemplatePlugIn.setSelectKey PIMenuSelect5

aiTemplatePlugIn.create ControlInfo M3A1Passenger5Ctrl
aiTemplatePlugIn.driveTurnControl           PIYaw
aiTemplatePlugIn.driveThrottleControl       PIThrottle
aiTemplatePlugIn.aimHorizontalControl       PIMouseLookX
aiTemplatePlugIn.aimVerticalControl         PIMouseLookY
aiTemplatePlugIn.lookHorizontalControl      PIMouseLookX
aiTemplatePlugIn.lookVerticalControl        PIMouseLookY
aiTemplatePlugIn.throttleSensitivity       -1.0
rem aiTemplatePlugIn.pitchSensitivity           0.021817
rem aiTemplatePlugIn.rollSensitivity           -0.021817
aiTemplatePlugIn.pitchSensitivity           0.21817
aiTemplatePlugIn.rollSensitivity           -0.21817
aiTemplatePlugIn.yawSensitivity            -2.5
rem aiTemplatePlugIn.lookVerticalSensitivity    0.021817
rem aiTemplatePlugIn.lookHorizontalSensitivity -0.021817
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                   0.0020
aiTemplatePlugIn.lookVerticalScale          1.0
aiTemplatePlugIn.lookHorizontalScale        1.0
aiTemplatePlugIn.setCameraRelativeMinRotationDeg -90/0/0
aiTemplatePlugIn.setCameraRelativeMaxRotationDeg 90/0/0

rem *** AITemplate ***
aiTemplate.create M3A1Passenger5
aiTemplate.addType ITUnit
aiTemplate.addType ITBiological
aiTemplate.addType ITGround
aiTemplate.degeneration 15
aiTemplate.allowedTimeDiff 2
aiTemplate.basicTemp 4
aiTemplate.commonKnowledge 0
aiTemplate.secondary 1
aiTemplate.addPlugIn M3A1Passenger5Unit
aiTemplate.addPlugIn M3A1Passenger5Ctrl

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

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

rem *** Plugins ***

aiTemplatePlugIn.create Unit M3A1Passenger6Unit
aiTemplatePlugIn.equipmentType 8
aiTemplatePlugIn.setStrategicStrength 0 1
aiTemplatePlugIn.setStrategicStrength 1 0
aiTemplatePlugIn.setSelectKey PIMenuSelect6

aiTemplatePlugIn.create ControlInfo M3A1Passenger6Ctrl
aiTemplatePlugIn.driveTurnControl           PIYaw
aiTemplatePlugIn.driveThrottleControl       PIThrottle
aiTemplatePlugIn.aimHorizontalControl       PIMouseLookX
aiTemplatePlugIn.aimVerticalControl         PIMouseLookY
aiTemplatePlugIn.lookHorizontalControl      PIMouseLookX
aiTemplatePlugIn.lookVerticalControl        PIMouseLookY
aiTemplatePlugIn.throttleSensitivity       -1.0
rem aiTemplatePlugIn.pitchSensitivity           0.021817
rem aiTemplatePlugIn.rollSensitivity           -0.021817
aiTemplatePlugIn.pitchSensitivity           0.21817
aiTemplatePlugIn.rollSensitivity           -0.21817
aiTemplatePlugIn.yawSensitivity            -2.5
rem aiTemplatePlugIn.lookVerticalSensitivity    0.021817
rem aiTemplatePlugIn.lookHorizontalSensitivity -0.021817
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                   0.0020
aiTemplatePlugIn.lookVerticalScale          1.0
aiTemplatePlugIn.lookHorizontalScale        1.0
aiTemplatePlugIn.setCameraRelativeMinRotationDeg -90/0/0
aiTemplatePlugIn.setCameraRelativeMaxRotationDeg 90/0/0

rem *** AITemplate ***
aiTemplate.create M3A1Passenger6
aiTemplate.addType ITUnit
aiTemplate.addType ITBiological
aiTemplate.addType ITGround
aiTemplate.degeneration 15
aiTemplate.allowedTimeDiff 2
aiTemplate.basicTemp 4
aiTemplate.commonKnowledge 0
aiTemplate.secondary 1
aiTemplate.addPlugIn M3A1Passenger6Unit
aiTemplate.addPlugIn M3A1Passenger6Ctrl

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

Re: Make Bots Use Vehicle More Often?

Posted: Thu Nov 21, 2013 11:05 pm
by Vilespring
Wait...
There is a fix for that?!?!
I need it!
This is my painful re-build of a bot's mind..
Random Bot wrote:I'm in a (derp) tank driving back-and-forth in front of a bridge (derp) in Market Garden because I cannot see the bridge (derp).
OH LOOK A JEEP! :D
(gets out of the 100% tank and enters a 10% jeep)
now that I'm in a (derp) jeep, I'm gonna ram (derp) this tank!
repeat.

Re: Make Bots Use Vehicle More Often?

Posted: Thu Nov 21, 2013 11:30 pm
by Swaffy
I thought you were going to look at the code to see what's wrong. Dangit!

Re: Make Bots Use Vehicle More Often?

Posted: Mon Dec 30, 2013 10:46 pm
by takiwa
your problem is this:

aiTemplatePlugIn.setStrategicStrength 0 1
aiTemplatePlugIn.setStrategicStrength 1 0

the first line sets the Strategic Strength of the vehicle for offense (boolean=0), the second line sets it for defense (boolean=1). Reading your code, you have an offensive strategic strength of 1, and a defensive strength of 0.

The second coding issue is with your basictemp:

aiTemplate.degeneration 20
aiTemplate.allowedTimeDiff 1
aiTemplate.basicTemp 7

The first of these lines tells the bots that he will forget about the halftrack 20 secs after he can no longer see it. The second line tells the game how often to update the bots information about the vehicle while he can see it (in this case, every second). The last line sets a relative temp for the vehicle, in comparison to other vehicles on the map.

By raising your strategicstrength values, and raising the vehicles basictemp, you will put priority on that vehicle, and it becomes a better option for the bot to enter. But both of these values are relative to all other vehicles present. In my mods, I have tried to keep all offensive vehicles at:

aiTemplatePlugIn.setStrategicStrength 0 3
aiTemplatePlugIn.setStrategicStrength 1 3

and:

aiTemplate.degeneration 15
aiTemplate.allowedTimeDiff 2
aiTemplate.basicTemp 10

With this, the bot thinks less about vehicles he can't see, updates info every other sec on vehicles he can see (allowing his strategies to pan out, thus he makes better decisions about what to drive), and with all major offensive vehicles set with a basictemp of 10, they all become equally good choices. With Willys/Kubelwagens/BlackMedals, etc., I set everything at:

aiTemplatePlugIn.setStrategicStrength 0 2
aiTemplatePlugIn.setStrategicStrength 1 2

and:

aiTemplate.degeneration 15
aiTemplate.allowedTimeDiff 2
aiTemplate.basicTemp 8

This way they are less likely to take a car for an offensive strategy, but will still get in them over the option of running to a flag on foot.

But again, all these numbers are relative to any and all of the other temperatures in the world, so it's very hard to code one specific vehicle for a bot when he is going to measure that code against everything else on the map. Coding vehicle for AI is not a single vehicle job, unfortunately.

Hope this helps.

Re: Make Bots Use Vehicle More Often?

Posted: Tue Dec 31, 2013 12:57 am
by Vilespring
My god, you've been modding a lot, a new guy to the forms who is not new to the concept of BF modding! :lol:
I salute you sir!
o7

but one thing, doesn't the second line in this,

Code: Select all

aiTemplatePlugIn.setStrategicStrength 0 1
aiTemplatePlugIn.setStrategicStrength 1 0
cancel out the first line?

Re: Make Bots Use Vehicle More Often?

Posted: Tue Dec 31, 2013 2:01 am
by takiwa
Vilespring wrote:My god, you've been modding a lot, a new guy to the forms who is not new to the concept of BF modding! :lol:
I salute you sir!
o7

but one thing, doesn't the second line in this,

Code: Select all

aiTemplatePlugIn.setStrategicStrength 0 1
aiTemplatePlugIn.setStrategicStrength 1 0
cancel out the first line?
I'm one of the old devs...worked with Merciless Creations, FH, XWWII, BG42, my own mod WarFront, and then BGF on BF2...so I guess I know a few things ;)

the first line sets up offense, the second, defense...

aiTemplatePlugIn.setStrategicStrength 0 (=offense) 1 (=Strategic value in relation to all other vehicles on the map)
aiTemplatePlugIn.setStrategicStrength 1 (=defense) 0 (=Strategic value in relation to all other vehicles on the map)

In this code, he has set a value of 1 for the offensive straval of the halftrack, and a defensive straval value of 0...meaning the bots won't use this at all when they are performing any strategy involving a defensive plan, and very rarely on offense unless no other vehicle is available...and even then they may just choose to run :)