From 2bb7b20d2b35a2e4a395f1df77e51c5ca067b779 Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Fri, 11 Oct 2013 09:40:10 -0500 Subject: [PATCH] override to crafting sounds --- SQF/dayz_code/actions/player_craftItem.sqf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SQF/dayz_code/actions/player_craftItem.sqf b/SQF/dayz_code/actions/player_craftItem.sqf index ecaf8e680..798cfc46b 100644 --- a/SQF/dayz_code/actions/player_craftItem.sqf +++ b/SQF/dayz_code/actions/player_craftItem.sqf @@ -70,6 +70,11 @@ if (_canDo) then { _outputWeapons = getArray (configFile >> _baseClass >> _item >> "ItemActions" >> _crafting >> "outputweapons"); _inputWeapons = getArray (configFile >> _baseClass >> _item >> "ItemActions" >> _crafting >> "inputweapons"); + _sfx = getText(configFile >> _baseClass >> _item >> "sfx"); + if(_sfx == "") then { + _sfx = "repair"; + }; + _randomOutput = 0; if(isNumber (configFile >> _baseClass >> _item >> "ItemActions" >> _crafting >> "randomOutput")) then { _randomOutput = getNumber(configFile >> _baseClass >> _item >> "ItemActions" >> _crafting >> "randomOutput"); @@ -111,7 +116,7 @@ if (_canDo) then { player playActionNow "Medic"; - [player,"repair",0,false] call dayz_zombieSpeak; + [player,_sfx,0,false] call dayz_zombieSpeak; [player,50,true,(getPosATL player)] spawn player_alertZombies; r_interrupt = false;