Skip to content

Commit 97bcabc

Browse files
authored
Added voice chat
1 parent bc9ef6e commit 97bcabc

File tree

4 files changed

+34
-0
lines changed

4 files changed

+34
-0
lines changed

addons/AIO_AIMENU/Resupply.sqf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,16 @@ AIO_resupply_fnc =
8686
_unit = _this select 0;
8787
_suppVeh = (_this select 1) select 0;
8888
_action = (_this select 1) select 1;
89+
if (AIO_useVoiceChat) then {
90+
_action spawn {
91+
private _dummy = "#particlesource" createVehicleLocal ASLToAGL getPosWorld player;
92+
if (_this == 1) then {_dummy say2D "AIO_say_Rearm"};
93+
if (_this == 2) then {_dummy say2D "AIO_say_RefuelVeh"};
94+
if (_this == 3) then {_dummy say2D "AIO_say_RepairVeh"};
95+
sleep 2;
96+
deleteVehicle _dummy;
97+
};
98+
};
8999
_veh = vehicle _unit;
90100
_commander = effectiveCommander _veh;
91101
_cond = (_commander != _unit && _commander != player);

addons/AIO_AIMENU/disassemble.sqf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ if !(_static isKindOf "StaticWeapon") exitWith {};
44
_vehclass = typeOf _static;
55
_vehname = getText (configFile >> "CfgVehicles" >> _vehclass >> "displayName");
66
player groupChat (format ["Disassemble that %1 .", _vehname]);
7+
if (AIO_useVoiceChat) then {
8+
[] spawn {
9+
private _dummy = "#particlesource" createVehicleLocal ASLToAGL getPosWorld player;
10+
_dummy say2D "AIO_say_Disassemble";
11+
sleep 2;
12+
deleteVehicle _dummy;
13+
};
14+
};
715
if (count _units == 2) then {
816
_unit1 = _units select 0;
917
_unit2 = _units select 1;

addons/AIO_AIMENU/inventory.sqf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
private ["_selectedUnits", "_target", "_unit", "_tarPos"];
22
_selectedUnits = _this select 0;
33
_tarPos = screenToWorld [0.5,0.5];
4+
if (AIO_useVoiceChat) then {
5+
[] spawn {
6+
private _dummy = "#particlesource" createVehicleLocal ASLToAGL getPosWorld player;
7+
_dummy say2D "AIO_say_OpenPack";
8+
sleep 2;
9+
deleteVehicle _dummy;
10+
};
11+
};
412
if (count _selectedUnits == 1) then {
513
_target = cursorTarget;
614
if !(isNull _target) then {_tarPos = getPos _target};

addons/AIO_AIMENU/rearm.sqf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ if (_mode == 2) then {
1010
if (_mode == 3) then {_target = _this select 2};
1111

1212
player groupChat "Rearm.";
13+
if (AIO_useVoiceChat) then {
14+
[] spawn {
15+
private _dummy = "#particlesource" createVehicleLocal ASLToAGL getPosWorld player;
16+
_dummy say2D "AIO_say_Rearm";
17+
sleep 2;
18+
deleteVehicle _dummy;
19+
};
20+
};
1321

1422
AIO_moveToRearm =
1523
{

0 commit comments

Comments
 (0)