How player's units get targeted by AI?

Discussions about AI types, units, tactics & strategy.
Post Reply
zerosum
Greenhorn
Posts: 11
Joined: 26 Jun 2012, 19:21
Location: France

How player's units get targeted by AI?

Post by zerosum » 26 Jun 2012, 20:39

Howdy,

Is there a particular set of rules (other than proximity) regarding how / why the AI "decide" to target an unit?

Also, can such target be changed during a fight (and if so, why?), or remain targeted until destroyed?

iap
Trained
Trained
Posts: 244
Joined: 26 Sep 2009, 16:08

Re: How player's units get targeted by AI?

Post by iap » 27 Jun 2012, 09:23

Good question. I was wondering it myself.

Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3777
Joined: 03 Aug 2006, 19:39

Re: How player's units get targeted by AI?

Post by Per » 27 Jun 2012, 23:37

Units follow a rather complicated set of rules for where to shoot by default.

User avatar
Iluvalar
Regular
Regular
Posts: 1819
Joined: 02 Oct 2010, 18:44

Re: How player's units get targeted by AI?

Post by Iluvalar » 28 Jun 2012, 01:57

Simpy put :
*Visibility
*Range
*Actual damage
*Possibility to help another ally
*Weapon modifier
*Unit type (shoot commander and repair first)

But there is more, that code look scary...
Heretic 2.3 improver and proud of it.

User avatar
Stratadrake
Trained
Trained
Posts: 197
Joined: 07 Sep 2008, 09:43
Location: Pacific NW
Contact:

Re: How player's units get targeted by AI?

Post by Stratadrake » 28 Jun 2012, 06:30

What about defensive structures?

Proximity targetting, after all, is the number one reason why you don't use Flamers on bunkers -- they don't live long enough to even get within range.
Strata @dA, @FAC

User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: How player's units get targeted by AI?

Post by NoQ » 28 Jun 2012, 11:28

the number one reason why you don't use Flamers on bunkers -- they don't live long enough to even get within range.
What? Flamer halftracks are an excellent choice against bunkers, i don't know what you are talking about.

User avatar
Stratadrake
Trained
Trained
Posts: 197
Joined: 07 Sep 2008, 09:43
Location: Pacific NW
Contact:

Re: How player's units get targeted by AI?

Post by Stratadrake » 29 Jun 2012, 06:42

I know Flamers do triple damage to bunkers. It's all the other defenses (mostly hardpoints) in the vinicity that cause the problems - while the rest of the assault group is sitting back wailing away at hardpoints with cannon fire and rockets, the flamers take one step forward to get within range and next thing I know, "Unit Lost!" :(
Strata @dA, @FAC

zerosum
Greenhorn
Posts: 11
Joined: 26 Jun 2012, 19:21
Location: France

Re: How player's units get targeted by AI?

Post by zerosum » 01 Jul 2012, 20:16

Per wrote:Units follow a rather complicated set of rules for where to shoot by default.
Definitely. I even failed to figure whether randomness was involved. Maybe it is, though.
Iluvalar wrote:Simpy put :
*Visibility
*Range
*Actual damage
*Possibility to help another ally
*Weapon modifier
*Unit type (shoot commander and repair first)
Makes sense. However, I was wondering if the occurence of such parameters had an influence over the decision tree, because many times the same stage displays different behaviors. It is extremely hard to predict (maybe that was intended after all) the AI.
Iluvalar wrote:But there is more, that code look scary...
I''m sure it is. :(

User avatar
Iluvalar
Regular
Regular
Posts: 1819
Joined: 02 Oct 2010, 18:44

Re: How player's units get targeted by AI?

Post by Iluvalar » 01 Jul 2012, 22:51

Most of the AIs decisions are deterministic.

However they scout randomly and then they base their decision of that partial information. As a result, they always react differently even if you are in the same map using the same strategy.
Heretic 2.3 improver and proud of it.

Post Reply