-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddStartingEquipment.sqf
49 lines (39 loc) · 1.18 KB
/
addStartingEquipment.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
if(gpsSetting == 3 || (gpsSetting == 2 && side player == east ) || (gpsSetting == 1 && side player == west) ) then
{
if("B_UavTerminal" in (items player + assignedItems player)) then
{
player removeMagazine "30Rnd_65x39_caseless_mag";
player removeMagazine "30Rnd_65x39_caseless_mag";
player addItem "ItemGPS";
}
else
{
player addWeapon "ItemGPS";
};
};
if(side player == west) then
{
earplugsIn = false;
1 fadeSound 1;
markDelay = 0;
player addAction ["Mark grid", {
markDelay = time + 5;
[[player, screenToWorld [0.5,0.5], 45], "Mh_fnc_markGrid", side player] call BIS_fnc_MP;
}, [], 6, false, true, "", "markDelay <= time"];
player addAction ["Earplugs in/out", {
if(earplugsIn) then
{
1 fadeSound 1;
earPlugsIn = false;
}
else
{
1 fadeSound 0.2;
earPlugsIn = true;
};
}, [], 0, false, true, "", "true"];
player removeWeapon "Binocular";
player addWeapon "Rangefinder";
player removePrimaryWeaponItem "optic_Hamr";
player removePrimaryWeaponItem "optic_Arco";
};