Skip to content

Commit

Permalink
Merge pull request #3878 from acemod/fastroping-sounds-fix
Browse files Browse the repository at this point in the history
Only play fastroping sounds for player
  • Loading branch information
thojkooi authored Jun 11, 2016
2 parents 250e27b + 27c347e commit 1632cb9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions addons/fastroping/functions/fnc_fastRopeLocalPFH.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

0 comments on commit 1632cb9

Please sign in to comment.