Tweaked delay between contact reports

This commit is contained in:
Ambroise Garel
2025-07-25 19:55:46 +02:00
parent baed36e0a6
commit 4771a98bb5
+4
View File
@@ -269,11 +269,15 @@ do
local newContactsReportString = TUM.wingmen.getContactsAsReportString(nil, true, true) local newContactsReportString = TUM.wingmen.getContactsAsReportString(nil, true, true)
TUM.radio.playForAll("pilotWingmanReportContactsNew", { TUM.wingmen.getFirstWingmanNumber(), newContactsReportString }, TUM.wingmen.getFirstWingmanCallsign(), false) TUM.radio.playForAll("pilotWingmanReportContactsNew", { TUM.wingmen.getFirstWingmanNumber(), newContactsReportString }, TUM.wingmen.getFirstWingmanCallsign(), false)
newGroupsID = {} newGroupsID = {}
if ticksLeftBeforeContactReport < math.floor(CONTACT_REPORT_INTERVAL / 2) then
ticksLeftBeforeContactReport = math.floor(CONTACT_REPORT_INTERVAL / 2)
end
return true return true
end end
ticksLeftBeforeContactReport = ticksLeftBeforeContactReport - 1 ticksLeftBeforeContactReport = ticksLeftBeforeContactReport - 1
if ticksLeftBeforeContactReport > 0 then return false end if ticksLeftBeforeContactReport > 0 then return false end
ticksLeftBeforeContactReport = CONTACT_REPORT_INTERVAL
return TUM.wingmenTasking.commandReportContacts(nil, true, false) return TUM.wingmenTasking.commandReportContacts(nil, true, false)
end end