This repository has been archived by the owner on Jul 22, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
initplayer.sqf
95 lines (82 loc) · 2.97 KB
/
initplayer.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
CUL_fn_Equip = {
removeHeadGear player;
removeVest player;
removeUniform player;
player unassignItem "NVGoggles";
player removeItem "NVGoggles";
removeAllWeapons player;
if (backpack player != "") then {removeBackPack player};
switch (side player) do {
case blufor: {
"respawn_east" setmarkeralphalocal 0;
if (str player != "vip") then {
(group player) setGroupID ["Team Shield"];
if ((str player) in ["s1","s2","s3","s4","s5","s6"]) then {
player linkItem "ItemGPS";
player addUniform "ARC_GER_Tropentarn_Uniform";
player addHeadGear "ARC_UN_M2000";
player addVest "ARC_GER_Tropentarn_Plate_Carrier";
player addMagazine "HandGrenade";
}else{
player addUniform "ARC_GER_Tropentarn_Uniform";
player addHeadGear "ARC_UN_M2000";
player addVest "ARC_GER_Tropentarn_Plate_Carrier";
};
}else{
player linkItem "ItemGPS";
player forceAddUniform "GER_Tropentarn_Officer_Uniform";
player addHeadGear "ARC_Beret_UN";
player addVest "V_PlateCarrier1_blk";
for "_i" from 1 to 2 do {player addItemToUniform "16Rnd_9x21_Mag";};
for "_i" from 1 to 4 do {player addItemToVest "AGM_Bandage";};
for "_i" from 1 to 2 do {player addItemToVest "AGM_Morphine";};
for "_i" from 1 to 2 do {player addItemToVest "AGM_Epipen";};
for "_i" from 1 to 2 do {player addItemToVest "AGM_CableTie";};
player addItemToVest "AGM_EarBuds";
for "_i" from 1 to 8 do {player addItemToVest "16Rnd_9x21_Mag";};
player addGoggles "G_Squares_Tinted";
player addWeapon "hgun_P07_F";
player addWeapon "Binocular";
player linkItem "ItemMap";
player linkItem "ItemCompass";
player linkItem "ItemWatch";
player linkItem "tf_anprc152";
player linkItem "ItemGPS";
[] spawn {
while {alive player} do {
waitUntil {uniform player != "GER_Tropentarn_Officer_Uniform" || headGear player != "ARC_Beret_UN" || vest player != "V_PlateCarrier1_blk"};
{deleteVehicle _x} forEach (nearestObjects[player,["WeaponHolder"],3]);
removeHeadGear player;
removeVest player;
removeUniform player;
player addUniform "GER_Tropentarn_Officer_Uniform";
player addHeadGear "ARC_Beret_UN";
player addVest "V_PlateCarrier1_blk";
};
};
};
};
case opfor: {
//"respawn_west" setmarkeralphalocal 0;
{_x setMarkerColorLocal "ColorRed"; _x setMarkerTextLocal " VIP eliminieren"}forEach ["helimark","rogainmark","generalmark","dockmark"];
{_x setMarkerTextLocal " VIP eliminieren"}forEach ["helimark","rogainmark"];
player addUniform "U_CAF_AG_EEUR_FATIGUES_03";
player addVest "V_TacVest_oli";
};
default {};
};
};
[] call CUL_fn_Equip;
player addEventHandler ["Respawn",{
(_this select 1) spawn {
sleep 3;
hidebody _this;
sleep 5;
deleteVehicle _this;
};
[] spawn CUL_fn_Equip;
}];
waitUntil {time > 0};
player switchMove "amovpercmstpslowwrfldnon";
[] execVM "markAssassins.sqf";
[] execVM "markBlufor.sqf";