-
Notifications
You must be signed in to change notification settings - Fork 0
/
temp.sqf
677 lines (588 loc) · 19.5 KB
/
temp.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
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
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
class rhsusf_acc_premier;
class ItemInfo;
class OpticsModes;
class pso1_scope;
class cgqc_acc_M8541A_wood : rhsusf_acc_premier
{
scope = 2;
author = "silent1";
displayName = "CGQC M8541A Woodland";
model = "\CGQC_2022\acc\cgqc_acc_M8541A_wood";
class ItemInfo : ItemInfo
{
mass = 9;
class OpticsModes : OpticsModes
{
class pso1_scope : pso1_scope
{};
class Mrds
{
opticsID = 2;
useModelOptics = 0;
opticsPPEffects[] = {
""
};
opticsZoomMin = 0.275;
opticsZoomMax = 1.1;
opticsZoomInit = 0.75;
memoryPointCamera = "eye";
visionMode[] = {};
opticsFlare = 0;
opticsDisablePeripherialVision = 0;
distanceZoomMin = 200;
distanceZoomMax = 200;
cameraDir = "";
};
};
};
};
// *------------------------------------------------------------------------------
class rhsusf_acc_premier_mrds: rhsusf_acc_premier
{
scope = 2;
displayName = "M8541A SSDS (MRDS)";
author = "$STR_RHSUSF_AUTHOR_FULL";
model = "\rhsusf\addons\rhsusf_weapons\acc\scopes\ph_5_25x_56mm\prem_scope_pt";
class ItemInfo: ItemInfo
{
mass = 9;
class OpticsModes: OpticsModes
{
class pso1_scope: pso1_scope{};
class Mrds
{
opticsID = 2;
useModelOptics = 0;
opticsPPEffects[] = {
""
};
opticsZoomMin = 0.275;
opticsZoomMax = 1.1;
opticsZoomInit = 0.75;
memoryPointCamera = "eye";
visionMode[] = {};
opticsFlare = 0;
opticsDisablePeripherialVision = 0;
distanceZoomMin = 200;
distanceZoomMax = 200;
cameraDir = "";
};
};
};
};
class Item_rhsusf_acc_premier_mrds: Item_Base_F
{
scope = 2;
scopeCurator = 2;
author = "$STR_RHSUSF_AUTHOR_FULL";
displayName = "M8541A SSDS (MRDS)";
vehicleClass = "WeaponAccessories";
editorCategory = "EdCat_WeaponAttachments";
editorSubcategory = "EdSubcat_TopSlot_Optics";
model = "\A3\Weapons_f\dummyweapon.p3d";
class TransportItems
{
class rhsusf_acc_premier_mrds
{
name = "rhsusf_acc_premier_mrds";
count = 1;
};
};
};
// Woodland scope
class ItemInfo;
class OpticsModes;
class pso1_scope;
class rhsusf_acc_premier;
class cgqc_acc_M8541A_wood : rhsusf_acc_premier
{
scope = 2;
author = "silent1";
displayName = "CGQC M8541A Woodland";
model = "\rhsusf\addons\rhsusf_weapons\acc\scopes\ph_5_25x_56mm\prem_scope_pt";
hiddenSelectionsTextures[] = {
"\CGQC_2022\acc\Optic_EndPart_Ca.paa"
"\CGQC_2022\acc\rhs_pred_tac_sight_co.paa"
"\CGQC_2022\acc\rmr_lens_ca.paa"
"\CGQC_2022\acc\cgqc_scope_mrds_wood.paa"
"\CGQC_2022\acc\collimdot_red_ca.paa"
"\CGQC_2022\acc\cgqc_scope_M8541A_wood.paa"
};
class ItemInfo : ItemInfo
{
mass = 9;
class OpticsModes : OpticsModes
{
class pso1_scope : pso1_scope
{};
class Mrds
{
opticsID = 2;
useModelOptics = 0;
opticsPPEffects[] = {
""
};
opticsZoomMin = 0.275;
opticsZoomMax = 1.1;
opticsZoomInit = 0.75;
memoryPointCamera = "eye";
visionMode[] = {};
opticsFlare = 0;
opticsDisablePeripherialVision = 0;
distanceZoomMin = 200;
distanceZoomMax = 200;
cameraDir = "";
};
};
};
};
class rhsusf_acc_anpeq15_bk: rhsusf_acc_anpeq15
{
picture = "\rhsusf\addons\rhsusf_inventoryicons\data\accessories\rhsusf_acc_anpeq15_bk_ca.paa";
author = "$STR_RHSUSF_AUTHOR_FULL";
displayName = "$STR_RHSUSF_ACC_PEQ15SURE_BK_Laser";
weaponInfoType = "RHS_Flashlight2";
rhs_acc_combo = "rhsusf_acc_anpeq15_bk_light";
model = "\rhsusf\addons\rhsusf_weapons\acc\lasers\ANPEQ15\PEQ15_A3_BK_top";
rhs_anpeq15_base = "rhsusf_acc_anpeq15_bk";
};
class rhsusf_acc_anpeq15_bk_light: rhsusf_acc_anpeq15_light
{
picture = "\rhsusf\addons\rhsusf_inventoryicons\data\accessories\rhsusf_acc_anpeq15_bk_light_ca.paa";
author = "$STR_RHSUSF_AUTHOR_FULL";
displayName = "$STR_RHSUSF_ACC_PEQ15SURE_BK_Light";
rhs_acc_combo = "rhsusf_acc_anpeq15_bk";
rhs_anpeq15_base = "rhsusf_acc_anpeq15_bk_light";
weaponInfoType = "RHS_Flashlight2";
model = "\rhsusf\addons\rhsusf_weapons\acc\lasers\ANPEQ15\PEQ15_A3_BK_top";
};
// -----------------------------------------------------------------------------------------------
class rhsusf_acc_LEUPOLDMK4_2_d: rhsusf_acc_LEUPOLDMK4_2
{
picture = "\rhsusf\addons\rhsusf_inventoryicons\data\accessories\rhsusf_acc_LEUPOLDMK4_2_d_ca.paa";
displayName = "$STR_RHSUSF_ACC_LEUPOLDMK402_SD_D";
scope = 2;
author = "$STR_RHSUSF_AUTHOR_FULL";
weaponInfoType = "RscWeaponZeroing";
model = "\rhsusf\addons\rhsusf_weapons\acc\scopes\leupoldmk4\leupoldmk4_2_d";
};
class rhsusf_acc_premier: rhsusf_acc_LEUPOLDMK4_2
{
picture = "\rhsusf\addons\rhsusf_inventoryicons\data\accessories\rhsusf_acc_premier_ca.paa";
displayName = "M8541A SSDS";
scope = 2;
author = "$STR_RHSUSF_AUTHOR_FULL";
weaponInfoType = "RscWeaponZeroing";
model = "\rhsusf\addons\rhsusf_weapons\acc\scopes\ph_5_25x_56mm\prem_scope";
class ItemInfo: InventoryOpticsItem_Base_F
{
opticType = 2;
mass = 8;
RMBhint = "Optical Sniper Sight";
optics = 1;
modelOptics = "\rhsusf\addons\rhsusf_weapons\acc\scopes\optics\rhsusf_prem_mildot3";
class OpticsModes
{
class pso1_scope
{
opticsID = 1;
useModelOptics = 1;
opticsPPEffects[] = {
"OpticsCHAbera1", "OpticsBlur1"
};
discreteDistance[] = {
100, 200, 300, 400, 500, 600, 700, 800, 900, 1000, 1100, 1200, 1300, 1400, 1500, 1600, 1700, 1800
};
discreteDistanceInitIndex = 1;
opticsZoomMax = "0.25/3";
opticsZoomMin = "0.25/15";
opticsZoomInit = "0.25/3";
discretefov[] = {
"0.25/3", "0.25/6", "0.25/9", "0.25/12", "0.25/15"
};
discreteInitIndex = 0;
modelOptics[] = {
"\rhsusf\addons\rhsusf_weapons\acc\scopes\optics\rhsusf_prem_mildot3", "\rhsusf\addons\rhsusf_weapons\acc\scopes\optics\rhsusf_prem_mildot6", "\rhsusf\addons\rhsusf_weapons\acc\scopes\optics\rhsusf_prem_mildot9", "\rhsusf\addons\rhsusf_weapons\acc\scopes\optics\rhsusf_prem_mildot12", "\rhsusf\addons\rhsusf_weapons\acc\scopes\optics\rhsusf_prem_mildot15"
};
memoryPointCamera = "opticView";
visionMode[] = {
"Normal"
};
opticsFlare = 1;
opticsDisablePeripherialVision = 1;
distanceZoomMin = 200;
distanceZoomMax = 1800;
cameraDir = "";
};
};
};
};
// Custom boxes
class Extended_Init_EventHandlers
{
class B_CargoNet_01_ammo_F
{
init = "(_this select 0) call (compile preprocessFileLineNumbers 'scripts\barsenalCrate.sqf')";
};
};
//
/oooooooh
class Meteo_EH
{
init = "_this execVM '\a3\Props_F_Enoch\Military\Equipment\scripts\meteo.sqf'";
};
// AUTOPATCH AUTORANK--------------------------------------------------------------------------------------------
// set rank by prefix ----------------------------------------------------------------------------------
_name = name player;
_prefix = _name select[0, 4];
switch (_prefix) do {
case "Sdt.":
{
player setRank "PRIVATE";
hint "Soldat";
};
case "Cpl.":
{
player setRank "CORPORAL";
hint "Caporal";
};
case "CplC":
{
player setRank "CORPORAL";
hint "Caporal-Chef";
};
case "Sgt.":
{
player setRank "SERGEANT";
hint "Sergeant";
};
case "Adju":
{
player setRank "SERGEANT";
hint "Adjudent";
};
case "SLt.":
{
player setRank "LIEUTENANT";
hint "Sous-Lieutenant";
};
case "Lt. ":
{
player setRank "LIEUTENANT";
hint "Lieutenant";
};
case "Capt":
{
player setRank "CAPTAIN";
hint "Capitaine";
};
case "Maj.":
{
player setRank "MAJOR";
hint "Major";
};
case "LCol":
{
player setRank "COLONEL";
hint "Lieutenant-Colonel";
};
case "Col.":
{
player setRank "COLONEL";
hint "Colonel";
};
default
{
player setRank "PRIVATE";
_text = ("<br/>" + "<t size='2' >Bonsoir, Visiteur!</t>" +
"<br/>" + "<t size='1' >Joint nous sur teamspeak: ts.cgqc.ca</t>" +
"<br/>" + "<t size='1' >discord.gg/RCyRKWVG</t>");
[ _text, 0, 0, 3, 2 ] spawn BIS_fnc_dynamicText;
sleep 6;
};
};
// default text if the player is not known
_text = (format["<t size='2' >Bonjour %1</t><br/><t>what's up?</t>", _name]);
// default patch pour les joueurs qui en ont pas de custom
[ player, "cgqc_patch_logo" ] call BIS_fnc_setUnitInsignia;
// Assign patch based on name ------------------------------------------------------------------------------------
sleep 2;
if ((_name find["Audi", 0]) > 0) then {
_text = ("<img size= '6' style='vertical-align:middle' shadow='false' image='\cgqc\patches\cgqc_patch_audi.paa'/>" +
"<br/>" +
"<t size='2' >Yo Audi!</t><br/><t>what's up?</t>");
[ player, "cgqc_patch_audi" ] call BIS_fnc_setUnitInsignia;
};
if ((_name find["Braddock", 0]) > 0) then {
_text = ("<img size= '6' style='vertical-align:middle' shadow='false' image='\cgqc\patches\cgqc_patch_braddock.paa'/>" +
"<br/>" +
"<t size='2' >Yo Mafia!</t><br/><t>what's up?</t>");
// load insignia
[ player, "cgqc_patch_cloutier" ] call BIS_fnc_setUnitInsignia;
};
if ((_name find["Cloutier", 0]) > 0) then {
_text = ("<img size= '6' style='vertical-align:middle' shadow='false' image='\cgqc\patches\cgqc_patch_cloutier.paa'/>" +
"<br/>" +
"<t size='2' >Yo Cloutier!</t><br/><t>Asti que t'es beau</t>");
[ player, "cgqc_patch_cloutier" ] call BIS_fnc_setUnitInsignia;
};
if ((_name find["Comeau", 0]) > 0) then {
_text = ("<img size= '6' style='vertical-align:middle' shadow='false' image='\cgqc\patches\cgqc_patch_comeau.paa'/>" +
"<br/>" +
"<t size='2' >Yo Comeau!</t><br/><t>Asti que t'es beau!</t>");
[ player, "cgqc_patch_comeau" ] call BIS_fnc_setUnitInsignia;
};
if ((_name find["Fortin", 0]) > 0) then {
_text = ("<img size= '6' style='vertical-align:middle' shadow='false' image='\cgqc\patches\cgqc_patch_fortin.paa'/>" +
"<br/>" +
"<t size='2' >Yo Dogo!</t><br/><t>ça roule?</t>");
// load insignia
[ player, "cgqc_patch_fortin" ] call BIS_fnc_setUnitInsignia;
};
if ((_name find["Frechette", 0]) > 0) then {
_text = ("<img size= '6' style='vertical-align:middle' shadow='false' image='\cgqc\patches\cgqc_patch_frechette.paa'/>" +
"<br/>" +
"<t size='2' >Yo Frechette!</t><br/><t>what's up buddy?</t>");
// load insignia
[ player, "cgqc_patch_frechette" ] call BIS_fnc_setUnitInsignia;
};
if ((_name find["Genest", 0]) > 0) then {
_text = ("<img size= '6' style='vertical-align:middle' shadow='false' image='\cgqc\patches\cgqc_patch_genest.paa'/>" +
"<br/>" +
"<t size='2' >Yo petit beurre!</t><br/><t>what's up?</t>");
// load insignia
[ player, "cgqc_patch_genest" ] call BIS_fnc_setUnitInsignia;
};
if ((_name find["Laforest", 0]) > 0) then {
_text = ("<img size= '6' style='vertical-align:middle' shadow='false' image='\cgqc\patches\cgqc_patch_laforest.paa'/>" +
"<br/>" +
"<t size='2' >Yo Frog!</t><br/><t>what's up?</t>");
// load insignia
[ player, "cgqc_patch_laforest" ] call BIS_fnc_setUnitInsignia;
};
if ((_name find["Pinard", 0]) > 0) then {
_text = ("<img size= '6' style='vertical-align:middle' shadow='false' image='\cgqc\patches\cgqc_patch_pinard.paa'/>" +
"<br/>" +
"<t size='2' >Yo PinHard!</t><br/><t>what's up?</t>");
// load insignia
[ player, "cgqc_patch_pinard" ] call BIS_fnc_setUnitInsignia;
};
if ((_name find["Tremblay", 0]) > 0) then {
_text = ("<img size= '6' style='vertical-align:middle' shadow='false' image='\cgqc\patches\cgqc_patch_tremblay.paa'/>" +
"<br/>" +
"<t size='2' >Yo Tremblay!</t><br/><t>what's up Captain'?</t>");
// load insignia
[ player, "cgqc_patch_tremblay" ] call BIS_fnc_setUnitInsignia;
};
if ((_name find["Villeneuve", 0]) > 0) then {
_text = ("<img size= '6' style='vertical-align:middle' shadow='false' image='\cgqc\patches\cgqc_patch_villeneuve.paa'/>" +
"<br/>" +
"<t size='2' >Yo Logic!</t><br/><t>what's up?</t>");
// load insignia
[ player, "cgqc_patch_villeneuve" ] call BIS_fnc_setUnitInsignia;
};
if ((_name find["Woods", 0]) > 0) then {
hint "woods?";
_text = ("<img size= '6' style='vertical-align:middle' shadow='false' image='\cgqc\patches\cgqc_patch_woods.paa'/>" +
"<br/>" +
"<t size='2' >Yo XiPoWnZX!</t><br/><t>what's up?</t>");
// load insignia
[ player, "cgqc_patch_woods" ] call BIS_fnc_setUnitInsignia;
};
// Show text and patch ------------------------------------------------------------------------------------
[ _text, 0, 0, 3, 2 ] spawn BIS_fnc_dynamicText;
// sleep a bit before going out
sleep 4;
// plate carriers
cgqc_vest_mk1_tan
cgqc_vest_mk1_tan_lr
cgqc_vest_mk1_tan_rf
cgqc_vest_mk1_tan_ar
// Ace action attempt
_action = ["Rifleman (Carbine)", "Rôles MK1", "", {
[this] spawn {
execVM "\CGQC_2022\loadouts\mk1_rifleman_carbine.sqf";
};
}, {true}] call ace_interact_menu_fnc_createAction;
[this, 0, ["ACE_MainActions"], _action] call ace_interact_menu_fnc_addActionToObject;
_action = {execVM "\CGQC_2022\loadouts\mk1_rifleman_carbine.sqf";};
_actionCreated = ['Rifleman', 'Rifleman', '', _action, {true}] call ace_interact_menu_fnc_createAction;
[this, 1, ["ACE_MainActions"], _actionCreated] call ace_interact_menu_fnc_addActionToObject;
myaction = ['TestAction 1', 'Test', '', {
hint 'test1';
}, {
true
}] call ace_interact_menu_fnc_createAction;
[player, 1, ["ACE_SelfActions"], myaction] call ace_interact_menu_fnc_addActionToObject;
myaction = ['TestAction 2', 'Test', '', {
hint 'test2';
}, {
true
}] call ace_interact_menu_fnc_createAction;
[player, 1, ["ACE_SelfActions"], myaction] call ace_interact_menu_fnc_addActionToObject;
// Example
_action = ["mytrack","My Track Name","",{params ["_target"]; [_target,"my_track_1"] execVM "KIF_Gramophon\play_track.sqf";},{true}] call ace_interact_menu_fnc_createAction;
[this, 0, ["ACE_MainActions"], _action] call ace_interact_menu_fnc_addActionToObject;
// More example
_actionHeliGo = {execVM "EGX_HeliTransport\OrderHeliGO.sqf";};
_OrderHeliGo = ['OrderHeliGO', 'Order heli GO', '', _actionHeliGo, {true}] call ace_interact_menu_fnc_createAction;
[player, 1, ["ACE_SelfActions"], _OrderHeliGo] call ace_interact_menu_fnc_addActionToObject;
};
// Longer example
private _breakWindowAction = [
"Break_Window",
"Break Window",
["", "#C4D4E0"],
{
params ["_target", "_player", "_params"];
_params params ["_building", "_selectionName"];
_building setHit [_selectionName, 1, true];
}, // statement
{
params ["_target", "_player", "_params"];
_params params ["_building", "_selectionName"];
(_building getHit _selectionName) < 1;
// true;
}, // condition
{}, // child code
[_building, _x], // params
[0,0,0], // position
2, // distance
//[showDisabled,enableInside,canCollapse,runOnHover,doNotCheckLOS] // special params
[false, true, true, false, true]
] call ace_interact_menu_fnc_createAction;
// [typeOf _building, 0, [], _breakWindowAction] call ace_interact_menu_fnc_addActionToClass;
[_helperObject, 0, [], _breakWindowAction] call ace_interact_menu_fnc_addActionToObject;
_this addAction ["Relax", "cgqc_2022\scripts\change_music.sqf", [0]];
_this addAction ["Heavier", "cgqc_2022\scripts\change_music.sqf", [1]];
_this addAction ["Oldies", "cgqc_2022\scripts\change_music.sqf", [2]];
[_this, false] call klpq_musicRadio_fnc_addRadio;
"H_mas_can_opscore_b",
"H_mas_can_opscore_aor1",
"H_mas_can_opscore_g",
"H_mas_can_opscore",
"H_mas_can_opscore_t",
"H_mas_can_opscore_w",
"H_mas_can_opscore_aor2",
"H_mas_can_opscore_gog_b",
"H_mas_can_opscore_gog_aor1",
"H_mas_can_opscore_gog_g",
"H_mas_can_opscore_gog",
"H_mas_can_opscore_gog_t",
"H_mas_can_opscore_gog_w",
"H_mas_can_opscore_gog_aor2"
"H_mas_can_opscorn",
"H_mas_can_opscorn_gog",
cgqc_event_CAS = this addEventHandler ["GetInMan", {
params ["_unit", "_role", "_vehicle", "_turret"];
execVM "scripts\set_unlimited.sqf";
}];
this addEventHandler [
"GetIn", {
params ["_vehicle", "_role", "_unit", "_turret"];
[_vehicle] execVM "scripts\set_unlimited.sqf";
}
];
this addEventHandler [
"GetIn",
{params ["_vehicle", "_role", "_unit", "_turret"];
}
];
_this addEventHandler [
"GetIn", {
[] spawn {
while {true} do {
_this setVehicleAmmo 1;
_this setFuel 1;
hint format ["Re:%1", _this];
sleep 5;
hintSilent "";
};
};
}
];
[] spawn {
waitUntil {cgqc_start_postInitClient_done};
sleep 1;
//["rifle_m16", 1] execVM "\CGQC_2022\loadouts\mk2_role_switch.sqf";
};
// Ballistic mask
G_mas_can_mask
G_mas_can_mask_b
rhsusf_oakley_goggles_clr
// Glasses
G_mas_can_gog
//Shemagh
G_mas_can_shemag_gog
G_mas_can_shemag_gog_l
G_mas_can_shemag_mask
//No goggles
G_mas_can_shemag_low
//Balaclava /ballistic mask
G_mas_can_balaM_T //tan
G_mas_can_balaM_b
//Wrap/shooting glasses
G_mas_can_wrap_gog_T //Tan
G_mas_can_wrap_gog_B //black
lvl 1 // mask
G_mas_can_mask
G_mas_can_mask_b
rhsusf_oakley_goggles_clr
G_mas_can_balaM_T
G_mas_can_balaM_b
lvl 2 // goggles
G_mas_can_gog
G_mas_can_wrap_gog_T
G_mas_can_wrap_gog_B
lvl 3 // Shemag
G_mas_can_shemag_gog
G_mas_can_shemag_gog_l
G_mas_can_shemag_mask
class CGQC_vic_t34: NORTH_FIN_41_T34_76_1941
{
faction = "cgqc";
editorCategory = "EdCat_NORTH_FIN_ArmyW_41";
crew = "I_NORTH_FIN_T_W_41_Crewman";
NORTH_vehicleTimePeriod = 1;
hiddenSelectionsTextures[] = {
"\CGQC\vehicles\T34_twitch_friendly.paa",
"NORTH\NF_vehicles\fin\t26\data\Tracks_CA.paa",
"NORTH\NF_vehicles\fin\t26\data\Tracks_CA.paa",
"\north\NF_vehicles\fin\t26\data\Finnishtankmarkings.paa"
,"\north\NF_vehicles\fin\t26\data\Finnishtankmarkings.paa"};
};
["Gatling_30mm_Plane_CAS_01_F","Rocket_04_HE_Plane_CAS_01_F","Bomb_04_Plane_CAS_01_F"]
["Uns_NapalmLauncher_750_dl","uns_MK82SnakeLauncher_dl","Uns_CBU32BLauncher_dl","uns_ffar_launcher_dl","Uns_Mk84Launcher_dl"]
judge
["uns_suu11a_gunpod_dl","uns_ffar_launcher_dl"]
["uns_M39E","CMFlareLauncher","Uns_ZuniLauncher_dl","uns_AGM12_Launcher_dl","Uns_CBU75Launcher_dl","uns_FuelTank_Launcher_dl"]
["Uns_M2_4x20mm","Uns_CBU14ALauncher_dl","Uns_NapalmLauncher_750_dl","Uns_NapalmLauncher_500_dl","Uns_FFAR_FL_Launcher_dl","uns_suu11a_gunpod_dl","Uns_CBUM1ALauncher_dl"]
[] spawn {
sleep 2;
//Find all valid player exect current
_players = allPlayers - entities "HeadlessClient_F";
_players = _players - [player];
// Initial values
_version = "--- Versions des mods --- <br/>";
_ref_version_core = player getVariable "cgqc_version_core";
_ref_version_addons = player getVariable "cgqc_version_addons";
_version = _version + format ["Référence - Core: %1 - Addons: %2 <br/>", _ref_version_core, _ref_version_addons];
_version = _version + "--------------------------- <br/>";
{
_name = name _x;
_version_core = _x getVariable "cgqc_version_core";
_version_addons = _x getVariable "cgqc_version_addons";
if (isNil "_version_core") then {_version_core = 0};
if (isNil "_version_addons") then {_version_addons = 0};
if !(_version_core isEqualTo _ref_version_core) then { // Bad core version
_version_core = format["<t color='#ff0000'>%1</t>", _version_core];
_name = format["<t color='#ff0000'>%1</t>",_name];
};
if !(_version_addons isEqualTo _ref_version_addons) then { // Bad addons version
_version_addons = format["<t color='#ff0000'>%1</t>", _version_addons];
_name = format["<t color='#ff0000'>%1</t>",_name];
};
_version = _version + format ["%1 - Core: %2 - Addons: %3 <br/>", _name, _version_core, _version_addons]
}forEach _players;
hint parseText format ["%1",_version];
};