how to make bots fire stingers on players/bots?

General discussion of the Project Reality: BF2 modification.
Post Reply
THE_PR_FAN
Posts: 56
Joined: 2015-09-14 11:37

how to make bots fire stingers on players/bots?

Post 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
rPoXoTauJIo
PR:BF2 Developer
Posts: 1979
Joined: 2011-07-20 10:02

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

Post 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
...
Image

assetruler69: I've seen things you smurfs wouldn't believe. Apaches on the Kashan. I watched burned down tank hulls after the launch of the single TOW. All those moments will be lost in time, like tears in rain.

Time to give up and respawn.
THE_PR_FAN
Posts: 56
Joined: 2015-09-14 11:37

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

Post 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??
priyansh
Posts: 16
Joined: 2015-05-23 09:26

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

Post by priyansh »

i just had the same question....how to do it? will it work with that codes ??
melonmuncher
PR:BF2 Developer
Posts: 266
Joined: 2012-01-13 05:14

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

Post 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?
THE_PR_FAN
Posts: 56
Joined: 2015-09-14 11:37

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

Post 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
rPoXoTauJIo
PR:BF2 Developer
Posts: 1979
Joined: 2011-07-20 10:02

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

Post 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.
Image

assetruler69: I've seen things you smurfs wouldn't believe. Apaches on the Kashan. I watched burned down tank hulls after the launch of the single TOW. All those moments will be lost in time, like tears in rain.

Time to give up and respawn.
Post Reply

Return to “PR:BF2 General Discussion”