Ways to insert new UnitCombatInfos?

Tokata_RuNeLess

Chieftain
Joined
Sep 17, 2015
Messages
39
Location
USTC in Hefei, China
It seems that Civ5 cannot calculate the animation (partly, ei combat animations) of units with new combat infos.
I saw that mods like 'UI - Promotion Tree' supports new combat types, but don't know how to do so.
Could anyone help me?
Thanks a lot!
 
I would like to know that too. The current number of UnitCombatInfos (14) is enough for me for now, but I might need more in the future.
 
I would like to know that too. The current number of UnitCombatInfos (14) is enough for me for now, but I might need more in the future.

Have you used Fighter and Bomber CombatTypes?

I was under the impression some kind of issue could arise from possible hard-coding from Fireaxis with having units in the map with these CombatTypes.

It would be great news to me if I'm wrong on this.
 
What kind of issue it would be? I'm using them for ranged land units (priests and mages). I haven't seen any problems with them yet, but I didn't test my mod that much, so I might have missed something.
 
What kind of issue it would be? I'm using them for ranged land units (priests and mages). I haven't seen any problems with them yet, but I didn't test my mod that much, so I might have missed something.

Honestly, I thought the game would have a hard time calculating combat between units that are not supposed to fight each other, but it was just an unfunded fear of Fireaxis' hard-coding.
 
I suppose that the game (in a part of the code outside of the DLL source available to us) has a list of unitcombats that work (in terms of animations), and any other ones don't work. And all these unitcombats are treated the same way. I don't know if it's a correct assumption, but I don't have any evidence against it. Possibly (I haven't checked that), UNITCOMBAT_NAVAL (used in the vanilla version of the game) will also work when you define it in the database and assign to a unit. This will increase the number of working unitcombats to 15.

The OP says that the 'UI - Promotion Tree' mod (looks like one of Whoward's mods) supports new combat types, but I doubt if it actually fixes their animations. I will check it tomorrow (now I'm going to sleep), but the name suggests that it's just an UI mod and it doesn't have anything to do with unit animations.
 
Back
Top Bottom