-
Notifications
You must be signed in to change notification settings - Fork 0
/
initPlayerLocal.sqf
42 lines (37 loc) · 1.14 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
if (!hasInterface) then {
#include "config\classnames.hpp";
#include "config\factions.hpp";
#include "config\groups.hpp";
#include "config\missions.hpp";
#include "server\_compile.sqf";
#include "shared\_compile.sqf";
unitArray = [];
unitArrayDelete = [];
vehicleArray = [];
vehicleArrayDelete = [];
playerVehicleArray = [];
} else {
#include "config\factions.hpp";
#include "config\groups.hpp";
#include "client\_compile.sqf";
#include "shared\_compile.sqf";
[] call Phobos_arsenalInit;
[] call Phobos_interactionInterrogate;
[] call Phobos_interactionTalk;
[] call Phobos_logisticsBuild;
[] call Phobos_mapBaseMarkers;
[] call Phobos_mapClick;
[] call Phobos_vehicleSpawnerGround;
[] call Phobos_vehicleSpawnerHeli;
//[] call Phobos_miscHeadgearEss;
//[] call Phobos_miscHeadgearVisor;
["InitializePlayer", [player]] call Phobos_squadmanagerDynamicGroups;
[Phobos_miscPickup, 1] call CBA_fnc_addPerFrameHandler;
[{
if (time - (player getVariable ["phobos_last_fired", 0]) < 60) then {
{
[_x, "COMBAT"] remoteExecCall ["setBehaviour", _x];
} forEach (player nearEntities 100);
};
}, 1] call CBA_fnc_addPerFrameHandler;
};