mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #3517 from gruppe-adler/master
Added fastroping sounds
This commit is contained in:
commit
1ad348d415
12
addons/fastroping/CfgSounds.hpp
Normal file
12
addons/fastroping/CfgSounds.hpp
Normal 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[] = {};
|
||||
};
|
||||
};
|
6
addons/fastroping/data/sounds/LICENSE.md
Normal file
6
addons/fastroping/data/sounds/LICENSE.md
Normal 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).
|
BIN
addons/fastroping/data/sounds/fastroping_rope.ogg
Normal file
BIN
addons/fastroping/data/sounds/fastroping_rope.ogg
Normal file
Binary file not shown.
BIN
addons/fastroping/data/sounds/fastroping_thud.ogg
Normal file
BIN
addons/fastroping/data/sounds/fastroping_thud.ogg
Normal file
Binary file not shown.
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user