This repository has been archived by the owner on Jul 17, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinitPlayerLocal.sqf
58 lines (50 loc) · 2.47 KB
/
initPlayerLocal.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
// by Xeno
//#define __DEBUG__
#define THIS_FILE "initPlayerLocal.sqf"
#include "x_setup.sqf"
diag_log [diag_frameno, diag_ticktime, time, "Executing MPF initPlayerLocal.sqf"];
__TRACE_1("","_this")
if (hasInterface) then {
["InitializePlayer", [player]] call BIS_fnc_dynamicGroups;
};
if (!isnil "_neededaddons") then {
_missingaddons = [];
{
if (activatedAddons find _x == -1) then {
_missingaddons pushBack _x;
};
} forEach _neededaddons;
if ((count _missingaddons) > 0) then {
player setPos [10,10,100000];
player enableSimulation false;
_null = [player,_missingaddons] call tf47_fnc_showmissingaddonsdiag;
diag_log "TF47 ---- LOG ---- MISSING ADDONS ---- START";
diag_log _missingaddons;
diag_log "TF47 ---- LOG ---- MISSING ADDONS ---- END";
sleep 10;
_null = [player,_missingaddons] call tf47_fnc_showmissingaddonsdiag;
sleep 30;
endmission "End6";
} else {
_null = _this execVM "tf47CoreScripts\infantryInit.sqf";
_null = [] execVM "tf47\VA.sqf";
};
};
execVM "tasks.sqf";
[] call tf47_battlemanager_fnc_initBattleManager;
0 enableChannel [false, false]; //0 = Global
1 enableChannel [false, false]; //1 = Side
2 enableChannel [false, false]; //2 = Command
3 enableChannel [false, false]; //3 = Group
4 enableChannel [false, false]; //4 = Vehicle
// Box Spawn
boxSpawnSign addAction ["<t color='#00FF00'>Wheel</t>", "_this spawn tf47_fnc_spawnThing", ["ACE_Wheel",""]];
boxSpawnSign addAction ["<t color='#00FF00'>Track</t>", "_this spawn tf47_fnc_spawnThing", ["ACE_Track",""]];
boxSpawnSign addAction ["<t color='#00FF00'>Empty Box</t>", "_this spawn tf47_fnc_spawnThing", ["Box_NATO_Ammo_F","emptyBox"]];
boxSpawnSign addAction ["<t color='#00FF00'>Weapon Box</t>", "_this spawn tf47_fnc_spawnThing", ["Box_NATO_Wps_F","weaponBox"]];
boxSpawnSign addAction ["<t color='#00FF00'>AntiTank Box</t>", "_this spawn tf47_fnc_spawnThing", ["Box_NATO_WpsLaunch_F","ATBox"]];
boxSpawnSign addAction ["<t color='#00FF00'>AntiAir Box</t>", "_this spawn tf47_fnc_spawnThing", ["Box_NATO_WpsLaunch_F","AABox"]];
boxSpawnSign addAction ["<t color='#00FF00'>Ammo Box</t>", "_this spawn tf47_fnc_spawnThing", ["Box_NATO_Ammo_F","AmmoBox"]];
boxSpawnSign addAction ["<t color='#00FF00'>Medical Box</t>", "_this spawn tf47_fnc_spawnThing", ["ACE_medicalSupplyCrate_advanced",""]];
boxSpawnSign addAction ["<t color='#00FF00'>Explosive Box</t>", "_this spawn tf47_fnc_spawnThing", ["Box_NATO_AmmoOrd_F",""]];
diag_log [diag_frameno, diag_ticktime, time, "MPF initPlayerLocal.sqf processed"];