Page 1 of 1

bots in MBTs

Posted: 2014-01-30 08:13
by ballard_44
They kind of suck.
I mean no disrespect, because as someone who has dealt with trying to get bots to behave, I understand the difficulty.
But watching them on Kashan made me sad.

They just don't pull the trigger enough.
I sat on the hill in a MBT about 500 meters away from 4 MEC MBTs that were lining me up.
And lining me up.
And lining me up...

I think in the 4+ minutes I sat, they fired on me about 10 times total.
I was getting more heat from a BMP that was nearby them, then the MBTs.

But looking at the code I can understand why.
They have to be incredibly on target before they will fire.
But I believe I only took one hit out of the 10 shots they fired.

Code: Select all

rem *** Add gun ***

weaponTemplate.create tank_AP_ai
weaponTemplate.indirect 0
weaponTemplate.minRange 0.0
weaponTemplate.maxRange 1000.0
weaponTemplate.setStrength Infantry    0.0
weaponTemplate.setStrength LightArmour 0.0
weaponTemplate.setStrength HeavyArmour 900.0
weaponTemplate.setStrength NavalArmour 800.0
weaponTemplate.setStrength Helicopter  10.0
weaponTemplate.setStrength AirPlane    0.0
weaponTemplate.setFiresThroughTransparent 0
weaponTemplate.allowedDeviation 0.0
weaponTemplate.deviation 0.3
weaponTemplate.deviationCorrectionTime 0.15
weaponTemplate.setSoundSphereRadius    500.0

weaponTemplate.create tank_HE_ai
weaponTemplate.indirect 0
weaponTemplate.minRange 0.0
weaponTemplate.maxRange 500.0
weaponTemplate.setStrength Infantry    200.0
weaponTemplate.setStrength LightArmour 100.0
weaponTemplate.setStrength HeavyArmour 0.0
weaponTemplate.setStrength NavalArmour 0.0
weaponTemplate.setStrength Helicopter  0.0
weaponTemplate.setStrength AirPlane    0.0
weaponTemplate.setFiresThroughTransparent 0
weaponTemplate.allowedDeviation 0.3
weaponTemplate.deviationCorrectionTime 1
weaponTemplate.setExplosionRadius 1.0
weaponTemplate.setSoundSphereRadius    250.0

rem *** Extras ***

weaponTemplate.create mbt_atgm_ai
weaponTemplate.indirect 0
weaponTemplate.minRange 10.0
weaponTemplate.maxRange 750.0
weaponTemplate.WeaponFire PIFire
WeaponTemplate.WeaponActivate PIMenuSelect3
weaponTemplate.setStrength Infantry    0.0
weaponTemplate.setStrength LightArmour 0.0
weaponTemplate.setStrength HeavyArmour 1000.0
weaponTemplate.setStrength NavalArmour 800.0
weaponTemplate.setStrength Helicopter  0.0
weaponTemplate.setStrength Airplane    0.0
weaponTemplate.setFiresThroughTransparent 0
weaponTemplate.deviation 0.2
weaponTemplate.deviationCorrectionTime 0.1
weaponTemplate.setSoundSphereRadius  250.0
Also, looking at the code, the NavalArmour strength for the AP round and ATGM are conflicting..both at 800. It will confuse the bot.

A tank that uses a ATGM will use it on HeavyArmour every time over AP between 10 and 750 meters.
Not terrible as long as you know that the bot will switch to AP rounds once he has spent the ATGM(s).
But if he doesn't (or can't) he'll just sit there and get picked off.

Again, I understand the difficulty, but with bots, sometimes you need to keep things really simple to get them to perform.

Re: bots in MBTs

Posted: 2014-01-30 10:11
by melonmuncher
Thanks for the info. There wasn't much info on the subject online, so it was all pretty much trial and error when I was trying to work it out.
I'll try and sort out an even balance between frequent shooting and horrible aim.