Commit 49047c4e authored by Ryan Grupp's avatar Ryan Grupp
Browse files

Change TSM loading system, now requires more user intervention :(

parent 2a6b556a
......@@ -7,21 +7,7 @@ tsm_core_fnc_getTimeString = compile preprocessFileLineNumbers "tsm\_core_\func
tsm_core_fnc_getHexColor = compile preprocessFileLineNumbers "tsm\_core_\functions\fnc_getHexColor.sqf";
tsm_core_fnc_triggerOnDead = compile preprocessFileLineNumbers "tsm\_core_\functions\fnc_triggerOnDead.sqf";
tsm_modules = [
'ambient_sounds',
'car_radio',
'cbrn',
'combat_feedback',
'components',
// 'fireworks',
// 'jammer',
'lz_select',
'spectrum_device',
'static_radio'
];
call compile preprocessFileLineNumbers 'tsm\_core_\load_config.sqf';
['XEH_PreInit'] call tsm_core_fnc_loadModules;
\ No newline at end of file
......@@ -6,4 +6,4 @@ params ['_file'];
call compile preprocessFileLineNumbers _path;
diag_log text format ['[tsm_core] Loaded module: %1.%2', _x, _file];
};
} forEach tsm_modules;
\ No newline at end of file
} forEach tsm_core_modules;
\ No newline at end of file
tsm_core_modules = ['_core_', 'modules', []] call tsm_core_fnc_getConfigValue;
\ No newline at end of file
class TSM_Config
{
class _core_
{
/* Module to load on mission start */
modules[] = {
"ambient_sounds",
"car_radio",
"cbrn",
"combat_feedback",
"components",
// "fireworks",
// "jammer",
"lz_select",
"spectrum_device",
"static_radio"
};
};
class ambient_sounds
{
/* Sound definition
......@@ -7,17 +25,17 @@ class TSM_Config
* Param 2: Length of the sound file (in seconds)
* Ex:
* sounds[] = {
* {'mission_ambience_1', 301},
* {'mission_ambience_2', 301}
* {"mission_ambience_1", 301},
* {"mission_ambience_2", 301}
* };
*/
sounds[] = {
{'mission_ambience_1', 301},
{'mission_ambience_2', 301},
{'mission_ambience_3', 300}
};
{"mission_ambience_1", 301},
{"mission_ambience_2", 301},
{"mission_ambience_3", 300}
};
/* Delay in seconds before starting running the first ambient sound */
initialDelay = 30;
......@@ -100,7 +118,7 @@ class TSM_Config
selectionRange = 0.1;
/* Signals outside of this angle can't be seen (as a cone in front of the player) */
/* Signals outside of this angle can"t be seen (as a cone in front of the player) */
angleRestriction = 180;
......@@ -124,8 +142,8 @@ class TSM_Config
garbageCollectTimer = -1;
/* Monitors the client's selected signal and sends an event with state changes, may cause lag */
monitorSelectedSignals = 0;
/* Monitors the client"s selected signal and sends an event with state changes, may cause lag */
monitorSelectedSignals = 0;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment