mirror of
https://github.com/iTracerFacer/DCS_MissionDev.git
synced 2025-12-03 04:14:46 +00:00
Added Enable Attack messages true/false
This commit is contained in:
parent
deaba0f291
commit
091d0a0178
@ -25,7 +25,7 @@ red_ctld.hoverautoloading = true -- Crates in CrateDistance in a LOAD zone will
|
||||
red_ctld.smokedistance = 10000 -- Smoke or flares can be request for zones this far away (in meters).
|
||||
red_ctld.movetroopstowpzone = true -- Troops and vehicles will move to the nearest MOVE zone...
|
||||
red_ctld.movetroopsdistance = 5000 -- .. but only if this far away (in meters)
|
||||
red_ctld.suppressmessages = false -- Set to true if you want to script your own messages.
|
||||
red_ctld.suppressmessages = true -- Set to true if you want to script your own messages.
|
||||
red_ctld.repairtime = 300 -- Number of seconds it takes to repair a unit.
|
||||
red_ctld.buildtime = 300 -- Number of seconds it takes to build a unit. Set to zero or nil to build instantly.
|
||||
red_ctld.cratecountry = country.id.GERMANY -- ID of crates. Will default to country.id.RUSSIA for RED coalition setups.
|
||||
@ -63,7 +63,7 @@ blue_ctld.hoverautoloading = true -- Crates in CrateDistance in a LOAD zone will
|
||||
blue_ctld.smokedistance = 10000 -- Smoke or flares can be request for zones this far away (in meters).
|
||||
blue_ctld.movetroopstowpzone = true -- Troops and vehicles will move to the nearest MOVE zone...
|
||||
blue_ctld.movetroopsdistance = 5000 -- .. but only if this far away (in meters)
|
||||
blue_ctld.suppressmessages = false -- Set to true if you want to script your own messages.
|
||||
blue_ctld.suppressmessages = true -- Set to true if you want to script your own messages.
|
||||
blue_ctld.repairtime = 300 -- Number of seconds it takes to repair a unit.
|
||||
blue_ctld.buildtime = 300 -- Number of seconds it takes to build a unit. Set to zero or nil to build instantly.
|
||||
blue_ctld.cratecountry = country.id.GERMANY -- ID of crates. Will default to country.id.RUSSIA for RED coalition setups.
|
||||
|
||||
@ -97,6 +97,7 @@
|
||||
-- Infantry Patrol Settings
|
||||
-- Due to some maps or locations where infantry moving is either not desired or has problems with the terrain you can disable infantry moving patrols.
|
||||
-- Set to false, infantry units will spawn, and never move from their spawn location. This could be considered a defensive position and probably a good idea.
|
||||
local ENABLE_ATTACK_MESSAGES = false -- Enable or disable attack messages when a zone is attacked.
|
||||
local MOVING_INFANTRY_PATROLS = false
|
||||
local ENABLE_WAREHOUSE_MARKERS = true -- Enable or disable the warehouse markers on the map.
|
||||
local UPDATE_MARK_POINTS_SCHED = 60 -- Update the map markers for warehouses every 300 seconds. ENABLE_WAREHOUSE_MARKERS must be set to true for this to work.
|
||||
@ -124,6 +125,7 @@ local ASSIGN_TASKS_SCHED = 600 -- Assign tasks to groups every 600 seconds.
|
||||
|
||||
|
||||
|
||||
|
||||
-- Define capture zones for each side with a visible radius.
|
||||
-- These zones will be used to create capture zones for each side. The capture zones will be used to determine the state of each zone (captured, guarded, empty, attacked, neutral).
|
||||
-- The zones will also be used to spawn ground units for each side.
|
||||
@ -497,7 +499,9 @@ local function OnZoneAttacked(event)
|
||||
env.info(messageText)
|
||||
|
||||
-- Announce to the player
|
||||
MESSAGE:New(messageText, 15):ToAll()
|
||||
if ENABLE_ATTACK_MESSAGES then
|
||||
MESSAGE:New(messageText, 15):ToAll()
|
||||
end
|
||||
end
|
||||
|
||||
-- Function to handle zone neutral events
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user