grimjaw
General
Posts: 506
Joined: Wed Feb 09, 2011 5:38 am
Location: Arkansas

How does the AI use artillery, by family or stats?

Sun Dec 29, 2019 11:59 pm

I'm asking about this because I am working on a mod that creates additional artillery types. I want to make sure that AI uses the new units in a way that makes sense. Does the AI use artillery under rules defined by the family of the subunit, or does it use artillery according to the STATS of the unit such as range, damage, rate of fire, etc. I'm focusing on what the engine does and not what is achieved by scripting.

User avatar
Pocus
Posts: 25659
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Re: How does the AI use artillery, by family or stats?

Tue Jan 07, 2020 10:21 am

It works at the family level.

grimjaw
General
Posts: 506
Joined: Wed Feb 09, 2011 5:38 am
Location: Arkansas

Re: How does the AI use artillery, by family or stats?

Thu Jan 09, 2020 12:12 am

Thanks, Pocus. So if I converted some rifled artillery, like 10-pdr Parrotts, to light artillery, and converted Napoleons to medium artillery, would the AI use them very much differently than it does now? Historically Napoleons cost more to produce than Parrott rifles, and I'd like to put the gun types in families with similar costs. If that means the AI will start preferring Napoleons in clear terrain/weather, and rifled artillery in woods/rain, then I'll have to come up with a different idea.

User avatar
Pocus
Posts: 25659
Joined: Wed Oct 19, 2005 7:37 am
Location: Lyon (France)

Re: How does the AI use artillery, by family or stats?

Thu Jan 09, 2020 4:26 pm

No that would not change much :sourcil:

Return to “CW2 Technical support / Aide technique”

Who is online

Users browsing this forum: No registered users and 7 guests