Version 1.3.3

PlayerScore flag score
stopGap single player
This commit is contained in:
Christian Franz
2023-06-21 15:06:54 +02:00
parent 3b6f22ab78
commit 3f0de87b07
11 changed files with 228 additions and 25 deletions

View File

@@ -1,5 +1,5 @@
stopGapGUI = {}
stopGapGUI.version = "1.0.0"
stopGapGUI.version = "1.0.1"
stopGapGUI.fVal = -300 -- 5 minutes max block
--
-- Server Plug-In for StopGap mission script, only required for server
@@ -19,4 +19,11 @@ function stopGapGUI.onPlayerTryChangeSlot(playerID, side, slotID)
net.send_chat("+++SG: readying group <" .. sgName .. "> for slotting")
end
function stopGapGUI.onSimulationStart()
net.dostring_in("server", " trigger.action.setUserFlag(\"stopGapGUI\", 0); ")
if not DCS.isServer() then return end
if not DCS.isMultiplayer() then return end
net.dostring_in("server", " trigger.action.setUserFlag(\"stopGapGUI\", 200); ") -- tells client that MP is active
end
DCS.setUserCallbacks(stopGapGUI)