From c2dcb2fcbf08a65c7e5cb108dade6a1f13fe509b Mon Sep 17 00:00:00 2001 From: spencer-ki Date: Sun, 6 Feb 2022 09:42:26 -0800 Subject: [PATCH] .. --- Generator/Scenarios/_How to create your own scenarios.txt | 2 ++ RotorOps.lua | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Generator/Scenarios/_How to create your own scenarios.txt b/Generator/Scenarios/_How to create your own scenarios.txt index 199971a..9161629 100644 --- a/Generator/Scenarios/_How to create your own scenarios.txt +++ b/Generator/Scenarios/_How to create your own scenarios.txt @@ -22,6 +22,8 @@ Optional: Tips: -Position the center of conflict zones over an open area, as this position may be used to spawn units. -Position the center of staging zones over an open area of at least 1000 x 1000ft to provide space for logistics units. +Position the center of staging zones over an open area of at least 1000 x 1000ft to provide space for logistics units. +-For very scenery dense areas like forests or urban areas, smaller conflict zone sizes are highly recommended (eg 4000ft radius). A zone center near a roadway may also help keep units moving smoothly. -The conflict game type can be played with blue forces on defense. In this mode the last conflict zone is the only troop pickup zone. -Design your template so that it can be played in normal 'attacking' mode or 'defending' the conflict zone from enemy ground units starting from the staging zone. -Keep the zones fairly close together, both for helicopter and ground unit travel times. diff --git a/RotorOps.lua b/RotorOps.lua index cd32b31..3ca3b65 100644 --- a/RotorOps.lua +++ b/RotorOps.lua @@ -1032,8 +1032,9 @@ function RotorOps.assessUnitsInZone(var) ctld.spawnGroupAtTrigger("blue", 5, zone, 1000) else ctld.spawnGroupAtTrigger("red", 5, zone, 1000) + RotorOps.gameMsg(RotorOps.gameMsgs.infantry_spawned, math.random(1, #RotorOps.gameMsgs.infantry_spawned)) end - RotorOps.gameMsg(RotorOps.gameMsgs.infantry_spawned, math.random(1, #RotorOps.gameMsgs.infantry_spawned)) + RotorOps.inf_spawns_avail = RotorOps.inf_spawns_avail - 1 env.info("ROTOR OPS: Spawned infantry. "..RotorOps.inf_spawns_avail.." spawns remaining in "..zone) end