-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinitPlayerLocal.sqf
85 lines (64 loc) · 2.38 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*
@filename: initPlayerLocal.sqf
Author:
Quiksilver
Last modified:
12/05/2014
Description:
Client scripts and event handlers.
______________________________________________________*/
enableSentences false;
//------------------- client executions
_null = [] execvm "scripts\vehicle\crew\crew.sqf"; // vehicle HUD
_null = [] execVM 'scripts\group_manager.sqf'; // group manager
_null = [] execVM "scripts\restrictions.sqf"; // gear restrictions
_null = [] execVM "scripts\pilotCheck.sqf"; // pilots only
_null = [] execVM "scripts\safezone.sqf"; // spawn protection
_null = [] execVM "scripts\jump.sqf"; // jump action
_null = [] execVM "scripts\misc\diary.sqf"; // diary tabs
_null = [] execVM "scripts\vehicle\fastrope\zlt_fastrope.sqf"; // heli rope
_null = [] execVM "scripts\icons.sqf"; // blufor map tracker
//-------------------- PVEHs
"showNotification" addPublicVariableEventHandler
{
private ["_type", "_message"];
_array = _this select 1;
_type = _array select 0;
_message = "";
if (count _array > 1) then { _message = _array select 1; };
[_type, [_message]] call BIS_fnc_showNotification;
};
"GlobalHint" addPublicVariableEventHandler
{
private ["_GHint"];
_GHint = _this select 1;
hint parseText format["%1", _GHint];
};
"hqSideChat" addPublicVariableEventHandler
{
_message = _this select 1;
[WEST,"HQ"] sideChat _message;
};
"addToScore" addPublicVariableEventHandler
{
((_this select 1) select 0) addScore ((_this select 1) select 1);
};
"radioTower" addPublicVariableEventHandler
{
"radioMarker" setMarkerPosLocal (markerPos "radioMarker");
"radioMarker" setMarkerTextLocal (markerText "radioMarker");
"radioCircle" setMarkerPosLocal (markerPos "radioCircle");
};
"sideMarker" addPublicVariableEventHandler
{
"sideMarker" setMarkerPosLocal (markerPos "sideMarker");
"sideCircle" setMarkerPosLocal (markerPos "sideCircle");
"sideMarker" setMarkerTextLocal format["Side Mission: %1",sideMarkerText];
};
"priorityMarker" addPublicVariableEventHandler
{
"priorityMarker" setMarkerPosLocal (markerPos "priorityMarker");
"priorityCircle" setMarkerPosLocal (markerPos "priorityCircle");
"priorityMarker" setMarkerTextLocal format["Priority Target: %1",priorityTargetText];
};
tawvd_disablenone = false;