gearConfiguration

Configuration files overview:

Config = {}

-------------------------------------------------------------------------------
-- [ SYSTEM CORE ]
-------------------------------------------------------------------------------
Config.Debug = false -- Toggle verbose console output for development
Config.CheckFrequency = 1000 -- Heartbeat frequency in ms

Config.Items = {
	uav = "uav",
	counter_uav = "counter_uav",
}

Config.Commands = {
	radar = "radar", -- Command to toggle radar visibility
}

-------------------------------------------------------------------------------
-- [ OPERATIONAL PARAMETERS ]
-------------------------------------------------------------------------------
Config.Settings = {
	UavDuration = 20, -- Active time in seconds
	CounterDuration = 15, -- Active time in seconds
	ScanRadius = 100.0, -- Detection radius in meters
}

-------------------------------------------------------------------------------
-- [ AUDIO MODULE ]
-------------------------------------------------------------------------------
Config.Audio = {
	EnableAll = true, -- Master switch for UAV sounds
	PlayAlerts = true, -- Play 'Enemy UAV Overhead' notification
}

-------------------------------------------------------------------------------
-- [ INTERFACE & HUD ]
-------------------------------------------------------------------------------
Config.UI = {
	ActivePreset = "top-left", -- Options: "top-left", "top-right", "bottom-left", "bottom-right"
	ShowOnlyIfActive = false, -- Dynamic HUD visibility
	RenderStats = true, -- Display health/armor bars on the minimap

	-- Dynamic Positioning Matrix
	-- Format: map = {x, y}, ui = {viewport_x, viewport_y}
	Layouts = {
		["top-left"] = { map = { x = 0.01, y = 0.01 }, ui = { x = "3.0vh", y = "3.0vh" } },
		["top-right"] = { map = { x = 0.83, y = 0.01 }, ui = { x = "2.5vh", y = "2.5vh" } },
		["bottom-left"] = { map = { x = 0.01, y = 0.76 }, ui = { x = "3.0vh", y = "4.0vh" } },
		["bottom-right"] = { map = { x = 0.83, y = 0.76 }, ui = { x = "2.5vh", y = "4.0vh" } },
	},
}

-------------------------------------------------------------------------------
-- [ LOCALIZATION ]
-------------------------------------------------------------------------------
Config.Locales = {
	["EN"] = {
		item_cooldown = "You cannot use this item right now: %s",
		uav_deployed = "UAV is now scanning the area...",
		cuav_active = "Counter-UAV has jammed local signals.",
	},
}

Config.Language = "EN"

-------------------------------------------------------------------------------
-- [ API & EXPORTS ]
-- ============================================================================

-- Client Side Exports:

-- Use the following export to control radar visibility from other scripts:
-- exports["script_name"]:setRadarVisible(state, reset)
-- exports["script_name"]:isVisible()

-- Server Side Exports:

-- Use the following export to activate UAV for a specific player:
-- exports["script_name"]:ActivateUAVForPlayer(playerId)
-- exports["script_name"]:ActivateCounterUAVForPlayer(playerId)
-------------------------------------------------------------------------------

Last updated