Thread: Odd AI Behavior
View Single Post
  #24  
Old November 8th, 2008, 08:53 AM
Mobhack's Avatar

Mobhack Mobhack is offline
National Security Advisor
 
Join Date: Mar 2005
Location: Dundee
Posts: 5,996
Thanks: 490
Thanked 1,928 Times in 1,254 Posts
Mobhack is on a distinguished road
Default Re: Odd AI Behavior

Quote:
Originally Posted by RERomine View Post
5. AI clearing it's own obstacles.

Just started an assault and the AI must have a rifle section next to it, because after the pre-turn 1 artillery bombardment, a message popped up saying "rifle section CLEARS 1 STRAND OF WIRE" and showed me the wire at the bottom edge of the map.

This has actually been an issue since the first SP version came out back in the stone ages, but I don't know if anyone has tried to do anything with it.

As a follow-up thought, since the AI tends to target locations with artillery when an obstacle is cleared, will it nail its own troops as a result?

Neither one hurts the player so it doesn't need to be fixed, but I was curious if any attempt has been made to correct this. I have my turn 1 save file and attached a screen print of the message.
Nope - that one has been there since SP 1 days.

SP 3(?) had a manual flag for engineers to not clear mines, but that is of little use for the AI.

In SP there are just mines or other field defences - there is no ownership marker. So the AI engineers/ordinary troops cannot be coded not to clear "own" mines, since all field engineering items belong to the same pool. Scenario designers can do tricks to give both sides field defences so a "defender does not clear mines" global is not a good idea either, since the defender sometimes does want to clear mines (e.g. to open a lane for a counter attack) or both sides to deal with scatter mines in MBT.

The deployment code is supposed to keep troops clear of engineer obstacles, but has never been able to fully keep it so.

So basically there is no real "sane" way to stop the AI troops clearing mines they are deployed on or in front of, but still clear any they should clear (such as when reacting to a V-hex flip by moving through own minefields).

As to targeting own side - the targeting is done for the opposite side (if AI controlled) to the troops during the clearance phase of the owning player. So that should not happen.

Cheers
Andy
Reply With Quote