From 27c347eec80e975b28e14bff88f8c963d7669793 Mon Sep 17 00:00:00 2001 From: BaerMitUmlaut Date: Sun, 5 Jun 2016 19:39:12 +0200 Subject: [PATCH] Only play fastroping sounds for player --- addons/fastroping/functions/fnc_fastRopeLocalPFH.sqf | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/addons/fastroping/functions/fnc_fastRopeLocalPFH.sqf b/addons/fastroping/functions/fnc_fastRopeLocalPFH.sqf index 3a1e8d5707..72177bce00 100644 --- a/addons/fastroping/functions/fnc_fastRopeLocalPFH.sqf +++ b/addons/fastroping/functions/fnc_fastRopeLocalPFH.sqf @@ -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); };