Open Iridar opened 7 months ago
I can confirm this happens in testing. Spawning the mission using spawnmission missionsource_supplyraid reward_none
and activating the dark event via activatedarkevent darkevent_highalert
creates the necessary conditions to break the crate-race mission (i.e. advent never collects any).
If I come up with any creative ways of fixing it I'll let you know :)
In X2TacticalGameRuleset, && !BattleDataState.bForceNoSquadConcealment
can be removed, which will force the 'start of mission concealment' on irrespective of the battledata flag.
// set initial squad concealment
if( ActiveMissionSchedule.XComSquadStartsConcealed && !BattleDataState.bForceNoSquadConcealment)
{
foreach History.IterateByClassType(class'XComGameState_Player', PlayerState)
{
if( PlayerState.GetTeam() == eTeam_XCom )
{
PlayerState.SetSquadConcealment(true, 'StartOfMatchConcealment');
}
}
}
Later in the function we can just trigger the concealment break directly by:
If (BattleDataState.bForceNoSquadConcealment)
{
UnitState.BreakConcealment();
}
I've tested this and it does fix the issue, but the visualization is not great - you get the initial start of mission "High alert" flyover, followed by the "Concealed" and "Revealed" flyovers coming from the set & break concealment functions & I'm not sure if/how those can be suppressed.
This PR is not ready to merge yet - further work is required
https://www.reddit.com/r/XCOM2/comments/1bgn9y1/well_thats_new_extract_supplies_mission/