mirror of
https://github.com/akaAgar/the-universal-mission-for-dcs-world.git
synced 2026-08-26 12:55:21 +00:00
Added "Designate target with laser" menu commands
This commit is contained in:
@@ -28,6 +28,8 @@ do
|
|||||||
"Whiplash",
|
"Whiplash",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local LASER_CODE = 1688
|
||||||
|
local LASER_DESIGNATION_PENALTY = -15
|
||||||
local SMOKE_DURATION = 300 -- in seconds
|
local SMOKE_DURATION = 300 -- in seconds
|
||||||
local SMOKE_MARKER_PENALTY = -25
|
local SMOKE_MARKER_PENALTY = -25
|
||||||
|
|
||||||
@@ -38,6 +40,14 @@ do
|
|||||||
trigger.action.smoke(args.point3, args.smokeColor)
|
trigger.action.smoke(args.point3, args.smokeColor)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function doCommandLaser(index)
|
||||||
|
-- TODO
|
||||||
|
end
|
||||||
|
|
||||||
|
local function doCommandLaserStop(index)
|
||||||
|
-- TODO
|
||||||
|
end
|
||||||
|
|
||||||
local function doCommandSmoke(index)
|
local function doCommandSmoke(index)
|
||||||
local obj = TUM.objectives.getObjective(index)
|
local obj = TUM.objectives.getObjective(index)
|
||||||
if not obj then return end
|
if not obj then return end
|
||||||
@@ -89,5 +99,7 @@ do
|
|||||||
if not DCSEx.table.contains(objectiveDB.flags, DCSEx.enums.taskFlag.ALLOW_JTAC) then return end -- No JTAC for this objective
|
if not DCSEx.table.contains(objectiveDB.flags, DCSEx.enums.taskFlag.ALLOW_JTAC) then return end -- No JTAC for this objective
|
||||||
|
|
||||||
missionCommands.addCommand("Smoke marker on target ("..tostring(SMOKE_MARKER_PENALTY).."xp)", menuRoot, doCommandSmoke, index)
|
missionCommands.addCommand("Smoke marker on target ("..tostring(SMOKE_MARKER_PENALTY).."xp)", menuRoot, doCommandSmoke, index)
|
||||||
|
missionCommands.addCommand("Designate target with laser (code "..tostring(LASER_CODE)..", "..tostring(LASER_DESIGNATION_PENALTY).."xp)", menuRoot, doCommandLaser, index)
|
||||||
|
missionCommands.addCommand("Stop designating target with laser", menuRoot, doCommandLaserStop, index)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user