XCOM 2
Long War Leader Pack
RolandJ Jun 27, 2016 @ 8:49pm
Code Tweaking: Disabling The Auto Squad Empying
I am looking for coding information on how to neuter this mod's preference to empty your squad at the squad selection screen for each mission and encourage you to use its auto-fill feature without you having any say in the matter - I have not found a toggle for this yet. For me the auto-fill feature selects 1 soldier that I want and 5 soldiers that I do not want.

I have tried the following.

Removing the following from '577517577\Src\LW_OfficerPack\Classes\UIScreenListener_SquadSelect_LWOfficerPack'

simulated function ClearAndRecreateSolderSlots(UISquadSelect SquadSelect) { local int idx; local UISquadSelect_ListItem_LWOfficerPack ListItem; // clear soldiers auto-assigned by base-game in case it assigns 2 officers for (idx = 0; idx < SquadSelect.GetTotalSlots(); idx++) { SquadSelect.m_iSelectedSlot = idx; SquadSelect.ChangeSlot(); } SquadSelect.UpdateData();

But that didn't do it. Any other ideas? I get that it's to function as an idiot-proof fail-safe against choosing 2 leaders. I have noted this fact. With that in mind I want to turn this feature off and just pay for it by having to be mindful of not selecting two leaders while reaping the benefit of being able to have a more relaxed squad select screen again.

Thanks!