Bots won't fire in Tanks.

Ask questions, discuss ideas, get answers
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: Bots won't fire in Tanks.

Post by Vilespring »

please. :lol:
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Bots won't fire in Tanks.

Post by Swaffy »

(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
BotHunter
Posts: 480
Joined: Thu Jan 10, 2013 11:22 pm
Contact:

Re: Bots won't fire in Tanks.

Post by BotHunter »

LOL! :lol:
Walk quietly and carry a sniper rifle
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: Bots won't fire in Tanks.

Post by Vilespring »

I am never typing (EDIT) *** again. :lol: :lol:
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
dudejo
Posts: 71
Joined: Tue Nov 30, 2010 2:33 am

Re: Bots won't fire in Tanks.

Post by dudejo »

It also helps to keep whatever the AI is using as simple as possible. At least, it's what I do with the Katyusha rocket launcher.
takiwa
Posts: 134
Joined: Mon Dec 30, 2013 4:29 pm
Location: The Great State of Georgia

Re: Bots won't fire in Tanks.

Post by takiwa »

"plox" means "please" :)

generally, when bots sit in vehicles and don't fire at the opposition, it is one of two things...either they don't want to fire the weapon because the weapon AI hasn't defined the use of that weapon well enough for the bot to properly use it, or the map strategies are not defined enough for the bot to feel threatened by the enemy presence. I accidentally caused this once while playing with strategies on one of my maps. I accidentally assigned the same values for my attack and camp strategies. I would play one round and the camp strategy would be chosen by the AI...they would literally sit there and stare at each other. After a reload of the map, however, the attack strategy would win out and they would go at each other like mad dogs. Took me forever to figure out what I had done :)

Hope this helps.
Image
User avatar
BotHunter
Posts: 480
Joined: Thu Jan 10, 2013 11:22 pm
Contact:

Re: Bots won't fire in Tanks.

Post by BotHunter »

Well I got that problem fixed, but I ran into another one. I changed the range for the AI on the tanks, but now they just stop when they think they are in range and won't fire cause they actually aren't. So why do they stop? Is there a command that tells them to stop before they fire? Thanks! :D
Walk quietly and carry a sniper rifle
takiwa
Posts: 134
Joined: Mon Dec 30, 2013 4:29 pm
Location: The Great State of Georgia

Re: Bots won't fire in Tanks.

Post by takiwa »

There is no command for them to stop per se...it sounds like once they see another bot, or reach their current strategic objective, the are pausing to calculate a new strategy based on the conditions you have set up for the map. Whether another bot is in range or not is inconsequential...a bots primary objective on any map is completing his programming. He makes calculation and formulates a plan based on the conditions and strategies you have coded, and he performs them. Sometimes what we think is a vehicle issue is actually a map issue. Run the aistats in the debugger and see exactly what action the bots are attempting to perform when they pause and don't shoot...?
Image
User avatar
BotHunter
Posts: 480
Joined: Thu Jan 10, 2013 11:22 pm
Contact:

Re: Bots won't fire in Tanks.

Post by BotHunter »

Well once one of them (or me) Gets in range of the stopped tanks, they will fire, But in the meanwhile you have two army's of tanks just looking at each other from a distance.
Walk quietly and carry a sniper rifle
User avatar
Apache Thunder
Posts: 1213
Joined: Mon Oct 19, 2009 2:48 am
Location: Levelland Texas, USA
Contact:

Re: Bots won't fire in Tanks.

Post by Apache Thunder »

There could be a few things that is causing this. Did you check the timeToLive on the projectiles it fires or the gravityModifier? The projectile either can't get far enough for the weapon range set for the AI Template, or perhaps the gravityModifier is too high and the bot can't aim the turret up high enough.

Another possibility is the pathmaps for your map. If the setOrderPosition of the strategic areas on the map are not on a explorable part of the vehicle pathmaps you may end up with vehicles that idle and not move around very much. Does this issue crop up only on a specific map or are you having this problem in all the maps?


The only other things I can think of off the top of my head right now, is that perhaps there's a conflict in the AI weapon templates. So at a specific range the bots can't decide which weapon to use on the enemy they spot. For example if you got a alt file weapon on the tanks that has the same setStrength value as it's primary weapon for a particular unit, the bot could sit there never being able to decide which weapon to choose.

If the enemy gets close it could mean one of their weapons that they have conflict with is no longer favorable, so they finally decide to use the other weapon and then fire on the enemy.
ImageImageImage
I have cameras in your head!
Post Reply