45 lines
987 B
Plaintext
45 lines
987 B
Plaintext
#include "..\script_component.hpp"
|
|
|
|
if ( !hasInterface ) exitWith {};
|
|
|
|
["milsim_logText", {
|
|
params [["_strArray", [""], [[]]]];
|
|
{
|
|
diag_log text _x;
|
|
} forEach _strArray;
|
|
}] call CBA_fnc_addEventHandler;
|
|
|
|
// make sure the server has finished init
|
|
waitUntil {!isNil QGVARMAIN(complete)};
|
|
|
|
["InitializePlayer", [player, true]] call BIS_fnc_dynamicGroups;
|
|
|
|
// Initialize a holder for managing local diary records
|
|
// store records in format:
|
|
// [subject, [
|
|
// [title, diaryRecord]
|
|
// ]]
|
|
EGVAR(common,diaryRecords) = createHashMap;
|
|
|
|
|
|
// initialize other modules
|
|
call EFUNC(mapcopy,initClient);
|
|
call EFUNC(rasptools,initClient);
|
|
call EFUNC(reinsert,initClient);
|
|
call EFUNC(resupply,initClient);
|
|
call EFUNC(triageIcons,initClient);
|
|
call EFUNC(vehicleFlags,initClient);
|
|
call EFUNC(fbcb2_main,initClient);
|
|
call EFUNC(fbcb2_assets,initClient);
|
|
|
|
|
|
[
|
|
LEVEL_DEBUG,
|
|
QUOTE(COMPONENT),
|
|
"initClient complete",
|
|
[]
|
|
] call EFUNC(common,log);
|
|
|
|
localNamespace setVariable [QGVAR(complete), true];
|
|
|
|
nil; |