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

View File

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