mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-25 01:49:19 +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:
@@ -61,15 +61,16 @@ if (_qty >= _qty_in) then {
|
||||
|
||||
//place tent (local)
|
||||
_veh = createVehicle [_part_out, _location, [], 0, "CAN_COLLIDE"];
|
||||
|
||||
_veh setVariable ["JustSpawned",true,true];
|
||||
|
||||
_veh setdir _dir;
|
||||
_veh setpos _location;
|
||||
|
||||
//_veh setPosATL _position;
|
||||
|
||||
player reveal _veh;
|
||||
_location = getPosATL _veh;
|
||||
|
||||
//_veh setVariable ["characterID",dayz_playerUID,true];
|
||||
//_veh setVariable ["ObjectUID",dayz_playerUID,true];
|
||||
|
||||
|
||||
clearWeaponCargoGlobal _veh;
|
||||
clearMagazineCargoGlobal _veh;
|
||||
@@ -77,10 +78,12 @@ if (_qty >= _qty_in) then {
|
||||
//["dayzPublishVeh",[_veh,[_dir,_location],_part_out,false,dayz_playerUID]] call callRpcProcedure;
|
||||
dayzPublishVeh = [_veh,[_dir,_location],_part_out,false,dayz_playerUID];
|
||||
publicVariableServer "dayzPublishVeh";
|
||||
|
||||
|
||||
// event handlers to correctly track damage client side
|
||||
_veh call fnc_vehicleEventHandler;
|
||||
|
||||
player reveal _veh;
|
||||
|
||||
cutText [format[("Bought %3 %4 for %1 %2"),_qty_in,_textPartIn,_qty_out,_textPartOut], "PLAIN DOWN"];
|
||||
|
||||
} else {
|
||||
@@ -117,7 +120,12 @@ if (_qty >= _qty_in) then {
|
||||
|
||||
} else {
|
||||
_needed = _qty_in - _qty;
|
||||
cutText [format[("No %1 found within 20 meters. "),_textPartOut] , "PLAIN DOWN"];
|
||||
if(_buy_o_sell == "buy") then {
|
||||
cutText [format[("Need %1 More %2"),_needed,_textPartIn] , "PLAIN DOWN"];
|
||||
} else {
|
||||
cutText [format[("No %1 found within 20 meters."),_textPartOut] , "PLAIN DOWN"];
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
TradeInprogress = false;
|
||||
Reference in New Issue
Block a user