X2CommunityCore / X2CommunityHighlander

MIT License
7 stars 3 forks source link

LWS Comments with no code attached: determine action #154

Open MalucoMarinero opened 7 years ago

MalucoMarinero commented 7 years ago
        // LWS: Units can (rarely) spawn on top of fires in certain maps. This causes them to
        // start burning on their first turn, and take damage on the next turn after that. Taking damage
        // causes them to activate, which begins the scamper. If we defer it here until the squad leaves
        // concealment it shuts down the entire AI patrol system because nobody will move while there is 
        // a pending scamper.
        //
        // If we don't wait for concealment to break, though, then the scampering units can't see XCOM,
        // and may flank themselves when deciding where to scamper. This occurs far more often than the
        // rare unit-spawns-on-fire case. We could attempt to mitigate both by only deferring the scamper
        // if someone on XCOM can *see* the unit that's scampering, but in the case of asymmetric LoS things
        // might still be screwy and the leader may flank itself. Probably better to try to fix this problem 
        // from the "nobody is allowed to move while there is a pending scamper" side, or try to come up with
        // some better conditions governing when to wait on concealment.