mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #3878 from acemod/fastroping-sounds-fix
Only play fastroping sounds for player
This commit is contained in:
@ -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);
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user