mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-19 10:02:02 +03:00
0.993a
+ added more already in progress code locks. + Building and vault pitching now checks if player has item just before placement. + Fixed vault packing status was left in an incorrect state when caneled durning packing. Fixes #182 + Fixed insuffucent funds message when buying vehicles. Fixes #181 + Fix for just purchased vehicles disappering. Still have issue with player killed if they get into vehicle to early. + Fixed typo in takistan and chernarus dynamic vehicle spawn config and removed remainng boats.
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
private["_position","_tent","_location","_isOk","_backpack","_tentType","_trg","_key"];
|
||||
//check if can pitch here
|
||||
|
||||
if(TradeInprogress) exitWith { cutText ["Vault pitching already in progress." , "PLAIN DOWN"]; };
|
||||
TradeInprogress = true;
|
||||
|
||||
disableSerialization;
|
||||
|
||||
_playerPos = getPosATL player;
|
||||
@@ -15,10 +18,8 @@ _location = player modeltoworld [_offset_x,_offset_y,_offset_z];
|
||||
|
||||
// Allow placement anywhere.
|
||||
|
||||
|
||||
_isOk = true;
|
||||
|
||||
|
||||
//diag_log ("Pitch Tent: " + str(_isok) );
|
||||
|
||||
_config = configFile >> "CfgMagazines" >> _item;
|
||||
@@ -101,7 +102,12 @@ deleteVehicle _tmpvault;
|
||||
|
||||
if(!_cancel) then {
|
||||
if (!_isOk) then {
|
||||
//remove tentbag
|
||||
|
||||
//remove safe
|
||||
|
||||
_hastentitem = _this in magazines player;
|
||||
if (!_hastentitem) exitWith {cutText [format[(localize "str_player_31"),_text,"pitch"] , "PLAIN DOWN"]};
|
||||
|
||||
player removeMagazine _item;
|
||||
|
||||
call dayz_forceSave;
|
||||
@@ -150,4 +156,6 @@ if(!_cancel) then {
|
||||
|
||||
} else {
|
||||
cutText ["Canceled construction of Safe.", "PLAIN DOWN"];
|
||||
};
|
||||
};
|
||||
|
||||
TradeInprogress = false;
|
||||
Reference in New Issue
Block a user