Company of Heroes: Eastern Front

Eastern Front Mod (Read-Only) => General Discussion => Topic started by: Tehcumseh on April 02, 2012, 09:00:03 PM

Title: How AI makes certain units
Post by: Tehcumseh on April 02, 2012, 09:00:03 PM
Hello i have a few questions on how when i'm playing against the AI they make units that i have know idea how to get. So the Panzer Elite AI everytime it spawns a Infantry Halftrack it spawns with Tankbusters in it like the second it spawns. So its not like they just put them in there. Also when playing against Soviet AI i destroy there HQ (an ally was still alive so game didn't end) they spawn in 2 Ingenery squads, 1 Red Banner Strelky and 1 Shock guard. I know this is not Red Tide i just wonder how they do it. If anyone could tell me it would be greatly appreciated.

-Into The Frey
Title: Re: How AI makes certain units
Post by: MBJrP36 on April 02, 2012, 10:16:37 PM
What difficulty (AI) do you play against, Hard, Expert get tons of freebies.
Title: Re: How AI makes certain units
Post by: Pac-Fish on April 02, 2012, 10:24:51 PM
CPU AI typically techs in a linear path. So you will see something like t1-t2-t3-t4 and at each teir they will spam stuff. Wehr AI likes to spam StuG and Pumas, PE AI likes to spam MHT and SCs, US AI like to spam WSC, and Brit AI is just wtf :P
Title: Re: How AI makes certain units
Post by: Tehcumseh on April 02, 2012, 11:39:02 PM
I play against normal or easy usually(not that good yet  ;D) But its not that they spam them its how they get it. Cause i'm not sure how to get it.
Title: Re: How AI makes certain units
Post by: Pac-Fish on April 03, 2012, 01:04:34 AM
Well Im not sure what you're trying to say anymore since AI buys units like a regular player :P. But sometimes the AI does cheat. For example when Brit AI makes a tommie squad, it gets a free Lt.
Title: Re: How AI makes certain units
Post by: Otto Halfhand on April 03, 2012, 01:43:03 AM
The ing/strelky/Gds battlegrpoup is a deliberate hardcoded feature from Relic; to keep the game from ending too soon. An example of it is to be found in the market garden campaign, the first Valkenswaard scenario. If you lose all your PGs a battlegroup will be spawned, probably until such time as a FHQ is built in the church.

CatFishy is right about the T1/2/3/4 build order and the spamming but I think he is incorrect about AI preferences. I think the AI will build at least one each  of all units in a given tech level, (probably with a 50%VG, 33%MG, 16%sniper probability scheme for the next unit to arrive). This process seems to be interrupted when a higher tech level building is completed. At which point a new probability scheme is implemented until one each of the T2 units is built, one of the probabilities in the T2 probability scheme possibly allows for a backTeching unit build. When the AI selects a doctrine a similar scheme is initiated.

At some point, around when T3 is built the Spamming starts and the AI selects a unit type that it seems to keep on building. I think the  spam priority switch uses the resource pool reserves to select what unit is spammed. An AI propaganda Spam will usually be NI until Katyuskas come out when it may switch to Katy's (IIRC Katy's are cheaper than NI's). I occasionally see it happen with LWGd and Wirbelwinds and rarely nashhorns. It is also seen sometimes with Partizan/KV2 spamming.

My favorite AI Spam is one faction spamming Storms and another faction Spamming Stu42Hs. A good challenge! LW spams are the most pathetic AI spams, Closely followed by straight NI Spams. Partizans would be second worst but that Spam is often changed to a KV2 Spam.

The IHT/2 PG/Shrek seems to be a bonus to the AI. Target the IHT to get the PGs to bail out ASAP. Whats worse I think the Shrek squads may always have two shreks. Anybody know for sure?

I play AI at hard and expert levels. The AI schemes I have mentioned above are not gospel. They are my best guesses.  If we can get Robotnik involved in this discussion we may get more solid answers.
Title: Re: How AI makes certain units
Post by: Blackbishop on April 03, 2012, 03:03:30 AM
Hello i have a few questions on how when i'm playing against the AI they make units that i have know idea how to get. So the Panzer Elite AI everytime it spawns a Infantry Halftrack it spawns with Tankbusters in it like the second it spawns. So its not like they just put them in there.
That's an AI thingy, they cannot garrison/ungarrison HTs, so they get those.

Also when playing against Soviet AI i destroy there HQ (an ally was still alive so game didn't end) they spawn in 2 Ingenery squads, 1 Red Banner Strelky and 1 Shock guard. I know this is not Red Tide i just wonder how they do it.
@Otto 213 already answered this one, and it is the same for all factions not only for soviets :).
Title: Re: How AI makes certain units
Post by: Tehcumseh on April 03, 2012, 03:05:32 AM
Well thank you to everyone who helped answer my question. I just didn't understand how it happened.


-Into The Frey
Title: Re: How AI makes certain units
Post by: Otto Halfhand on April 03, 2012, 03:30:19 AM
Hello i have a few questions on how when i'm playing against the AI they make units that i have know idea how to get. So the Panzer Elite AI everytime it spawns a Infantry Halftrack it spawns with Tankbusters in it like the second it spawns. So its not like they just put them in there.
That's an AI thingy, they cannot garrison/ungarrison HTs, so they get those.
I wonder what the AI pays for this call-in? I'll bet its less than 940MP/20FP.