Merge pull request #3517 from gruppe-adler/master

Added fastroping sounds
This commit is contained in:
Glowbal 2016-05-07 22:01:21 +02:00
commit 1ad348d415
5 changed files with 32 additions and 0 deletions

View File

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

View File

@ -0,0 +1,6 @@
Source sounds are adapted and changed.
**Fastroping_Rope (fastroping_rope.ogg):**
"[Rub.aif](http://freesound.org/people/le_abbaye_Noirlac/sounds/129471/)" by [Tessa Elieff](http://freesound.org/people/le_abbaye_Noirlac/) is [CreativeCommons Attributions 3.0](http://creativecommons.org/licenses/by/3.0/)
All other sounds from helenacm and Adam_N, both under Creative Commons 0 (no attribution required).

Binary file not shown.

Binary file not shown.

View File

@ -29,12 +29,26 @@ if (animationState _unit != "ACE_FastRoping") exitWith {
_unit disableCollisionWith _dummy;
_unit attachTo [_dummy, [0, 0, -1.45]];
[_unit, "ACE_FastRoping", 2] call EFUNC(common,doAnimation);
[{
params ["_args", "_idPFH"];
_args params ["_unit"];
if (isNull (attachedTo _unit)) exitWith {
[_idPFH] call CBA_fnc_removePerFrameHandler;
};
playSound QGVAR(Rope);
}, 1, [_unit]] call CBA_fnc_addPerFrameHandler;
};
//End of fast rope
if (isNull attachedTo _unit) exitWith {
[_unit, "", 2] call EFUNC(common,doAnimation);
_unit setVectorUp [0, 0, 1];
playSound QGVAR(Thud);
[_pfhHandle] call CBA_fnc_removePerFrameHandler;
};