WOTCStrategyOverhaul / CovertInfiltration

A mod that overhauls the Covert Actions system to bring back the Infiltration mechanic from Long War 2
MIT License
21 stars 8 forks source link

ForceAbortCurrentInfil command #511

Closed Xymanek closed 4 years ago

Xymanek commented 4 years ago

Sometimes the game crashes on loading into a mission and these crashes are not always resolvable. If this happens on an infil mission, the campaign is effected deadlocked (unless a previous save exists), as the player must launch the mission but cannot load into it.

Solution: make a command that will abort the current infil (eg. the one the player is currently looking at). Considerations:

Xymanek commented 4 years ago

Chain/activity interaction (existing OnFail assume that it's called from post-mission)

I just realized that there is currently some logic to handle aborting infils pre-100%, so we could hook into there probably