Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions addons/common/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ GVAR(defaultLoadout) = [[[],[],[],[],[],[],"","",[],["ItemMap","","","ItemCompas
systemChat format ["[%1] %2", _callsign, _text];
}] call CBA_fnc_addEventHandler;

[QGVAR(radioBroadcastAudio), {
params ["_sound"];

if !([[MACRO_RADIOS]] call EFUNC(common,hasItem)) exitWith {};

playSound _sound;
}] call CBA_fnc_addEventHandler;

[QGVAR(chromA), {
params ["_duration", "_commitTime"];
[_duration, _commitTime] call FUNC(chromaticEffect);
Expand Down
2 changes: 1 addition & 1 deletion addons/main/script_version.hpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define MAJOR 2
#define MINOR 0
#define PATCH 0
#define BUILD 1
#define BUILD 2
2 changes: 1 addition & 1 deletion addons/supply_drop/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if (!GVAR(enabled)) exitWith {};
GVAR(dropZones) = [];
GVAR(activeDrops) = [];

["CBA_settingsInitialized", {
["CBA_loadingScreenDone", {
[] call FUNC(convertToArray);
[] call FUNC(loop);
[] call FUNC(cleanCheck);
Expand Down
4 changes: 4 additions & 0 deletions addons/supply_drop/functions/fnc_airSequence.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ _heliGroup move _dropZone;
format [localize LSTRING(EnRoute), _dropZone]
]] call CBA_fnc_globalEvent;

private _radioSound = selectRandom ["RadioAmbient2", "RadioAmbient8"];

[QEGVAR(common,radioBroadcastAudio), [_radioSound]] call CBA_fnc_globalEvent;

// Blacklist all objects from saving
_heli setVariable [QGRADGVAR(persistence,isExcluded), true];
_crate setVariable [QGRADGVAR(persistence,isExcluded), true];
Expand Down
6 changes: 6 additions & 0 deletions addons/supply_drop/functions/fnc_dropSequence.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ _heli flyInHeight 100;
localize LSTRING(Dropping)
]] call CBA_fnc_globalEvent;

private _radioSound = selectRandom ["RadioAmbient2", "RadioAmbient8"];
[QEGVAR(common,radioBroadcastAudio), [_radioSound]] call CBA_fnc_globalEvent;

[{
params ["_heliGroup", "_heli", "_crate"];

Expand Down Expand Up @@ -56,6 +59,9 @@ _heli flyInHeight 100;
localize LSTRING(Delivered)
]] call CBA_fnc_globalEvent;

private _radioSound = selectRandom ["RadioAmbient2", "RadioAmbient8"];
[QEGVAR(common,radioBroadcastAudio), [_radioSound]] call CBA_fnc_globalEvent;

[{
params ["_args", "_handle"];
_args params ["_heli", "_smoke", "_flare"];
Expand Down
Loading