Merge pull request #150 from KoffeinFlummi/moduleSounds

Added UAV exchange battery sound
This commit is contained in:
PabstMirror 2015-02-16 11:58:11 -06:00
commit d3f4f2883f
4 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,7 @@
class CfgSounds {
class ACE_replaceUAVBattery {
name = "ACE_replaceUAVBattery";
sound[]={QUOTE(PATHTOF(sounds\exchange_battery.ogg)),1,1};
titles[]={};
};
};

View File

@ -15,3 +15,4 @@ class CfgPatches {
#include "CfgEventHandlers.hpp"
#include "CfgVehicles.hpp"
#include "CfgWeapons.hpp"
#include "CfgSounds.hpp"

View File

@ -21,6 +21,7 @@ if (!(_this call FUNC(canRefuelUAV))) exitWith {};
_onFinish = {
EXPLODE_2_PVT((_this select 0),_caller,_target);
_caller removeItem "ACE_UAVBattery";
playSound3D [QUOTE(PATHTO_R(sounds\exchange_battery.ogg)), objNull, false, getPosASL _caller, 1, 1, 10];
["VehicleSetFuel", [_target], [_target, 1]] call EFUNC(common,targetEvent); //setFuel is local
};