Page 2 of 2

Re: Feedback On the Bots

Posted: 2012-08-08 02:01
by Furrealz_22
SShadowFox wrote:Yea, but maybe the AI should be enhanced to the Attack Helicopters, and maybe they'll can land and re-arm, like making the Attack Helicopters hover over the combat area and the gunner can shot hellfires, make the tanks and APCs stop shooting at aircraft.

I've had some down time, so I've been tweaking with the bot's behaviors and I have figured out how to do a few of these:


1.
SShadowFox wrote:...and the gunner can shot hellfires...
They can actually shoot them at vehicles or whatever you want them to, just go to whatever helicopter you want (make sure to edit the _sp version only) and change both the laser and wire Hellfire AI template to ahe_agm_idx3_ai. Make sure to make backups before you change anything. The you have to change the weights in the weapons.ai (found in weapon_ranges_air/ranges/ahe_heavy). Here's a copy of mine:

weaponTemplate.minRange 50.0
weaponTemplate.maxRange 600.0
weaponTemplate.WeaponFire PIFire
WeaponTemplate.WeaponActivate PIMenuSelect3
weaponTemplate.setStrength Infantry 0.0 (will never fire at anything with weights of 0)
weaponTemplate.setStrength LightArmour 1.0 (will rarely fire at jeeps and trucks)
weaponTemplate.setStrength HeavyArmour 99.0 (heavy armor is the highest priority)
weaponTemplate.setStrength NavalArmour 15.0 (apcs are second)
weaponTemplate.setStrength Helicopter 0.0
weaponTemplate.setStrength Airplane 0.0
weaponTemplate.allowedDeviation 5.0 (lower numbers make the ai more accurate- you can also add weapontemplate.deviation _._ to make them as precise as you want)


Now they should be able to fire hellfires, the only problem is that they refuse to use them correctly. For example, instead of locking on to a target, they just dumb-fire them and the missiles just go straight. Kinda pointless, but it gives the AI another weapon to use and I've actually seen them get some kills with it.



2.
SShadowFox wrote:make the tanks and APCs stop shooting at aircraft

This is actually pretty easy to do also, just use the same system as above. Go into weapon_ranges_land (located in your vehicles_server zip), then to crewman_data_mbt, then to driver_gunner_bf2 (or gunner_main, if you want to edit the tanks which have the driver and gunner positions separated) then to objects.ai. Open it, and look for a line that says "aiTemplatePlugIn.setIsAntiAircraft." It's usually at the top. put a "rem" behind the line, and that should stop them from shooting at air vehicles. For good measure, I also went to the _weapon_ranges_land/ranges/mbt and changed the strengths of the AP and HE to 0.0 against airplanes and helis. So now they won't even think about shooting shit down with a main gun. Lol I hope this helps!



Furrealz