mirror of
https://github.com/akaAgar/the-universal-mission-for-dcs-world.git
synced 2025-11-25 19:31:01 +00:00
Added "press key to respawn" message on single-player death
This commit is contained in:
parent
adee5411e1
commit
9d64113241
@ -205,11 +205,15 @@ do
|
||||
end
|
||||
end
|
||||
|
||||
-- if TUM.settings.getValue(TUM.settings.id.MULTIPLAYER) then return end
|
||||
-- When player dies in single-player, fail the mission
|
||||
-- if event.id == world.event.S_EVENT_CRASH or event.id == world.event.S_EVENT_EJECTION or event.id == world.event.S_EVENT_PILOT_DEAD then
|
||||
-- TUM.mission.endMission(TUM.mission.endCause.FAILED)
|
||||
-- end
|
||||
-- When the player dies in single-player, remind them that they can respawn
|
||||
-- (because no one knows the "respawn" shortcut key in DCS and it's not possible to respawn by
|
||||
-- changing slots when there's only one)
|
||||
if not TUM.settings.getValue(TUM.settings.id.MULTIPLAYER) then
|
||||
if event.id == world.event.S_EVENT_CRASH or event.id == world.event.S_EVENT_EJECTION or event.id == world.event.S_EVENT_PILOT_DEAD then
|
||||
-- TUM.mission.endMission(TUM.mission.endCause.FAILED)
|
||||
trigger.action.outText("Your aircraft has been downed.\nPress Right CTRL+Right Shift+Tab (default) to respawn.", 10)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function TUM.mission.playMissionSummaryRadioMessage(onlyShowIncomplete, delayed)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user