From 60b513065a60201f16539bd88b46a72713d76d9c Mon Sep 17 00:00:00 2001 From: A Man Date: Sun, 17 Apr 2022 14:56:30 +0200 Subject: [PATCH] Allow getting vehicles from the VG only if a helipad is near Everything else will confuse players and will result into searching vehicles. --- .../actions/virtualGarage/player_getVehicle.sqf | 9 ++------- SQF/dayz_code/stringtable.xml | 8 +++----- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/SQF/dayz_code/actions/virtualGarage/player_getVehicle.sqf b/SQF/dayz_code/actions/virtualGarage/player_getVehicle.sqf index 409bfcf1f..f72a422a1 100644 --- a/SQF/dayz_code/actions/virtualGarage/player_getVehicle.sqf +++ b/SQF/dayz_code/actions/virtualGarage/player_getVehicle.sqf @@ -15,14 +15,9 @@ _plotCheck = [player,false] call FNC_find_plots; _isNearPlot = (_plotCheck select 1) > 0; _heliPad = nearestObjects [if (_isNearPlot) then {_plotCheck select 2} else {player},vg_heliPads,if (_isNearPlot) then {DZE_maintainRange} else {Z_VehicleDistance}]; -if ((count _heliPad == 0) && ((_vehicle select 1) isKindOf "Air")) exitWith {localize "STR_CL_VG_NEED_HELIPAD" call dayz_rollingMessages;}; -if (count _heliPad > 0) then { - _location = [(_heliPad select 0)] call FNC_GetPos; -} else { - _location = [(position player),0,400,10,0,2000,0] call BIS_fnc_findSafePos; - _location set [2,0]; -}; +if (count _heliPad < 1) exitWith {localize "STR_CL_VG_NEED_HELIPAD" call dayz_rollingMessages;}; +_location = [(_heliPad select 0)] call FNC_GetPos; _sign = "Sign_arrow_down_large_EP1" createVehicleLocal [0,0,0]; _sign setPos _location; diff --git a/SQF/dayz_code/stringtable.xml b/SQF/dayz_code/stringtable.xml index 6c8758d3b..c7d620095 100644 --- a/SQF/dayz_code/stringtable.xml +++ b/SQF/dayz_code/stringtable.xml @@ -36976,11 +36976,9 @@ - You need a helipad to spawn air vehicles. - Vous avez besoin d'un héliport pour engendrer des véhicules aériens. - Du benötigst ein Helipad, um Luftfahrzeuge auszuparken. - Вам нужна вертолетная площадка, чтобы забрать авиатехнику. - Necesitas un Helipad para crear vehiculos aereos. + You need a helipad to spawn vehicles. + Vous avez besoin d'un héliport pour engendrer des véhicules. + Du benötigst ein Helipad, um Fahrzeuge auszuparken. Stored Date