mirror of
https://github.com/iTracerFacer/DCS_MissionDev.git
synced 2025-12-03 04:14:46 +00:00
Added Cargo_Delivery.ogg
This commit is contained in:
parent
84e2e9ffae
commit
fc01cec7cf
BIN
Cargo_Delivered.ogg
Normal file
BIN
Cargo_Delivered.ogg
Normal file
Binary file not shown.
BIN
Moose_TADC/Cargo_Delivered.ogg
Normal file
BIN
Moose_TADC/Cargo_Delivered.ogg
Normal file
Binary file not shown.
@ -694,16 +694,20 @@ local function monitorCargoReplenishment()
|
||||
local actualAdded = newCount - currentCount
|
||||
|
||||
if actualAdded > 0 then
|
||||
squadronAircraftCounts.red[squadron.templateName] = newCount
|
||||
local msg = "RED CARGO DELIVERY: " .. cargoName .. " delivered " .. actualAdded ..
|
||||
" aircraft to " .. squadron.displayName ..
|
||||
" (" .. newCount .. "/" .. maxCount .. ")"
|
||||
log(msg)
|
||||
MESSAGE:New(msg, 20):ToAll()
|
||||
squadronAircraftCounts.red[squadron.templateName] = newCount
|
||||
local msg = "RED CARGO DELIVERY: " .. cargoName .. " delivered " .. actualAdded ..
|
||||
" aircraft to " .. squadron.displayName ..
|
||||
" (" .. newCount .. "/" .. maxCount .. ")"
|
||||
log(msg)
|
||||
MESSAGE:New(msg, 20):ToCoalition(coalition.side.RED)
|
||||
-- ...existing code...
|
||||
USERSOUND:New("Cargo_Delivered.ogg"):ToCoalition(coalition.side.RED)
|
||||
else
|
||||
local msg = "RED CARGO DELIVERY: " .. squadron.displayName .. " already at max capacity"
|
||||
log(msg, true)
|
||||
MESSAGE:New(msg, 15):ToAll()
|
||||
MESSAGE:New(msg, 15):ToCoalition(coalition.side.RED)
|
||||
-- ...existing code...
|
||||
USERSOUND:New("Cargo_Delivered.ogg"):ToCoalition(coalition.side.RED)
|
||||
end
|
||||
end
|
||||
end
|
||||
@ -769,16 +773,20 @@ local function monitorCargoReplenishment()
|
||||
local actualAdded = newCount - currentCount
|
||||
|
||||
if actualAdded > 0 then
|
||||
squadronAircraftCounts.blue[squadron.templateName] = newCount
|
||||
local msg = "BLUE CARGO DELIVERY: " .. cargoName .. " delivered " .. actualAdded ..
|
||||
" aircraft to " .. squadron.displayName ..
|
||||
" (" .. newCount .. "/" .. maxCount .. ")"
|
||||
log(msg)
|
||||
MESSAGE:New(msg, 20):ToAll()
|
||||
squadronAircraftCounts.blue[squadron.templateName] = newCount
|
||||
local msg = "BLUE CARGO DELIVERY: " .. cargoName .. " delivered " .. actualAdded ..
|
||||
" aircraft to " .. squadron.displayName ..
|
||||
" (" .. newCount .. "/" .. maxCount .. ")"
|
||||
log(msg)
|
||||
MESSAGE:New(msg, 20):ToCoalition(coalition.side.BLUE)
|
||||
-- ...existing code...
|
||||
USERSOUND:New("Cargo_Delivered.ogg"):ToCoalition(coalition.side.BLUE)
|
||||
else
|
||||
local msg = "BLUE CARGO DELIVERY: " .. squadron.displayName .. " already at max capacity"
|
||||
log(msg, true)
|
||||
MESSAGE:New(msg, 15):ToAll()
|
||||
MESSAGE:New(msg, 15):ToCoalition(coalition.side.BLUE)
|
||||
-- ...existing code...
|
||||
USERSOUND:New("Cargo_Delivered.ogg"):ToCoalition(coalition.side.BLUE)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user