Perkus
Prince
I've given up on trying to get the helicopters flying over water in a sufficiently robust way to release publicly. Unfortunately the embarkation promotion controls far too many unmoddable aspects of units behaviour around water. For the hovering choppers, I need them to behave as embarked units some of the time (moving/pathing through ocean tiles, allowing embark/disembark mode), and as unembarked the rest (while entering water, combat over water). I eventually discovered that it's possible to toggle the promotion on or off as needed using SetHasPromotion() calls. Even so, the number of times I would need to intercept unit movements in progress and the number of different ways of initiating unit movement through the interface makes this prohibitively invasive and complex to bother with.
I looked at adding new unit missions or piggybacking on existing embarking functionality, but again it's all too tightly coded to make easy changes. The embark/disembark modes are kind of an afterthought, and it's usability is again tightly welded to the presence of an embarkation promotion.
If they simply made the 'CanMoveAllTerrain' promotion flag to do what it claims to, all this would be unnecessary.
I've attached the XML code for the two simple changes that let helis fly over coastal waters below, in case anybody wants to mess around with it themselves. Unless you're playing on continents, this alone might be "good enough" for some.
Not that I've seen.
I looked at adding new unit missions or piggybacking on existing embarking functionality, but again it's all too tightly coded to make easy changes. The embark/disembark modes are kind of an afterthought, and it's usability is again tightly welded to the presence of an embarkation promotion.
If they simply made the 'CanMoveAllTerrain' promotion flag to do what it claims to, all this would be unnecessary.
I've attached the XML code for the two simple changes that let helis fly over coastal waters below, in case anybody wants to mess around with it themselves. Unless you're playing on continents, this alone might be "good enough" for some.
I wonder if there's a way to specifically block citystates from building particular structures
Not that I've seen.