61 lines
1.5 KiB
Plaintext
61 lines
1.5 KiB
Plaintext
// Disable saving
|
|
enableSaving[false, false];
|
|
|
|
// Disable radio chatter and sentences
|
|
enableRadio false;
|
|
enableSentences false;
|
|
|
|
// update ace weight settings since arma quadruples the value when an object is loaded into another object
|
|
missionNamespace setVariable ["ACE_maxWeightDrag", 2400];
|
|
missionNamespace setVariable ["ACE_maxWeightCarry", 1800];
|
|
|
|
// Disable RHS radio chatter (if RHS is present)
|
|
if(isClass(configfile >> "CfgPatches" >> "rhs_main")) then {
|
|
rhs_vehicleRadioChatter = 0;
|
|
};
|
|
|
|
// Disable ambient life (rabbits & snakes) once the mission starts
|
|
waitUntil {time > 0};
|
|
enableEnvironment[false, true];
|
|
diag_log text "[MILSIM] (init) ambient life disabled";
|
|
|
|
[
|
|
"saveaar",
|
|
{
|
|
[] remoteExec["ocap_fnc_exportData", 2];
|
|
},
|
|
"admin"
|
|
] call CBA_fnc_registerChatCommand;
|
|
|
|
[
|
|
"respawn",
|
|
{
|
|
_clientID = _thisArgs select 0;
|
|
player setDamage 1;
|
|
format["[MILSIM] (init) %1 claims they were glitched and respawned - %2", name player, netID player] remoteExec["diag_log", 2];
|
|
format["%1 claims they were glitched and respawned (%2)", name player, netID player] remoteExec["systemChat", -_clientID];
|
|
},
|
|
"all",
|
|
[clientOwner]
|
|
] call CBA_fnc_registerChatCommand;
|
|
|
|
diag_log text "[MILSIM] (init) OCAP chat handler registered";
|
|
|
|
|
|
[
|
|
"milsim_sideChat",
|
|
"CHECKBOX",
|
|
"Enable Side Chat Text",
|
|
"17th Batallion",
|
|
false,
|
|
true,
|
|
{
|
|
params ["_value"];
|
|
missionNamespace setVariable["milsim_sideChat", _value];
|
|
}
|
|
] call CBA_fnc_addSetting;
|
|
|
|
["milsim_sideChat", false] call CBA_settings_fnc_set;
|
|
|
|
diag_log text "[MILSIM] (init) Custom CBA settings initialized";
|