mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
#761 allow owner to remove modular(no refund, no rubble)
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
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 ["_activatingPlayer","_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","_preventRefund","_ipos","_item","_radius","_isWreckBuilding","_nameVehicle"];
|
private ["_activatingPlayer","_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","_preventRefund","_ipos","_item","_radius","_isWreckBuilding","_nameVehicle","_isModular"];
|
||||||
|
|
||||||
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_88") , "PLAIN DOWN"]; };
|
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_88") , "PLAIN DOWN"]; };
|
||||||
TradeInprogress = true;
|
TradeInprogress = true;
|
||||||
@@ -31,6 +31,7 @@ _isDestructable = _obj isKindOf "BuiltItems";
|
|||||||
_isWreck = _objType in DZE_isWreck;
|
_isWreck = _objType in DZE_isWreck;
|
||||||
_isRemovable = _objType in DZE_isRemovable;
|
_isRemovable = _objType in DZE_isRemovable;
|
||||||
_isWreckBuilding = _objType in DZE_isWreckBuilding;
|
_isWreckBuilding = _objType in DZE_isWreckBuilding;
|
||||||
|
_isModular = _objType isKindOf "Modular";
|
||||||
|
|
||||||
_limit = 3;
|
_limit = 3;
|
||||||
if(isNumber (configFile >> "CfgVehicles" >> _objType >> "constructioncount")) then {
|
if(isNumber (configFile >> "CfgVehicles" >> _objType >> "constructioncount")) then {
|
||||||
@@ -65,6 +66,12 @@ _nameVehicle = getText(configFile >> "CfgVehicles" >> _objType >> "displayName")
|
|||||||
|
|
||||||
cutText [format[(localize "str_epoch_player_162"),_nameVehicle], "PLAIN DOWN"];
|
cutText [format[(localize "str_epoch_player_162"),_nameVehicle], "PLAIN DOWN"];
|
||||||
|
|
||||||
|
if (_isModular) then {
|
||||||
|
//allow previous cutText to show, then show this if modular.
|
||||||
|
sleep 2;
|
||||||
|
{cutText [format["This will not refund any components."], "PLAIN"];};
|
||||||
|
};
|
||||||
|
|
||||||
// Alert zombies once.
|
// Alert zombies once.
|
||||||
[player,50,true,(getPosATL player)] spawn player_alertZombies;
|
[player,50,true,(getPosATL player)] spawn player_alertZombies;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user