forked from 7Cav/cScripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.sqf
36 lines (30 loc) · 1.23 KB
/
init.sqf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include "cScripts\script_component.hpp"
/*
* Author: CPL.Brostrom.A
* This is the mission init.sqf this is run witout exceptions on mission start.
* Some sections in this script only run when your on a multiplayer enviroment to avoid errors and issues.
* Read more about Initzialisation order here: https://community.bistudio.com/wiki/Initialization_Order
*/
if (!isMultiplayer) then {["Mission is running on singelplayer enviroment!", "", true] call FUNC(warning)};
#ifdef DEBUG_MODE
["init Initializing.", "init"] call FUNC(info);
[format["cScripts Version %1 is running.",VERSION], "init"] call FUNC(info);
[format["Debug mode is currently active."], "init", true] call FUNC(warning);
logEntities;
#endif
// ACRE radio init
if (isMultiplayer) then {
GVAR(Radio) = false;
["Setting up ACRE preset...", "init"] call FUNC(info);
call EFUNC(gear,setupRadios);
GVAR(Radio) = true;
} else {
["Mission in singelplayer enviroment ACRE radio preset will not be set!", "init", true] call FUNC(warning);
};
enableSaving [false, false];
ACE_maxWeightCarry = 7500;
ACE_maxWeightDrag = 10000;
#ifdef DEBUG_MODE
["init initialization completed.", "init"] call FUNC(info);
#endif
/* APPLY STUFF ONLY BELOW THIS LINE */