forked from domuk/404Wasteland-Chernarus
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit.sqf
61 lines (49 loc) · 1.52 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// @file Version: 1.0
// @file Name: init.sqf
// @file Author: [404] Deadbeat
// @file Created: 20/11/2012 05:13
// @file Description: The main init.
// @file Args:
//"Arma2Net.Unmanaged" callExtension "Activate";
if (isnil "RE") then {[] execVM "\ca\Modules\MP\data\scripts\MPframework.sqf"};
StartProgress = false;
enableSaving[false,false];
X_Server = false;
X_Client = false;
X_JIP = false;
hitStateVar = false;
versionName = "v2.6 Dev3";
if(isServer) then { X_Server = true;};
if(!isDedicated) then { X_Client = true;};
if(isNull player) then {X_JIP = true;};
true spawn {
if(!isDedicated) then {
titleText ["Please wait for your player to setup", "BLACK OUT", 1];
waitUntil {player == player};
client_initEH = player addEventHandler ["Respawn", {removeAllWeapons (_this select 0);}];
};
};
//init Wasteland Core
[] execVM "config.sqf";
[] execVM "briefing.sqf";
if(X_Client) then {
[] execVM "client\init.sqf";
player removeWeapon "ItemGPS";
removeAllWeapons player;
removeBackpack player;
enableRadio false;
if(count units group player > 1) then
{
[player] join grpNull;
};
};
if(X_Server) then {
diag_log format["WASTELAND SERVER - Initilizing Server"];
[] execVM "server\init.sqf";
};
//init 3rd Party Scripts
[] execVM "addons\R3F_ARTY_AND_LOG\init.sqf";
[] execVM "addons\proving_Ground\init.sqf";
[0.1, 0.9, 1] execVM "addons\scripts\DynamicWeatherEffects.sqf";
[] execVM "addons\scripts\notherm\twsremove.sqf";
// [300,300] execVM "addons\scripts\cly_removedead\cly_removedead.sqf";