-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.sqf
139 lines (109 loc) · 4.55 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
if(!hasInterface && !isDedicated) then {
execVM "hc\init.sqf";
};
if(isDedicated || isServer) then{
execVM "hc\init.sqf";
};
waitUntil {!isNull player};
waitUntil {player == player};
// TFAR Radio settings
tf_no_auto_long_range_radio = true;
tf_same_sw_frequencies_for_side = true;
tf_same_lr_frequencies_for_side = true;
TF_give_microdagr_to_soldier = false;
_settingsSwWest = false call TFAR_fnc_generateSwSettings;
_settingsSwWest set [2, ["200","120","130","140","150"]];
tf_freq_west = _settingsSwWest;
_settingsLrWest = false call TFAR_fnc_generateLrSettings;
_settingsLrWest set [2, ["50"]];
tf_freq_west_lr = _settingsLrWest;
memberIDArray = ["_SP_PLAYER_","76561198078628958", "76561198010598279", "76561198061214513", "76561198051847668","76561198050512686", "76561198050180681", "76561198039562456", "76561198018609662","76561198013509033", "76561198010876571", "76561198007975082", "76561198001649761", "76561197985821395", "76561197981096983", "76561197970591603", "76561198100339755", "76561198084557194","76561198077371253", "76561198076461963", "76561198072105856", "76561198067385164", "76561198062338085", "76561198061797079","76561198054727971","76561198070630639","76561198018806047","76561197981208292", "76561197996044352"];
execVM "tao\restrict\RadioChannels.sqf";
execVM "lib\cleanup.sqf";
execVM "lib\bodyremove.sqf";
//execVM "tao\restrict\base.sqf";
execVM "tao\restrict\pilot.sqf";
execVM "tao\restrict\Radio.sqf";
russiancheck = 0;
if(isServer) then
{
_serverID = str(round((random(100000)) + random 10000));
profileNameSpace setVariable ["TWC_ServerID",_serverID];
TWCserverID = profileNameSpace getVariable "TWC_ServerID";
publicVariable "TWCserverID";
};
waitUntil {!isNull player};
waitUntil {player == player};
null = execVM "client\sys_Member\Timeplayed.sqf";
if ((getplayerUID player) in memberIDArray) then {
_Time = ['TWC_Timeplayed','Time Played','', {[] call TWC_fnc_timePlayed},{true}] call ace_interact_menu_fnc_createAction;
[player, 1, ["ACE_SelfActions"], _Time] call ace_interact_menu_fnc_addActionToObject;
};
if (InsP_playerCiv) then {
execVM "client\sys_humanCiv\Markers.sqf";
call InsP_fnc_spawnSelect;
};
if (isNil "nonQuestionableList") then {
nonQuestionableList = [];
publicVariable "nonQuestionableList";
};
QuestionPersonAction = ["QuestionPerson","Question Person","",{call InsP_fnc_questionDisplay},{alive (_this select 0)}] call ace_interact_menu_fnc_createAction;
["C_man_1", 0, ["ACE_MainActions"], QuestionPersonAction] call ace_interact_menu_fnc_addActionToClass;
// IED defuse action
local _defuseAction = [
"InsP_defuse_ied",
"Disarm",
"",
{
params ["_args"];
_args params ["_ied"];
[
5,
[_ied],
{
params ["_args"];
_args params ["_ied"];
local _trigger = _ied getVariable ["InsP_trigger", objNull];
deleteVehicle _trigger;
deleteVehicle _ied;
InsP_iedDestroyed = InsP_iedDestroyed + 1;
InsP_enemyMorale = InsP_enemyMorale + 0.1;
publicVariable "InsP_iedDestroyed";
publicVariable "InsP_enemyMorale";
},
{},
"Disarming..."
] call ACE_common_fnc_progressBar;
},
{true},
nil,
[_ied]
] call ACE_interact_menu_fnc_createAction;
["IEDLandBig_F", 0, ["ACE_MainActions"], _defuseAction] call ace_interact_menu_fnc_addActionToClass;
["IEDLandSmall_F", 0, ["ACE_MainActions"], _defuseAction] call ace_interact_menu_fnc_addActionToClass;
cutText ["Receiving...", "BLACK", .001];
titleText ["The Wrecking Crew","PLAIN DOWN"];
titleFadeOut 7;
sleep 5;
titleText ["Insurgency Plus","PLAIN DOWN"];
titleFadeOut 7;
sleep 5;
_pilots = ["p21", "p22"];
_apachepilots = ["p23", "p24"];
_humanCivs = ["humanCiv1", "humanCiv2", "humanCiv3"];
if ((str player) in _pilots && (count playableUnits) < 5) then {
["end4", false, 0] call BIS_fnc_endMission;
};
if ((str player) in _apachepilots && ((count playableUnits) <= 13 || !((getPlayerUID player) in memberIDArray))) then {
["end7", false, 0] call BIS_fnc_endMission;
};
if ((str player) in _humanCivs && ((count playableUnits) <= 15 || !((getPlayerUID player) in memberIDArray || (getPlayerUID player) in DeadInsurgents))) then {
["end6", false, 0] call BIS_fnc_endMission;
};
cutText ["", "BLACK IN", 2];
titleText ["Enjoy your stay", "PLAIN"];
titleFadeOut 4;
if (isDedicated) then {
[["patrol1", "patrol2", "patrol3", "patrol4", "patrol5", "patrol6"]] call InsP_fnc_patrolGroup;
};
execVM "client\sys_ambient\ambientCiv.sqf";