added fastroping sounds

This commit is contained in:
nomisum 2016-03-02 22:17:49 +01:00
parent 3cafa9f41b
commit 730e79def0
5 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,12 @@
class CfgSounds {
class ACE_Fastroping_Rope {
name = "ACE_Fastroping_Rope";
sound[] = {PATHTOF(data\sounds\fastroping_rope.ogg), db0, 1.0};
titles[] = {};
};
class ACE_Fastroping_Thud {
name = "ACE_Fastroping_Thud";
sound[] = {PATHTOF(data\sounds\fastroping_thud.ogg), db0, 1.0};
titles[] = {};
};
};

View File

@ -0,0 +1,4 @@
Uses a sound from Tessa Elieff (Freesound.org)
according to Creative Commons Attribution License.
Also sounds from helenacm and Adam_N, both under CC 0. Thanks anyway.

Binary file not shown.

Binary file not shown.

View File

@ -31,10 +31,19 @@ if (animationState _unit != "ACE_FastRoping") exitWith {
[_unit, "ACE_FastRoping", 2] call EFUNC(common,doAnimation);
};
[_unit] spawn {
while {!(isNull attachedTo (_this select 0))} do {
playSound "ACE_Fastroping_Rope";
sleep 1;
};
};
//End of fast rope
if (isNull attachedTo _unit) exitWith {
[_unit, "", 2] call EFUNC(common,doAnimation);
_unit setVectorUp [0, 0, 1];
playSound "ACE_Fastroping_Thud";
[_pfhHandle] call CBA_fnc_removePerFrameHandler;
};