mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Switch say2D to playSound
This commit is contained in:
parent
ce0da11aed
commit
7a25c53dd3
@ -8,7 +8,7 @@ class CfgPatches {
|
|||||||
requiredVersion = REQUIRED_VERSION;
|
requiredVersion = REQUIRED_VERSION;
|
||||||
requiredAddons[] = {"ace_explosives"};
|
requiredAddons[] = {"ace_explosives"};
|
||||||
author = ECSTRING(common,ACETeam);
|
author = ECSTRING(common,ACETeam);
|
||||||
authors[] = {"Grey", "Glowbal", "Rocko"};
|
authors[] = {"Grey", "Glowbal", "Rocko", "esteldunedain"};
|
||||||
url = ECSTRING(main,URL);
|
url = ECSTRING(main,URL);
|
||||||
VERSION_CONFIG;
|
VERSION_CONFIG;
|
||||||
};
|
};
|
||||||
|
@ -27,7 +27,7 @@ if (!alive _unit) exitWith {
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (_unit getVariable [QGVAR(isUsingHeadphones), false]) then {
|
if (_unit getVariable [QGVAR(isUsingHeadphones), false]) then {
|
||||||
_unit say2D _soundClass;
|
playSound _soundClass;
|
||||||
} else {
|
} else {
|
||||||
private _posASL = AGLtoASL (_unit modelToWorld (_unit selectionPosition "granat"));
|
private _posASL = AGLtoASL (_unit modelToWorld (_unit selectionPosition "granat"));
|
||||||
[_soundClass, _posASL, 5, 15] call EFUNC(common,playConfigSound3D);
|
[_soundClass, _posASL, 5, 15] call EFUNC(common,playConfigSound3D);
|
||||||
|
Loading…
Reference in New Issue
Block a user