big refactor to isolate functionality. adds milsim_fnc_log.
This commit is contained in:
@@ -136,7 +136,17 @@
|
||||
true, // global setting
|
||||
{
|
||||
params ["_value"];
|
||||
diag_log format["[milsim] (respawn_reinsertion) enabled set to %1", _value];
|
||||
[
|
||||
"respawn_reinsertion",
|
||||
"SETTING CHANGED",
|
||||
[
|
||||
[
|
||||
"setting",
|
||||
"milsim_respawn_setting_reinsertion_enabled"
|
||||
],
|
||||
["newValue", _value]
|
||||
]
|
||||
] call milsim_fnc_log;
|
||||
}
|
||||
] call CBA_fnc_addSetting;
|
||||
|
||||
@@ -149,7 +159,17 @@
|
||||
true, // global setting
|
||||
{
|
||||
params ["_value"];
|
||||
diag_log format["[milsim] (respawn_reinsertion) maxRangeToReady set to %1", _value];
|
||||
[
|
||||
"respawn_reinsertion",
|
||||
"SETTING CHANGED",
|
||||
[
|
||||
[
|
||||
"setting",
|
||||
"milsim_respawn_setting_reinsertion_maxRangeToReady"
|
||||
],
|
||||
["newValue", _value]
|
||||
]
|
||||
] call milsim_fnc_log;
|
||||
}
|
||||
] call CBA_fnc_addSetting;
|
||||
|
||||
@@ -162,34 +182,63 @@
|
||||
true, // global setting
|
||||
{
|
||||
params ["_value"];
|
||||
diag_log format["[milsim] (respawn_reinsertion) pilotForcedCheckEnabled set to %1", _value];
|
||||
[
|
||||
"respawn_reinsertion",
|
||||
"SETTING CHANGED",
|
||||
[
|
||||
[
|
||||
"setting",
|
||||
"milsim_respawn_setting_reinsertion_pilotForcedCheckEnabled"
|
||||
],
|
||||
["newValue", _value]
|
||||
]
|
||||
] call milsim_fnc_log;
|
||||
}
|
||||
] call CBA_fnc_addSetting;
|
||||
|
||||
[
|
||||
"milsim_respawn_setting_reinsertion_pilotForcedCheckInterval", // variable
|
||||
"SLIDER", // type
|
||||
["Pilot Check Interval", "Pilots will be force shown the queue if they haven't checked it in X seconds"], // title
|
||||
"TIME", // type
|
||||
["Pilot Forced Check Interval", "Pilots will be force shown the queue if they haven't checked it in X seconds"], // title
|
||||
["17th Battalion", "Re-insert Queue"], // category
|
||||
[60*10, 60*30, 60*20, 0, false], // [_min, _max, _default, _trailingDecimals, _isPercentage
|
||||
[60*5, 60*30, 60*10], // [_min, _max, _default]
|
||||
true,
|
||||
{
|
||||
params ["_value"];
|
||||
diag_log format["[milsim] (respawn_reinsertion) pilotForcedCheckInterval set to %1", _value];
|
||||
|
||||
[
|
||||
"respawn_reinsertion",
|
||||
"SETTING CHANGED",
|
||||
[
|
||||
[
|
||||
"setting",
|
||||
"milsim_respawn_setting_reinsertion_pilotForcedCheckInterval"
|
||||
],
|
||||
["newValue", _value]
|
||||
]
|
||||
] call milsim_fnc_log;
|
||||
}
|
||||
] call CBA_fnc_addSetting;
|
||||
|
||||
[
|
||||
"milsim_respawn_setting_reinsertion_timeout", // variable
|
||||
"SLIDER", // type
|
||||
["Request Timeout", "How long should at least one person be waiting before prompting a global notification."], // title
|
||||
"milsim_respawn_setting_reinsertion_max_wait", // variable
|
||||
"TIME", // type
|
||||
["Max Wait Threshold", "How long should at least one person be waiting before prompting a global notification."], // title
|
||||
["17th Battalion", "Re-insert Queue"], // category
|
||||
[60*10, 60*30, 60*20, 0, false], // [_min, _max, _default, _trailingDecimals, _isPercentage
|
||||
[60*5, 60*30, 60*20], // [_min, _max, _default]
|
||||
true,
|
||||
{
|
||||
params ["_value"];
|
||||
diag_log format["[milsim] (respawn_reinsertion) timeout set to %1", _value];
|
||||
[
|
||||
"respawn_reinsertion",
|
||||
"SETTING CHANGED",
|
||||
[
|
||||
[
|
||||
"setting",
|
||||
"milsim_respawn_setting_reinsertion_max_wait"
|
||||
],
|
||||
["newValue", _value]
|
||||
]
|
||||
] call milsim_fnc_log;
|
||||
}
|
||||
] call CBA_fnc_addSetting;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user