From 310fef893d3f68bfe7fb2b505f26d1e9a55e63ad Mon Sep 17 00:00:00 2001 From: oiad Date: Fri, 11 Nov 2016 10:45:07 +1300 Subject: [PATCH] Hotwire vehicle changes Adds a localization for hotwire kit working Updates localization for hotwire kit failing Adds medic animation/sound and zombie notify --- SQF/dayz_code/actions/hotwire_veh.sqf | 17 ++++++++++------- SQF/dayz_code/stringtable.xml | 15 +++++++++------ 2 files changed, 19 insertions(+), 13 deletions(-) diff --git a/SQF/dayz_code/actions/hotwire_veh.sqf b/SQF/dayz_code/actions/hotwire_veh.sqf index fd228b804..ae14ecc47 100644 --- a/SQF/dayz_code/actions/hotwire_veh.sqf +++ b/SQF/dayz_code/actions/hotwire_veh.sqf @@ -1,7 +1,7 @@ private ["_vehicle","_removed"]; _vehicle = _this select 3; -if (dayz_actionInProgress) exitWith {localize "str_epoch_player_32" call dayz_rollingMessages;}; +if (dayz_actionInProgress) exitWith {localize "STR_EPOCH_PLAYER_32" call dayz_rollingMessages;}; dayz_actionInProgress = true; {player removeAction _x} count s_player_lockunlock;s_player_lockunlock = []; @@ -12,20 +12,23 @@ s_player_lockUnlockInside_ctrl = 1; _removed = ([player,"ItemHotwireKit",1] call BIS_fnc_invRemove); if (_removed == 1) then { - - if((random 10) <= 7.5) then { - + player playActionNow "Medic"; + [player,"repair",0,false] call dayz_zombieSpeak; + [player,50,true,(getPosATL player)] spawn player_alertZombies; + uiSleep 8; + + if ((random 10) <= 7.5) then { PVDZE_veh_Lock = [_vehicle,false]; - if(player distance _vehicle < 10) then { - + if (player distance _vehicle < 10) then { if (local _vehicle) then { PVDZE_veh_Lock call local_lockUnlock } else { publicVariable "PVDZE_veh_Lock"; }; + format [localize "STR_EPOCH_PLAYER_33_OK",typeOf _vehicle] call dayz_rollingMessages; }; } else { - localize "str_epoch_player_33" call dayz_rollingMessages; + format [localize "STR_EPOCH_PLAYER_33",typeOf _vehicle] call dayz_rollingMessages; }; }; diff --git a/SQF/dayz_code/stringtable.xml b/SQF/dayz_code/stringtable.xml index 9bbac52fb..03ae94ecf 100644 --- a/SQF/dayz_code/stringtable.xml +++ b/SQF/dayz_code/stringtable.xml @@ -11330,7 +11330,7 @@ Kuchání zombie již probíhá. - Hotwire vehicle already in progress. + Hotwire vehicle is already in progress. Aufbrechen des Fahrzeuges bereits im Gange. Вы уже угоняете транспорт. Auto wordt al opengebroken. @@ -11338,15 +11338,18 @@ Startování vozidla již probíhá. - Failed to unlock car hotwire kit broken. + Failed to unlock %1, Your hotwire kit broke during the process. Aufbrechen des Fahrzeuges fehlgeschlagen, Aufbrech-Werkzeug wurde dabei zerstört. Не удалось открыть транспорт, набор для угона сломан. Openbreken voertuig mislukt, je hotwire kit is kapot gegaan. Échec du crochetage du véhicule, le kit est détruit. Otevření auta pomocí paklíče se nezdařilo. + + You managed to unlock %1 with your hotwire kit. + - Fill Jerry already in progress. + Fill Jerry can is already in progress. Befüllen des Kanisters bereits im Gange. Канистра уже наполняется. Je bent al een jerrycan aan het vullen. @@ -11362,7 +11365,7 @@ Žádné nedávné úmrtí. - Lock vehicle already in progress. + Lock vehicle is already in progress. Abschließen des Fahrzeuges bereits im Gange. Транспорт уже закрывается. Voertuig wordt al reeds op slot gezet. @@ -11370,7 +11373,7 @@ Zamykání vozidla již probíhá. - Add to toolbelt already in progress. + Add to toolbelt is already in progress. Hinzufügen zum Werkzeuggürtel bereits im Gange. Уже добавляется на пояс. Reeds bezig met toevoegen aan gereedschapsriem @@ -16364,7 +16367,7 @@ Auflösen - The group disbanded + The group was disbanded Leave