mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-24 17:39:18 +03:00
0.92
+ formatting for damage percentage for repair and salvage. + Chance to break part when salvaging damaged parts. + Potential fix for purchased vehicle damage handler. + added check when cracking vault to exit when toolbox is broken + Potential fix for glitched extra crack vault options and no delay. + 1.7.5.1
This commit is contained in:
@@ -55,13 +55,16 @@ if (_qty >= _qty_in) then {
|
||||
player reveal _veh;
|
||||
_location = getPosATL _veh;
|
||||
|
||||
_veh setVariable ["characterID",dayz_playerUID,true];
|
||||
//_veh setVariable ["characterID",dayz_playerUID,true];
|
||||
|
||||
clearWeaponCargoGlobal _veh;
|
||||
clearMagazineCargoGlobal _veh;
|
||||
|
||||
|
||||
["dayzPublishVeh",[_veh,[_dir,_location],_part_out,false,dayz_playerUID]] call callRpcProcedure;
|
||||
|
||||
// check if this will add the needed event handlers to correctly track damage client side
|
||||
_veh call fnc_vehicleEventHandler;
|
||||
|
||||
cutText [format[("Bought %3 %4 for %1 %2"),_qty_in,_textPartIn,_qty_out,_textPartOut], "PLAIN DOWN"];
|
||||
} else {
|
||||
// Sell Vehicle
|
||||
@@ -75,7 +78,7 @@ if (_qty >= _qty_in) then {
|
||||
|
||||
["dayzDeleteObj",[_objectID,_objectUID]] call callRpcProcedure;
|
||||
|
||||
deleteVehicle _obj;
|
||||
deleteVehicle _obj;
|
||||
|
||||
cutText [format[("Sold %1 %2 for %3 %4"),_qty_in,_textPartIn,_qty_out,_textPartOut], "PLAIN DOWN"];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user