
Bots won't fire in Tanks.
- Vilespring
- Posts: 740
- Joined: Sat Nov 24, 2012 5:47 am
- Location: Somewere in the United States
Re: Bots won't fire in Tanks.
please. 

A picture is worth a thousand words, but takes up three thousand times the memory.
Area 51: http://battlefieldarea51mod.weebly.com/

"I didn't steal your pizza"
Area 51: http://battlefieldarea51mod.weebly.com/

"I didn't steal your pizza"
Re: Bots won't fire in Tanks.
I guess it means this?
http://www.urbandictionary.com/define.php?term=plox
http://www.urbandictionary.com/define.php?term=plox
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
- Vilespring
- Posts: 740
- Joined: Sat Nov 24, 2012 5:47 am
- Location: Somewere in the United States
Re: Bots won't fire in Tanks.
I am never typing (EDIT) *** again.



A picture is worth a thousand words, but takes up three thousand times the memory.
Area 51: http://battlefieldarea51mod.weebly.com/

"I didn't steal your pizza"
Area 51: http://battlefieldarea51mod.weebly.com/

"I didn't steal your pizza"
Re: Bots won't fire in Tanks.
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.
Re: Bots won't fire in Tanks.
"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.

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.

Re: Bots won't fire in Tanks.
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! 

Walk quietly and carry a sniper rifle
Re: Bots won't fire in Tanks.
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...?

Re: Bots won't fire in Tanks.
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
- Apache Thunder
- Posts: 1213
- Joined: Mon Oct 19, 2009 2:48 am
- Location: Levelland Texas, USA
- Contact:
Re: Bots won't fire in Tanks.
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.
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.



I have cameras in your head!