This repository was archived by the owner on May 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathd_init.sqf
More file actions
440 lines (380 loc) · 19.6 KB
/
Copy pathd_init.sqf
File metadata and controls
440 lines (380 loc) · 19.6 KB
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
//#define __DEBUG__
#define THIS_FILE "d_init.sqf"
diag_log [diag_frameno, diag_ticktime, time, "Executing Dom d_init.sqf"];
#include "x_setup.sqf"
private ["_mname","_dtar","_ar","_pos","_nlocs","_nl","_name","_paramName","_h","_first_ar","_second_ar","_targets_list","_wbarracks","_standard_weap","_silenced","_glweaps","_basic","_machineg","_sniper","_atweap","_elem","_armor","_car","_ranover","_ww","_east_targets_ar","_west_targets_ar"];
_productVer = call {productVersion};
if (isNil "_productVer") exitWith {
diag_log "ATTENTION!!! Unknown game version!";
diag_log "Domination ends!";
endMission "LOSER";
};
if (productVersion select 3 < 99343) exitWith {
diag_log "ATTENTION!!! Domination needs a build version higher than 99343 to work!";
diag_log "Domination ends!";
endMission "LOSER";
};
if (isClass (configFile >> "CfgPatches" >> "dayz")) exitWith {
diag_log "ATTENTION!!! Remove the DayZ mod!";
diag_log "Domination ends!";
endMission "LOSER";
};
FUNC(GreyText) = {"<t color='#f0bfbfbf'>" + _this + "</t>"};
FUNC(RedText) = {"<t color='#f0ff0000'>" + _this + "</t>"};
FUNC(BlueText) = {"<t color='#f07f7f00'>" + _this + "</t>"}; //olive
FUNC(YellowText) = {"<t color='#e7e700'>" + _this + "</t>"};
GVAR(HeliHEmpty) = "HeliHEmpty";
if (isNil "paramsArray") then {
if (isClass (missionConfigFile/"Params")) then {
for "_i" from 0 to (count (missionConfigFile/"Params") - 1) do {
_paramName = configName ((missionConfigFile/"Params") select _i);
_paramval = getNumber (missionConfigFile/"Params"/_paramName/"default");
if (_paramval != -99999) then {
__mNsSetVar [_paramName, _paramval];
};
};
};
} else {
for "_i" from 0 to (count paramsArray - 1) do {
_paramval = paramsArray select _i;
if (_paramval != -99999) then {
__mNsSetVar [configName ((missionConfigFile/"Params") select _i), _paramval];
};
};
};
GVAR(enemy_wreck_chance) = 40;
GVAR(WithBackpack) = (GVAR(WithBackpack) == 0);
GVAR(LimitedWeapons) = (GVAR(LimitedWeapons) == 0);
GVAR(WithChopHud) = (GVAR(WithChopHud) == 0);
GVAR(reload_engineoff) = (GVAR(reload_engineoff) == 0);
GVAR(p_marker_dirs) = (GVAR(p_marker_dirs) == 0);
GVAR(v_marker_dirs) = (GVAR(v_marker_dirs) == 0);
GVAR(with_mgnest) = (GVAR(with_mgnest) == 0);
GVAR(with_medtent) = (GVAR(with_medtent) == 0);
GVAR(random_sm_array) = (GVAR(random_sm_array) == 0);
__ccppfln(x_common\x_f\x_functions1.sqf);
__ccppfln(x_common\x_f\x_commonfuncs.sqf);
if (isServer) then {
__ccppfln(x_server\x_f\x_serverfuncs.sqf);
__ccppfln(x_shc\x_f\x_shcfunctions.sqf);
};
__cppfln(x_reload,x_common\x_reload.sqf);
__ccppfln(x_common\x_f\x_netinit.sqf);
__cppfln(FUNC(x_checkkill),x_common\x_checkkill.sqf);
#include "i_common.sqf"
X_INIT = false;X_Server = isServer; X_Client = !isDedicated; X_JIP = false;X_SPE = false;X_MP = isMultiplayer;
#define __waitpl 0 spawn {scriptName "spawn_WaitForNotIsNullPlayer";waitUntil {!isNull player};X_INIT = true}
if (isServer) then {
if (!isDedicated) then {
X_SPE = true;
__waitpl;
} else {
X_INIT = true;
};
} else {
if (isNull player) then {
X_JIP = true;
__waitpl;
} else {
X_INIT = true;
};
};
if (X_Client) then {
if (isMultiplayer) then {
0 spawn {
scriptName "spawn_WaitForX_INIT";
waituntil {X_INIT};
xr_phd_invulnerable = true;
__pSetVar ["ace_w_allow_dam", false];
__pSetVar [QGVAR(p_ev_hd_last), time];
};
};
// dialog related scripts, precompiled to call them from UI EH's to get rid of script scheduling
__cppfln(FUNC(showstatus),x_client\x_showstatus.sqf);
__cppfln(FUNC(showperks),x_client\x_showperks.sqf);
__cppfln(FUNC(settingsdialog),x_client\x_settingsdialog.sqf);
__cppfln(FUNC(pnselchanged),x_msg\x_pnselchanged.sqf);
__cppfln(FUNC(x_dropammoboxd),x_client\x_dropammobox2.sqf);
__cppfln(FUNC(x_loaddropped),x_client\x_loaddropped.sqf);
__cppfln(FUNC(x_deploymhq),x_client\x_deploymhq.sqf);
__cppfln(FUNC(x_teleport),x_client\x_teleport.sqf);
__cppfln(FUNC(x_beam_tele),x_client\x_beam_tele.sqf);
__cppfln(FUNC(x_update_target),x_client\x_update_target.sqf);
__cppfln(FUNC(x_newtask),x_client\x_newtask.sqf);
__cppfln(FUNC(SatellitenBildd),scripts\SatellitenBild.sqf);
__ccppfln(x_client\x_f\x_clientfuncs.sqf);
__ccppfln(x_client\x_f\x_uifuncs.sqf);
__ccppfln(x_client\x_f\x_netinitclient.sqf);
__cppfln(FUNC(checkhelipilot),x_client\x_checkhelipilot.sqf);
__cppfln(FUNC(checkhelipilot_wreck),x_client\x_checkhelipilot_wreck.sqf);
__cppfln(FUNC(checkhelipilotout),x_client\x_checkhelipilotout.sqf);
__cppfln(FUNC(infoText),x_client\x_f\fn_infoText.sqf);
__cppfln(FUNC(getsidemissionclient),x_missions\x_getsidemissionclient.sqf);
__cppfln(FUNC(initvec),x_client\x_initvec.sqf);
__cppfln(FUNC(weaponcargo),x_client\x_weaponcargo.sqf);
bis_fnc_halo = compile preprocessFileLineNumbers "AAHALO\Scripts\fn_halo.sqf";
};
if (isServer) then {
#include "i_server.sqf"
};
if (!isDedicated) then {
#include "i_client.sqf"
};
if (isDedicated) then {
if (GVAR(WithRevive) == 0) then {
__ccppfln(x_revive.sqf);
};
};
[QGVAR(setVectorDirGlobal), {(_this select 0) setVectorDir [(_this select 1),(_this select 2),(_this select 3)]}] call FUNC(NetAddEventSTO);
[QGVAR(setVelocityGlobal), {(_this select 0) setVelocity [(_this select 1),(_this select 2),(_this select 3)]}] call FUNC(NetAddEventSTO);
[0, QGVAR(AirD), {[_this] spawn BIS_Effects_AirDestruction}] call FUNC(NetAddEvent);
[0, QGVAR(AirD2), {_this spawn BIS_Effects_AirDestructionStage2}] call FUNC(NetAddEvent);
[0, QGVAR(Burn), {_this spawn BIS_Effects_Burn}] call FUNC(NetAddEvent);
[0, QGVAR(rep_ar), {_this setDamage 0;_this setFuel 1}] call FUNC(NetAddEvent);
[0, QGVAR(setcapt), {(_this select 0) setCaptive (_this select 1)}] call FUNC(NetAddEvent);
[0, QGVAR(say), {(_this select 0) say3D (_this select 1)}] call FUNC(NetAddEvent);
[0, QGVAR(nswm), {(_this select 0) switchmove (_this select 1)}] call FUNC(NetAddEvent);
[0, QGVAR(eswm), {_this switchmove ""}] call FUNC(NetAddEvent);
[0, QGVAR(del_ruin), {_ruin = nearestObject [_this, "Ruins"];if (!isNull _ruin) then {deleteVehicle _ruin}}] call FUNC(NetAddEvent);
[QGVAR(lv2), {(_this select 0) lock (_this select 1)}] call FUNC(NetAddEventSTO);
[QGVAR(grpl), {(_this select 0) selectLeader (_this select 1)}] call FUNC(NetAddEventSTO);
[QGVAR(joing), {(_this select 1) join (_this select 0)}] call FUNC(NetAddEventSTO);
[0, QGVAR(r_delm), {deleteMarkerLocal _this}] call FUNC(NetAddEvent);
[QGVAR(grpslead), {(_this select 1) selectLeader (_this select 2)}] call FUNC(NetAddEventSTO);
[QGVAR(grpjoin), {[_this select 1] joinSilent (_this select 0)}] call FUNC(NetAddEventSTO);
[QGVAR(setFuel), {(_this select 0) setFuel (_this select 1)}] call FUNC(NetAddEventSTO);
[QGVAR(setvel0), {_this setVelocity [0,0,0]}] call FUNC(NetAddEventSTO);
[QGVAR(engineon), {(_this select 0) engineOn (_this select 1)}] call FUNC(NetAddEventSTO);
if (isServer) then {
[QGVAR(hcready), {
GVAR(HC_CLIENT_READY) = true; /*QGVAR(hcobj) call FUNC(NetRemoveEventCTS)*/
__TRACE_1("HC READY","d_HC_CLIENT_READY");
}] call FUNC(NetAddEventCTS);
[1, QGVAR(m_box), {_this call FUNC(CreateDroppedBox)}] call FUNC(NetAddEvent);
[QGVAR(p_group), {
private "_idx";
_idx = GVAR(player_groups) find (_this select 0);
if (_idx == -1) then {
GVAR(player_groups) set [count GVAR(player_groups), _this select 0];
GVAR(player_groups_lead) set [count GVAR(player_groups_lead), _this select 1];
} else {
GVAR(player_groups_lead) set [_idx, _this select 1]
};
}] call FUNC(NetAddEventCTS);
[QGVAR(p_a), {_this call FUNC(GetPlayerStats)}] call FUNC(NetAddEventCTS);
[QGVAR(air_taxi), {_this execVM "x_server\x_airtaxiserver.sqf"}] call FUNC(NetAddEventCTS);
[1, QGVAR(r_box), {_this call FUNC(RemABox)}] call FUNC(NetAddEvent);
[QGVAR(p_f_b_k), {_this call FUNC(KickPlayerBS)}] call FUNC(NetAddEventCTS);
[QGVAR(p_bs), {_this call FUNC(RptMsgBS)}] call FUNC(NetAddEventCTS);
[QGVAR(pas), {(_this select 0) addScore (_this select 1)}] call FUNC(NetAddEventCTS);
[QGVAR(mr1_l_c), {if (!isNull _this) then {[_this, 1] spawn FUNC(checktransport)}}] call FUNC(NetAddEventCTS);
[QGVAR(mr2_l_c), {if (!isNull _this) then {[_this, 2] spawn FUNC(checktransport)}}] call FUNC(NetAddEventCTS);
[QGVAR(p_varn), {_this call FUNC(GetPlayerArray)}] call FUNC(NetAddEventCTS);
[QGVAR(ad), {__addDead(_this)}] call FUNC(NetAddEventCTS);
[QGVAR(ad2), {(_this select 0) setVariable [QGVAR(end_time), _this select 1];GVAR(allunits_add) set [count GVAR(allunits_add), _this select 0]}] call FUNC(NetAddEventCTS);
[1, QGVAR(p_o_a), {
_ar = GVAR(placed_objs_store) getVariable (_this select 0);
if (isNil "_ar") then {_ar = []};
if (count _ar > 0) then {_ar = _ar - [objNull]};
_ar set [count _ar, _this select 1];
GVAR(placed_objs_store) setVariable [_this select 0, _ar];
((_this select 1) select 0) setVariable [QGVAR(owner), _this select 0];
((_this select 1) select 0) addMPEventhandler ["MPKilled", {_this call FUNC(PlacedObjKilled)}];
}] call FUNC(NetAddEvent);
[1, QGVAR(p_o_r), {
_ar = GVAR(placed_objs_store) getVariable (_this select 0);
if (isNil "_ar") then {_ar = []};
if (count _ar > 0) then {
_ar = _ar - [objNull];
if (count _ar > 0) then {
{
if ((_x select 1) == (_this select 1)) exitWith {_ar set [_forEachIndex, -1]};
} forEach _ar;
_ar = _ar - [-1];
};
};
GVAR(placed_objs_store) setVariable [_this select 0, _ar]
}] call FUNC(NetAddEvent);
[QGVAR(p_o_a2), {
_ar = GVAR(placed_objs_store2) getVariable (_this select 0);
if (isNil "_ar") then {_ar = []};
if (count _ar > 0) then {_ar = _ar - [objNull]};
_ar set [count _ar, _this select 1];
GVAR(placed_objs_store2) setVariable [_this select 0, _ar];
}] call FUNC(NetAddEventCTS);
[QGVAR(p_o_a2r), {
_ar = GVAR(placed_objs_store2) getVariable (_this select 0);
if (isNil "_ar") then {_ar = []};
if (count _ar > 0) then {
_ar = _ar - [_this select 0, objNull];
};
GVAR(placed_objs_store2) setVariable [_this select 0, _ar];
}] call FUNC(NetAddEventCTS);
[QGVAR(x_dr_t), {_this execVM "x_server\x_createdrop.sqf"}] call FUNC(NetAddEventCTS);
[QGVAR(f_ru_i), {[_this] execFSM "fsms\XFacRebuild.fsm"}] call FUNC(NetAddEventCTS);
[QGVAR(ari_type), {_this spawn FUNC(arifire)}] call FUNC(NetAddEventCTS);
[QGVAR(l_v), {if !((_this select 0) in GVAR(wreck_cur_ar)) then {if (local (_this select 0)) then {(_this select 0) lock (_this select 1)} else {[QGVAR(lv2), _this] call FUNC(NetCallEventSTO)}}}] call FUNC(NetAddEventCTS);
[1, QGVAR(mhqdepl), {if (local (_this select 0)) then {(_this select 0) lock (_this select 1)};if (_this select 1) then {(_this select 0) call FUNC(createMHQEnemyTeleTrig)} else {(_this select 0) call FUNC(removeMHQEnemyTeleTrig)}}] call FUNC(NetAddEvent);
[QGVAR(g_p_inf), {_this call FUNC(GetAdminArray)}] call FUNC(NetAddEventCTS);
[QGVAR(ad_deltk), {_this call FUNC(AdminDelTKs)}] call FUNC(NetAddEventCTS);
[QGVAR(crl), {_this call FUNC(ChangeRLifes)}] call FUNC(NetAddEventCTS);
[QGVAR(unit_tkr), {_this call FUNC(TKR)}] call FUNC(NetAddEventCTS);
[QGVAR(kbmsg), {_this call FUNC(DoKBMsg)}] call FUNC(NetAddEventCTS);
[QGVAR(sSetVar), {missionNamespace setVariable [_this select 0, _this select 1]}] call FUNC(NetAddEventCTS);
[QGVAR(sm_var), {GVAR(side_mission_winner) = _this;GVAR(side_mission_resolved) = true;}] call FUNC(NetAddEventCTS);
[QGVAR(sm_poi), {if (_this == 0) then {__INC(GVAR(sm_points_west))} else {__INC(GVAR(sm_points_east))}}] call FUNC(NetAddEventCTS);
[QGVAR(getSM), {execVM "x_missions\x_getsidemission.sqf"}] call FUNC(NetAddEventCTS);
[QGVAR(VehiclePickedUp), {(_this select 0) setVariable [QGVAR(VehiclePickedUp), (_this select 1)]}] call FUNC(NetAddEventCTS);
};
#include "x_missions\x_missionssetup.sqf"
if (X_SPE) then {GVAR(date_str) = date};
if (isServer) then {
[QGVAR(mt_radio_down),true] call FUNC(NetSetJIP);
[QUOTE(mt_radio_pos),[0,0,0]] call FUNC(NetSetJIP);
[QGVAR(mtsm_done),true] call FUNC(NetSetJIP);
[QGVAR(mtsm_pos),[0,0,0]] call FUNC(NetSetJIP);
[QGVAR(mtsm_type),""] call FUNC(NetSetJIP);
[QUOTE(target_clear),false] call FUNC(NetSetJIP);
[QUOTE(all_sm_res),false] call FUNC(NetSetJIP);
[QGVAR(the_end),false] call FUNC(NetSetJIP);
[QUOTE(mr1_in_air),false] call FUNC(NetSetJIP);
[QUOTE(mr2_in_air),false] call FUNC(NetSetJIP);
[QUOTE(ari_available),true] call FUNC(NetSetJIP);
[QUOTE(ari2_available),true] call FUNC(NetSetJIP);
[QGVAR(jet_s_reb),false] call FUNC(NetSetJIP);
[QGVAR(chopper_s_reb),false] call FUNC(NetSetJIP);
[QGVAR(wreck_s_reb),false] call FUNC(NetSetJIP);
[QGVAR(current_target_index),-1] call FUNC(NetSetJIP);
[QGVAR(current_mission_index),-1] call FUNC(NetSetJIP);
[QGVAR(num_ammo_boxes),0] call FUNC(NetSetJIP);
[QUOTE(sec_kind),0] call FUNC(NetSetJIP);
[QUOTE(resolved_targets),[]] call FUNC(NetSetJIP);
[QUOTE(jump_flags),[]] call FUNC(NetSetJIP);
[QGVAR(ammo_boxes),[]] call FUNC(NetSetJIP);
[QGVAR(wreck_marker),[]] call FUNC(NetSetJIP);
[QUOTE(para_available),true] call FUNC(NetSetJIP);
[QGVAR(wreck_hangars_occupied),0] call FUNC(NetSetJIP);
[QGVAR(campscaptured),0] call FUNC(NetSetJIP);
[QGVAR(currentcamps),[]] call FUNC(NetSetJIP);
execVM "x_bikb\kbinit.sqf";
GVAR(X_DropZone) = createVehicle [GVAR(HeliHEmpty), [0, 0, 0], [], 0, "NONE"];
[QUOTE(X_DropZone), GVAR(X_DropZone)] call FUNC(NetSetJIP);
GVAR(AriTarget) = createVehicle [GVAR(HeliHEmpty), [0, 0, 0], [], 0, "NONE"];
[QGVAR(AriTarget),GVAR(AriTarget)] call FUNC(NetSetJIP);
GVAR(AriTarget2) = createVehicle [GVAR(HeliHEmpty), [0, 0, 0], [], 0, "NONE"];
[QGVAR(AriTarget2),GVAR(AriTarget2)] call FUNC(NetSetJIP);
__XJIPSetVar [QGVAR(farps), [], true];
__ccppfln(x_server\x_initx.sqf);
_ranover = random 1;
[QGVAR(overcast),_ranover] call FUNC(NetSetJIP);
_ww = if (_ranover > 0.5) then {if (rain <= 0.3) then {1} else {2}} else {0};
execFSM "fsms\WeatherServer.fsm";
// create random list of targets
if (GVAR(number_targets_h) < 50) then {
GVAR(maintargets_list) = (count GVAR(target_names)) call FUNC(RandomIndexArray);
} else {
switch (true) do {
case (__COVer): {
switch (GVAR(number_targets_h)) do {
case 50: {GVAR(maintargets_list) = [6,14,17,18,0,13,19]};
case 60: {GVAR(maintargets_list) = [5,7,1,16,2]};
case 70: {GVAR(maintargets_list) = [20,3,15,4,9,10,8,11]};
case 90: {GVAR(maintargets_list) = [6,14,5,17,18,0,13,19,1,7,16,2,12,11,8,10,9,4,15,3,20]};
};
};
case (__OAVer): {
switch (GVAR(number_targets_h)) do {
case 50: {GVAR(maintargets_list) = [14,16,12,11,20,19,17,1,0]};
case 60: {GVAR(maintargets_list) = [14,10,9,8,3,2]};
case 70: {GVAR(maintargets_list) = [15,13,7,6,18,5,4,2]};
case 90: {GVAR(maintargets_list) = [14,16,10,20,11,12,19,17,1,0,2,3,8,9,13,15,7,6,18,5,4]};
};
};
};
};
__TRACE_1("","d_maintargets_list")
// create random list of side missions
if (GVAR(random_sm_array)) then {
GVAR(side_missions_random) = GVAR(sm_array) call FUNC(RandomArray);
} else {
GVAR(side_missions_random) = GVAR(sm_array);
};
__TRACE_1("","d_side_missions_random")
GVAR(current_counter) = 0;
GVAR(current_mission_counter) = 0;
// editor varname, unique number, true = respawn only when the chopper is completely destroyed, false = respawn after some time when no crew is in or chopper is destroyed
[
[lift1,301,false,5400],
[lift2,302,false,5400],
[lift3,303,false,5400],
[lift4,304,false,5400],
[transport1,305,false,1500],
[transport2,306,false,1500],
[transport3,307,false,1200],
[light1,308,false,600],
[light2,309,false,600],
[light3,310,false,1200],
[wrk1,311,false,600],
[wrk2,312,false,600],
[atv1,313,false,180],
[atv2,314,false,180],
[atv3,315,false,180],
[atv4,316,false,180],
[atv5,317,false,180],
[atv6,318,false,180],
[atv7,319,false,180],
[atv8,320,false,180]
] execVM "x_server\x_helirespawn2.sqf";
// editor varname, unique number
//0-9 = MHQ, 10-19 = Medic vehicles, 20-29 = Fuel, Repair, Reammo trucks, 30-39 = Engineer Salvage trucks, 40-49 = Transport trucks
[
[mhq1,0],
[mhq2,1],
[ambulance1,10],
[ambulance2,11],
[repair1,20],
[repair2,21],
[repair3,22],
[repair4,23],
[fuel1,30],
[fuel2,31],
[fuel3,32],
[fuel4,33],
[ammo1,40],
[ammo2,41]
] execVM "x_server\x_vrespawn2.sqf";
[
[350, 'A10_US_EP1'],
[351, 'AW159_Lynx_BAF'],
[352, 'AH64D_EP1']
] execVM "x_server\x_getbonus.sqf";
if (!isNil "boat1") then {
execFSM "fsms\Boatrespawn.fsm";
};
[GVAR(wreck_rep),(localize "STR_DOM_MISSIONSTRING_0"),GVAR(heli_wreck_lift_types)] execFSM "fsms\RepWreck.fsm";
GVAR(check_boxes) = [];
__ccppfln(x_server\x_setupserver.sqf);
if (GVAR(MissionType) != 2) then {
execVM "x_server\x_createnexttarget.sqf";
};
GVAR(player_store) = GVAR(HeliHEmpty) createVehicleLocal [0, 0, 0];
GVAR(placed_objs_store) = GVAR(HeliHEmpty) createVehicleLocal [0, 0, 0];
GVAR(placed_objs_store2) = GVAR(HeliHEmpty) createVehicleLocal [0, 0, 0];
onPlayerConnected {[_id, _name, _uid] call compile preprocessFileLineNumbers "x_server\x_serverOPC.sqf"};
onPlayerDisconnected {[_id, _name, _uid] call compile preprocessFileLineNumbers "x_server\x_serverOPD.sqf"};
};
QGVAR(island_marker) setMarkerAlphaLocal 0;
if (!isDedicated) then {
// [QGVAR(wreck_service), getPosASL GVAR(wreck_rep),"ICON","ColorYellow",[1,1],(localize "STR_DOM_MISSIONSTRING_1"),0,"n_service"] call FUNC(CreateMarkerLocal);
// [QGVAR(aircraft_service), getPosASL GVAR(jet_trigger),"ICON","ColorYellow",[1,1],(localize "STR_DOM_MISSIONSTRING_2"),0,"n_service"] call FUNC(CreateMarkerLocal);
// [QGVAR(chopper_service), getPosASL GVAR(chopper_trigger),"ICON","ColorYellow",[1,1],(localize "STR_DOM_MISSIONSTRING_3"),0,"n_service"] call FUNC(CreateMarkerLocal);
// [QGVAR(vehicle_service), getPosASL GVAR(vecre_trigger),"ICON","ColorYellow",[1,1],(localize "STR_DOM_MISSIONSTRING_4"),0,"n_service"] call FUNC(CreateMarkerLocal);
["Ammobox Reload", getPosASL GVAR(AMMOLOAD),"ICON","ColorYellow",[1,1],(localize "STR_DOM_MISSIONSTRING_5"),0,"Depot"] call FUNC(CreateMarkerLocal);
[QGVAR(teleporter), getPosASL GVAR(FLAG_BASE),"ICON","ColorYellow",[1,1],(localize "STR_DOM_MISSIONSTRING_6"),0,"mil_flag"] call FUNC(CreateMarkerLocal);
};
GVAR(init_processed) = true;
if (!isMultiplayer && {!isDedicated}) then {
GVAR(player_stuff) = [GVAR(AutoKickTime), time, "", 0, str(player), sideUnknown, name player, 0, xr_max_lives, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
GVAR(player_store) setVariable ["", GVAR(player_stuff)];
};
diag_log [diag_frameno, diag_ticktime, time, "Dom d_init.sqf processed"];