Page 1 of 1

how to make bots fire stingers on players/bots?

Posted: 2015-11-09 18:05
by THE_PR_FAN
As the title suggests...

how can i make bots to fire stinger missiles in player and other bots???

i tried changing the velocity but nothing changed...
so how to do it?

thanks in advance

Re: how to make bots fire stingers on players/bots?

Posted: 2015-11-10 06:54
by rPoXoTauJIo
You probably have to edit .ai file of weapon teamplate.
Best what can be done to allow bots fire regardless of conditions is to increase .allowedDeviation and decrease .deviationCorrectionTime.
Dont forget to set strenghtes and ranges ofc.

Code: Select all

...
weaponTemplate.minRange 5.0
weaponTemplate.maxRange 1300.0
...
weaponTemplate.setStrength Helicopter  70.0
weaponTemplate.setStrength Airplane    70.0
...
weaponTemplate.allowedDeviation 25.0
weaponTemplate.deviationCorrectionTime 0.5
...

Re: how to make bots fire stingers on players/bots?

Posted: 2015-11-11 11:18
by THE_PR_FAN
so will bots be able to fire at other bots and players after i edit the .ai file with the code you told??

Re: how to make bots fire stingers on players/bots?

Posted: 2015-11-12 04:32
by priyansh
i just had the same question....how to do it? will it work with that codes ??

Re: how to make bots fire stingers on players/bots?

Posted: 2015-11-13 02:43
by melonmuncher
What do you want? You want the bots to fire aa missiles at infantry and vehicles? Or are they not firing at air assets anymore?

Re: how to make bots fire stingers on players/bots?

Posted: 2015-11-13 08:45
by THE_PR_FAN
[R-DEV] melonmuncher wrote:What do you want? You want the bots to fire aa missiles at infantry and vehicles? Or are they not firing at air assets anymore?

yes......
i want bots TO FIRE AT INFANTRY AND VEHICLES too along with air assets

Re: how to make bots fire stingers on players/bots?

Posted: 2015-11-13 11:51
by rPoXoTauJIo
Well, then you just have to have non-zero .setStrength against infantry and ground assets to increase attractiveness for bots :)
Take a look on other ai files(tanks\spaags\etc) to get the idea how it works.