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
77 lines (67 loc) · 2.22 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
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_Flecktarn_Uniform";
player addHeadGear "ARC_Partners_Cap_TM";
player addVest "ARC_GER_Flecktarn_Plate_Carrier";
player addMagazine "HandGrenade";
}else{
player addUniform "ARC_GER_Flecktarn_Uniform";
player addHeadGear "ARC_GER_Flecktarn_Helmet_Light";
player addVest "ARC_GER_Flecktarn_Plate_Carrier";
};
}else{
player linkItem "ItemGPS";
player addUniform "U_Marshal";
player addHeadGear "H_Cap_police";
player addVest "V_TacVest_blk_POLICE";
[] spawn {
while {alive player} do {
waitUntil {uniform player != "U_Marshal" || headGear player != "H_Cap_police" || vest player != "V_TacVest_blk_POLICE"};
{deleteVehicle _x} forEach (nearestObjects[player,["WeaponHolder"],3]);
removeHeadGear player;
removeVest player;
removeUniform player;
player addUniform "U_Marshal";
player addHeadGear "H_Cap_police";
player addVest "V_TacVest_blk_POLICE";
};
};
};
};
case opfor: {
//"respawn_west" setmarkeralphalocal 0;
{_x setMarkerColorLocal "ColorRed"; _x setMarkerTextLocal " VIP eliminieren"}forEach ["helimark","rogainmark","generalmark","dockmark"];
{_x setMarkerTextLocal " VIP eliminieren (Blufor-Gebiet)"}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";