Merge pull request #3878 from acemod/fastroping-sounds-fix

Only play fastroping sounds for player
This commit is contained in:
Glowbal 2016-06-11 21:53:00 +02:00 committed by GitHub
commit 1632cb9105

View File

@ -38,12 +38,14 @@ if (isNull attachedTo _unit) exitWith {
[_unit, "", 2] call EFUNC(common,doAnimation);
_unit setVectorUp [0, 0, 1];
playSound QGVAR(Thud);
if (_unit == ACE_player) then {
playSound QGVAR(Thud);
};
[_pfhHandle] call CBA_fnc_removePerFrameHandler;
};
if (diag_tickTime > _timeToPlayRopeSound) then {
if (_unit == ACE_player && {diag_tickTime > _timeToPlayRopeSound}) then {
_arguments set [4, (_timeToPlayRopeSound + 1)];
playSound QGVAR(Rope);
};