mirror of
https://github.com/spencershepard/RotorOps.git
synced 2025-11-10 15:45:30 +00:00
fixes issue of attacking units getting stuck in zone
This commit is contained in:
parent
eea193bb71
commit
43b17d1b23
@ -1,4 +1,5 @@
|
|||||||
RotorOps = {}
|
RotorOps = {}
|
||||||
|
RotorOps.version = "1.0.10"
|
||||||
|
|
||||||
--RotorOps settings that are safe to change dynamically (ideally from the mission editor in DO SCRIPT for ease of use)
|
--RotorOps settings that are safe to change dynamically (ideally from the mission editor in DO SCRIPT for ease of use)
|
||||||
RotorOps.voice_overs = true
|
RotorOps.voice_overs = true
|
||||||
@ -29,8 +30,8 @@ RotorOps.ai_red_vehicle_groups = {}
|
|||||||
RotorOps.ai_blue_vehicle_groups = {}
|
RotorOps.ai_blue_vehicle_groups = {}
|
||||||
RotorOps.ai_tasks = {}
|
RotorOps.ai_tasks = {}
|
||||||
|
|
||||||
trigger.action.outText("ROTOR OPS STARTED", 5)
|
trigger.action.outText("ROTOR OPS STARTED: "..RotorOps.version, 5)
|
||||||
env.info("ROTOR OPS STARTED")
|
env.info("ROTOR OPS STARTED: "..RotorOps.version)
|
||||||
|
|
||||||
local staged_units --table of ground units that started in the staging zone
|
local staged_units --table of ground units that started in the staging zone
|
||||||
local commandDB = {}
|
local commandDB = {}
|
||||||
@ -438,9 +439,9 @@ function RotorOps.aiExecute(vars)
|
|||||||
local last_task = vars.last_task
|
local last_task = vars.last_task
|
||||||
local group_name = vars.group_name
|
local group_name = vars.group_name
|
||||||
local task = RotorOps.ai_tasks[group_name].ai_task
|
local task = RotorOps.ai_tasks[group_name].ai_task
|
||||||
local zone = vars.zone
|
local zone = RotorOps.ai_tasks[group_name].zone
|
||||||
|
|
||||||
if vars.zone then zone = vars.zone end
|
-- if vars.zone then zone = vars.zone end
|
||||||
--debugMsg("tasking: "..group_name.." : "..task .." zone:"..zone)
|
--debugMsg("tasking: "..group_name.." : "..task .." zone:"..zone)
|
||||||
|
|
||||||
if Group.isExist(Group.getByName(group_name)) ~= true or #Group.getByName(group_name):getUnits() < 1 then
|
if Group.isExist(Group.getByName(group_name)) ~= true or #Group.getByName(group_name):getUnits() < 1 then
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
--[[ This is handy for development, so that you don't need to delete and re-add the individual scripts in the ME when you make a change. These will not be packaged with the .miz, so you shouldn't use this script loader for packaging .miz files for other machines/users. You'll want to add each script individually with a DO SCRIPT FILE ]]--
|
--[[ This is handy for development, so that you don't need to delete and re-add the individual scripts in the ME when you make a change. These will not be packaged with the .miz, so you shouldn't use this script loader for packaging .miz files for other machines/users. You'll want to add each script individually with a DO SCRIPT FILE ]]--
|
||||||
assert(loadfile("C:\\RotorOps\\mist_4_4_90.lua"))()
|
assert(loadfile("C:\\RotorOps\\mist_4_4_90.lua"))()
|
||||||
|
assert(loadfile("C:\\RotorOps\\Splash_Damage_2_0.lua"))()
|
||||||
assert(loadfile("C:\\RotorOps\\CTLD.lua"))()
|
assert(loadfile("C:\\RotorOps\\CTLD.lua"))()
|
||||||
assert(loadfile("C:\\RotorOps\\RotorOps.lua"))()
|
assert(loadfile("C:\\RotorOps\\RotorOps.lua"))()
|
||||||
assert(loadfile("C:\\RotorOps\\Splash_Damage_2_0.lua"))()
|
|
||||||
Loading…
x
Reference in New Issue
Block a user