mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Fix purchased boat not spawning on helipad
https://epochmod.com/forum/topic/43644-problem-with-napf-boat-spawn-in-1061/
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
[FIXED] Group saving issue which could potentially join a player to a random group or not save group properly after death.
|
||||
[FIXED] Harvested pumpkin, sunflower, and hemp plants no longer respawn after relog (allowed infinite harvesting).
|
||||
[FIXED] Multiple players can no longer harvest the same plant at once. #1928 @F507DMT
|
||||
[FIXED] Purchased boats sometimes not spawning on helipad even when it is free of obstructions.
|
||||
|
||||
[NOTE] Fixes below are included in the mission file and server pbo as part of server package 1.0.6.1A (March 10th 2017)
|
||||
[FIXED] Fixed food and drink going down 10x faster from melee and other "working" actions.
|
||||
|
||||
@@ -135,7 +135,7 @@ if (_enoughMoney) then {
|
||||
|
||||
// Note server now uses createVehicle "NONE" so next closest safePos is found automatically if location is blocked
|
||||
if (count _helipad > 0) then {
|
||||
_location = getPosATL (_helipad select 0);
|
||||
_location = [(_helipad select 0)] call FNC_GetPos;
|
||||
} else {
|
||||
_location = [player] call FNC_GetPos;
|
||||
};
|
||||
@@ -143,7 +143,13 @@ if (_enoughMoney) then {
|
||||
_sign = "Sign_arrow_down_large_EP1" createVehicleLocal [0,0,0];
|
||||
_sign setPos _location;
|
||||
_location = [_sign] call FNC_GetPos;
|
||||
[_part_out,_sign] call fn_waitForObject;
|
||||
|
||||
if (surfaceIsWater _location && {count (_location nearEntities ["Ship",8]) > 0}) then {
|
||||
deleteVehicle _sign;
|
||||
localize "STR_EPOCH_TRADE_OBSTRUCTED" call dayz_rollingMessages;
|
||||
} else {
|
||||
[_part_out,_sign] call fn_waitForObject;
|
||||
};
|
||||
|
||||
if (_buyingType in DZE_tradeVehicleKeyless) then {
|
||||
PVDZE_veh_Publish2 = [[_dir,_location],_part_out,true,"0",_activatingPlayer];
|
||||
|
||||
@@ -15290,6 +15290,9 @@
|
||||
<German>Du kannst nur ein Fahrzeug zur gleichen Zeit kaufen.</German>
|
||||
<Russian>Вы можете купить только один транспорт за сделку.</Russian>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_TRADE_OBSTRUCTED">
|
||||
<English>The trade area is obstructed. The vehicle will spawn at a safe place nearby.</English>
|
||||
</Key>
|
||||
<Key ID="STR_EPOCH_TRADE_DUPLICATE_TOOL">
|
||||
<English>You can not buy more than one of the same tool into your gear.</English>
|
||||
<German>Du kannst nicht mehr als ein Werkzeug von einer Sorte gleichzeitig in deine Ausrüstung kaufen.</German>
|
||||
|
||||
@@ -88,6 +88,10 @@ _key call server_hiveWrite;
|
||||
//_object = createVehicle [_class, _location, [], 0, "CAN_COLLIDE"];
|
||||
// Don't use setPos or CAN_COLLIDE here. It will spawn inside other vehicles
|
||||
_object = _class createVehicle _location;
|
||||
if (surfaceIsWater _location && {count (_location nearEntities ["Ship",8]) == 0}) then {
|
||||
//createVehicle "NONE" is especially inaccurate in water
|
||||
_object setPos _location;
|
||||
};
|
||||
};
|
||||
|
||||
if(!_donotusekey) then {
|
||||
|
||||
Reference in New Issue
Block a user