big refactor, WIP!
This commit is contained in:
34
framework/init/functions/fn_setDefaults.sqf
Normal file
34
framework/init/functions/fn_setDefaults.sqf
Normal file
@@ -0,0 +1,34 @@
|
||||
#include "..\script_component.hpp"
|
||||
|
||||
enableSaving[false, false];
|
||||
|
||||
enableRadio false;
|
||||
enableSentences false;
|
||||
|
||||
missionNamespace setVariable ["ACE_maxWeightDrag", 2400];
|
||||
missionNamespace setVariable ["ACE_maxWeightCarry", 1800];
|
||||
|
||||
if(isClass(configfile >> "CfgPatches" >> "rhs_main")) then {
|
||||
rhs_vehicleRadioChatter = 0;
|
||||
};
|
||||
|
||||
waitUntil {time > 0};
|
||||
|
||||
enableEnvironment[false, true];
|
||||
|
||||
[
|
||||
LEVEL_INFO,
|
||||
QUOTE(COMPONENT),
|
||||
"Defaults set",
|
||||
[
|
||||
["enableSaving", [false, false]],
|
||||
["enableRadio", false],
|
||||
["enableSentences", false],
|
||||
["ACE_maxWeightDrag", 2400],
|
||||
["ACE_maxWeightCarry", 1800],
|
||||
["rhs_vehicleRadioChatter", 0],
|
||||
["enableEnvironment", [false, true]]
|
||||
]
|
||||
] call EFUNC(common,log);
|
||||
|
||||
nil;
|
||||
Reference in New Issue
Block a user