johandenver2
Lieutenant
Posts: 101
Joined: Mon May 09, 2016 9:46 pm

AIPowerAffinity?

Tue Jun 14, 2016 7:09 pm

What does AIPowerAffinity mean when used in brigade unitfiles?

Teatime
Lieutenant
Posts: 132
Joined: Wed Apr 27, 2016 2:56 pm

Wed Jun 15, 2016 3:44 am

Basically, It is used to penalise or boost units like Militia that are outside or inside their home state

So for example Virginia Militia has these 2 attributes

HomeArea = $VA
AIPowerAffinity = $VA

So if it is outside VA then it will get penalties as defined in the GameLogic.opt file

// *********************************************************
// ************ HOME AREA PENALTY/BONUS ****************
// *********************************************************
// see HomeArea at the model level

areaOutsideHomeAbi = -1 // -1 level to abies (can render them inactive)
areaOutsideHomeStr = -2 // Strategic
areaOutsideHomeOff = -2 // Offensive
areaOutsideHomeDef = -1 // Defensive
areaOutsideHomeTQ = -3 // TQ (and 5 time that to max cohesion)
areaOutsideHomeMR = 66 // Move Ratio Coeff (x0.66) // [changed 120921 from 0.33]
cohLocalAreaBonus = 10 // bonus to max cohesion if at home

Teatime
Lieutenant
Posts: 132
Joined: Wed Apr 27, 2016 2:56 pm

Wed Jun 15, 2016 3:47 am

This has more info as it may go beyond my explanation above

http://www.ageod-forum.com/archive/index.php/t-41945.html

If you ask the question in the general section you will probably get a more detailed answer than I can give as the one I gave may relate more to home area whereas the AIPowerAffinity may relate more to how the AI manages militia type units

johandenver2
Lieutenant
Posts: 101
Joined: Mon May 09, 2016 9:46 pm

Wed Jun 15, 2016 6:22 am

Thanks!

Return to “CW2 Mods”

Who is online

Users browsing this forum: No registered users and 10 guests