Added wingmen specific "i'm down!" message

This commit is contained in:
Ambroise Garel
2025-07-27 19:19:11 +02:00
parent 53cedb83b8
commit 776241fced
2 changed files with 22 additions and 2 deletions
@@ -123,6 +123,7 @@ do
if Object.getCategory(event.initiator) ~= Object.Category.UNIT then return end -- Initiator isn't an unit
if event.initiator:getCoalition() ~= TUM.settings.getPlayerCoalition() then return end -- Initiator isn't a friendly
if event.initiator:getPlayerName() then return end -- No "ejecting!" message for players, so it won't cut the "mission failed" music which is played at the same time
if TUM.wingmen.getUnitWingmanNumber(event.initiator) then return end -- Wingmen have their own "I'm going down!" messages
doAmbientChatter("pilotEjecting", nil, event.initiator:getCallsign(), 1)
end