+ 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:
vbawol
2013-02-05 07:56:39 -06:00
parent d60007afc9
commit ca32bcbf71
14 changed files with 184 additions and 50 deletions

View File

@@ -9,6 +9,7 @@ _objectUID = _obj getVariable["ObjectUID","0"];
player playActionNow "Medic";
player removeAction s_player_unlockvault;
s_player_unlockvault = 1;
_item = "ItemToolbox";
_hasToolbox = _item in items player;
@@ -29,8 +30,10 @@ if (_ownerID == dayz_playerUID) then {
// Chance to break toolbox randomly
if(floor (random 15) == 1) then {
player removeWeapon _item;
cutText ["Your toolbox is now broken, you will need to find another one.", "PLAIN DOWN"];
titleText ["Your toolbox is now broken, you will need to find another one.", "PLAIN"];
};
} else {
if (!_hasToolbox) exitWith {cutText ["Cannot crack vault, you do not have a Tool Box." , "PLAIN"]};
};
};
@@ -101,7 +104,7 @@ if(_allowunlock) then {
} forEach _objWpnTypes;
};
cutText ["This vault has been unlocked", "PLAIN DOWN"];
cutText ["Vault has been unlocked.", "PLAIN DOWN"];
} else {
player playActionNow "Medic";
sleep 3;
@@ -111,4 +114,4 @@ if(_allowunlock) then {
cutText ["Combination incorrect, vault is still locked.", "PLAIN DOWN"];
};
s_player_unlockvault = -1;
s_player_unlockvault = -1;