long-war-2 / lwotc

Port of Long War 2 to XCOM 2's War of the Chosen expansion
345 stars 91 forks source link

Soldiers can only be carried out of a mission once for a whole campaign #212

Closed pledbrook closed 5 years ago

pledbrook commented 5 years ago

See this save file with a bleeding out soldier that can't be carried:

save_Cant_grab_joey_martinez_body.zip

There is a highlander fix from LW2. Also, this mod provides a workaround. But it does so by adding another carry ability.

tracktwo commented 5 years ago

Found the fix I made earlier - see XCGS_Unit.OnBeginTacticalPlay:

    // PI Mods: Reset the body recovered flag. A unit that was previously carried to evac while KO'd/bleeding out will have
    // this flag set, and this flag prevents units from being carried. If this unit gets KO'd again, they won't be able to
    // be picked up if this flag is still set.
    bBodyRecovered = false;
pledbrook commented 5 years ago

Fixed by this commit in the community highlander.