mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 21:29:59 +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:
@@ -2,6 +2,10 @@
|
||||
[_obj] spawn player_unlockVault;
|
||||
*/
|
||||
private["_objectID","_objectUID","_obj","_ownerID","_dir","_pos","_bag","_holder","_weapons","_magazines","_backpacks","_objWpnTypes","_objWpnQty","_countr"];
|
||||
|
||||
if(TradeInprogress) exitWith { cutText ["Lock already in progress." , "PLAIN DOWN"]; };
|
||||
TradeInprogress = true;
|
||||
|
||||
_obj = _this;
|
||||
_ownerID = _obj getVariable["CharacterID","0"];
|
||||
_objectID = _obj getVariable["ObjectID","0"];
|
||||
@@ -56,4 +60,5 @@ if(_ownerID == dayz_playerUID) then {
|
||||
cutText ["Your Safe has been locked", "PLAIN DOWN"];
|
||||
} else {
|
||||
cutText ["You cannot lock this Safe, it is not yours", "PLAIN DOWN"];
|
||||
};
|
||||
};
|
||||
TradeInprogress = false;
|
||||
@@ -2,6 +2,10 @@
|
||||
[_obj] spawn player_packVault;
|
||||
*/
|
||||
private["_obj","_ownerID","_objectID","_objectUID","_alreadyPacking","_location1","_location2","_dir","_pos","_bag","_holder","_weapons","_magazines","_backpacks","_objWpnTypes","_objWpnQty","_countr"];
|
||||
|
||||
if(TradeInprogress) exitWith { cutText ["That Safe is already being packed." , "PLAIN DOWN"]; };
|
||||
TradeInprogress = true;
|
||||
|
||||
_obj = _this;
|
||||
_ownerID = _obj getVariable["CharacterID","0"];
|
||||
_objectID = _obj getVariable["ObjectID","0"];
|
||||
@@ -22,7 +26,8 @@ if(_ownerID == dayz_playerUID) then {
|
||||
_location2 = getPosATL player;
|
||||
|
||||
if(_location1 distance _location2 > 0.1) exitWith {
|
||||
cutText ["Packing Safe canceled." , "PLAIN DOWN"]
|
||||
cutText ["Packing Safe canceled." , "PLAIN DOWN"];
|
||||
_obj setVariable["packing",0];
|
||||
};
|
||||
|
||||
player playActionNow "Medic";
|
||||
@@ -92,4 +97,6 @@ if(_ownerID == dayz_playerUID) then {
|
||||
cutText ["You cannot pack this Safe, it is not yours", "PLAIN DOWN"];
|
||||
};
|
||||
|
||||
s_player_packvault = -1;
|
||||
s_player_packvault = -1;
|
||||
|
||||
TradeInprogress = false;
|
||||
Reference in New Issue
Block a user