Switch say2D to playSound

This commit is contained in:
esteldunedain 2016-07-07 10:51:34 -03:00
parent ce0da11aed
commit 7a25c53dd3
2 changed files with 2 additions and 2 deletions

View File

@ -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;
}; };

View File

@ -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);