mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-17 17:20:26 +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,4 +1,8 @@
|
||||
private["_location","_isOk","_dir","_classname","_item"];
|
||||
|
||||
if(TradeInprogress) exitWith { cutText ["Building already in progress." , "PLAIN DOWN"]; };
|
||||
TradeInprogress = true;
|
||||
|
||||
_location = player modeltoworld [0,1,0];
|
||||
_location set [2,0];
|
||||
_onLadder = (getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> (animationState player) >> "onLadder")) == 1;
|
||||
@@ -74,6 +78,9 @@ _built_location set [2,0];
|
||||
|
||||
if(!_cancel) then {
|
||||
|
||||
_hasbuilditem = _this in magazines player;
|
||||
if (!_hasbuilditem) exitWith {cutText [format[(localize "str_player_31"),_text,"build"] , "PLAIN DOWN"]};
|
||||
|
||||
_dir = getDir player;
|
||||
|
||||
player removeMagazine _item;
|
||||
@@ -108,4 +115,5 @@ if(!_cancel) then {
|
||||
|
||||
} else {
|
||||
cutText [format["Canceled construction of %1.",_text], "PLAIN DOWN"];
|
||||
};
|
||||
};
|
||||
TradeInprogress = false;
|
||||
Reference in New Issue
Block a user