-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.sqf
More file actions
41 lines (31 loc) · 1.3 KB
/
init.sqf
File metadata and controls
41 lines (31 loc) · 1.3 KB
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
37
38
39
40
41
sand_param_startingBalance = 100000;
sand_param_deathCost = 25000;
sand_param_playerInvestment = 2500;
{publicVariable _x} forEach ["sand_param_startingBalance","sand_param_deathCost","sand_param_playerInvestment"];
// ==========================================
// PRE-INIT CALLS
{_x disableTIequipment true;} forEach (allMissionObjects "All");
enableEngineArtillery false;
enableSaving [false,false];
// ==========================================
// GLOBAL EXECUTION
[] execVM "sand_scripts\sand_radio.sqf";
[] execVM "sand_scripts\zlt_fieldrepair.sqf";
[] execVM "sand_scripts\sand_loadoutCreator.sqf";
[] execVM "sand_scripts\sand_pTagInit.sqf";
[] execVM "sand_scripts\greek_gear\IndiGear.sqf";
[] execVM "sand_scripts\sand_NPCinteraction.sqf";
[] execVM "VCOMAI\init.sqf";
// ==========================================
//
waitUntil {time > 1};
if (isServer) then {
// SERVERSIDE EXECUTION
[] execVM "sand_scripts\sand_econInit.sqf";
[] execVM "sand_scripts\supply_requisition\sand_supplyInit.sqf";
};
waitUntil {!isNil "GV_Sand_Balance"};
if !((getPlayerUID player) in GV_Sand_ConnectedIDs) then {
GV_Sand_ConnectedIDs = GV_Sand_ConnectedIDs + [getPlayerUID player]; //add the player uid to the list of uids
GV_Sand_Balance = GV_Sand_Balance + sand_param_playerInvestment; //add the player investment
};