mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
added fastroping sounds
This commit is contained in:
parent
3cafa9f41b
commit
730e79def0
12
addons/fastroping/CfgSounds.hpp
Normal file
12
addons/fastroping/CfgSounds.hpp
Normal 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[] = {};
|
||||||
|
};
|
||||||
|
};
|
4
addons/fastroping/data/sounds/LICENSE.md
Normal file
4
addons/fastroping/data/sounds/LICENSE.md
Normal 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.
|
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.
@ -31,10 +31,19 @@ if (animationState _unit != "ACE_FastRoping") exitWith {
|
|||||||
[_unit, "ACE_FastRoping", 2] call EFUNC(common,doAnimation);
|
[_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
|
//End of fast rope
|
||||||
if (isNull attachedTo _unit) exitWith {
|
if (isNull attachedTo _unit) exitWith {
|
||||||
[_unit, "", 2] call EFUNC(common,doAnimation);
|
[_unit, "", 2] call EFUNC(common,doAnimation);
|
||||||
_unit setVectorUp [0, 0, 1];
|
_unit setVectorUp [0, 0, 1];
|
||||||
|
|
||||||
|
playSound "ACE_Fastroping_Thud";
|
||||||
|
|
||||||
[_pfhHandle] call CBA_fnc_removePerFrameHandler;
|
[_pfhHandle] call CBA_fnc_removePerFrameHandler;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user