mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 04:23:13 +03:00
1.0.1.8 part 2
This commit is contained in:
@@ -2,13 +2,16 @@
|
|||||||
delete object from db with extra waiting by [VB]AWOL
|
delete object from db with extra waiting by [VB]AWOL
|
||||||
parameters: _obj
|
parameters: _obj
|
||||||
*/
|
*/
|
||||||
private ["_obj","_objectID","_objectUID","_started","_finished","_animState","_isMedic","_isOk","_proceed","_counter","_limit","_objType","_sfx","_dis","_itemOut","_countOut","_selectedRemoveOutput","_friendlies","_nearestPole","_ownerID","_refundpart","_isWreck","_findNearestPoles","_findNearestPole","_IsNearPlot","_brokenTool","_removeTool","_isDestructable","_isRemovable"];
|
private ["_obj","_objectID","_objectUID","_started","_finished","_animState","_isMedic","_isOk","_proceed","_counter","_limit","_objType","_sfx","_dis","_itemOut","_countOut","_selectedRemoveOutput","_friendlies","_nearestPole","_ownerID","_refundpart","_isWreck","_findNearestPoles","_findNearestPole","_IsNearPlot","_brokenTool","_removeTool","_isDestructable","_isRemovable","_objOwnerID","_isOwnerOfObj"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText ["Remove already in progress." , "PLAIN DOWN"]; };
|
if(TradeInprogress) exitWith { cutText ["Remove already in progress." , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
TradeInprogress = true;
|
||||||
|
|
||||||
_obj = _this select 3;
|
_obj = _this select 3;
|
||||||
|
|
||||||
|
_objOwnerID = _obj getVariable["CharacterID","0"];
|
||||||
|
_isOwnerOfObj = (_objOwnerID == dayz_characterID);
|
||||||
|
|
||||||
if(_obj getVariable ["GeneratorRunning", false]) exitWith {TradeInprogress = false; cutText ["Cannot remove running generator.", "PLAIN DOWN"];};
|
if(_obj getVariable ["GeneratorRunning", false]) exitWith {TradeInprogress = false; cutText ["Cannot remove running generator.", "PLAIN DOWN"];};
|
||||||
|
|
||||||
_objectID = _obj getVariable ["ObjectID","0"];
|
_objectID = _obj getVariable ["ObjectID","0"];
|
||||||
@@ -107,7 +110,7 @@ while {_isOk} do {
|
|||||||
if(_finished) then {
|
if(_finished) then {
|
||||||
_counter = _counter + 1;
|
_counter = _counter + 1;
|
||||||
// 10% chance to break a required tool each pass
|
// 10% chance to break a required tool each pass
|
||||||
if(_isDestructable or _isRemovable) then {
|
if((_isDestructable or _isRemovable) and !_isOwnerOfObj) then {
|
||||||
if((random 10) <= 1) then {
|
if((random 10) <= 1) then {
|
||||||
_brokenTool = true;
|
_brokenTool = true;
|
||||||
};
|
};
|
||||||
@@ -145,8 +148,11 @@ if (_proceed) then {
|
|||||||
if(!isNull(_obj)) then {
|
if(!isNull(_obj)) then {
|
||||||
|
|
||||||
deleteVehicle _obj;
|
deleteVehicle _obj;
|
||||||
dayzDeleteObj = [_objectID,_objectUID];
|
|
||||||
publicVariableServer "dayzDeleteObj";
|
if(!_isWreck) then {
|
||||||
|
dayzDeleteObj = [_objectID,_objectUID];
|
||||||
|
publicVariableServer "dayzDeleteObj";
|
||||||
|
};
|
||||||
|
|
||||||
cutText [format["De-constructing %1.",_objType], "PLAIN DOWN"];
|
cutText [format["De-constructing %1.",_objType], "PLAIN DOWN"];
|
||||||
|
|
||||||
|
|||||||
@@ -431,7 +431,7 @@ if (!isNull cursorTarget and !_inVehicle and !_isPZombie and (player distance cu
|
|||||||
//Player Deaths
|
//Player Deaths
|
||||||
if(_typeOfCursorTarget == "Info_Board_EP1") then {
|
if(_typeOfCursorTarget == "Info_Board_EP1") then {
|
||||||
if (s_player_information < 0) then {
|
if (s_player_information < 0) then {
|
||||||
s_player_information = player addAction ["Recent Deaths", "\z\addons\dayz_code\actions\list_playerDeaths.sqf",[], 0, false, true, "",""];
|
s_player_information = player addAction ["Recent Murders", "\z\addons\dayz_code\actions\list_playerDeaths.sqf",[], 0, false, true, "",""];
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
player removeAction s_player_information;
|
player removeAction s_player_information;
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user