Skip to content

Commit

Permalink
Issue X2CommunityCore#1406 - Add new event trigger after Mission Intr…
Browse files Browse the repository at this point in the history
…o kismet has completed
  • Loading branch information
furudee committed Dec 3, 2024
1 parent 3f2f9b2 commit dcb4997
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3893,6 +3893,24 @@ Begin:
sleep(0.0);
}

// Start Issue #1406
/// HL-Docs: feature:PostMissionIntroKismet; issue:1406; tags:tactical
/// This event triggers after mission intro kismet has been completed.
/// For example, a mission such as Supply Extraction spawns their objective crates
/// when `'SeqEvent_OnTacticalMissionStartBlocking'` has been triggered,
/// which happens after `'OnBeginTacticalPlay'` event has already been triggered.
/// As such, you don't have a handle for anything the mission kismet causes before your first XCOM turn.
/// This event can be considered a later alternative to `'OnBeginTacticalPlay'` event.
///
/// ```event
/// EventID: PostMissionIntroKismet,
/// EventData: none,
/// EventSource: none,
/// NewGameState: none
/// ```
`XEVENTMGR.TriggerEvent('PostMissionIntroKismet',,,);
// End Issue #1406

// set up start of match special conditions, including squad concealment
ApplyStartOfMatchConditions();

Expand Down Expand Up @@ -4240,11 +4258,17 @@ Begin:
// kick off the mission intro kismet, and wait for it to complete all latent actions
WorldInfo.TriggerGlobalEventClass(class'SeqEvent_OnTacticalMissionStartBlocking', WorldInfo);


while (WaitingForVisualizer())
{
sleep(0.0);
}

// Start Issue #1406
/// HL-Docs: ref:PostMissionIntroKismet
`XEVENTMGR.TriggerEvent('PostMissionIntroKismet',,,);
// End Issue #1406

// kick off the gameplay start kismet, do not wait for it to complete latent actions
WorldInfo.TriggerGlobalEventClass(class'SeqEvent_OnTacticalMissionStartNonBlocking', WorldInfo);

Expand Down

0 comments on commit dcb4997

Please sign in to comment.