mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-04 15:22:53 +03:00
0.88
crack vault test
This commit is contained in:
3
dayz_code/actions/vault_crack.sqf
Normal file
3
dayz_code/actions/vault_crack.sqf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
private["_obj","_bag","_pos"];
|
||||||
|
_obj = _this select 3;
|
||||||
|
_obj spawn player_unlockVault;
|
||||||
@@ -199,10 +199,17 @@ if (!isNull cursorTarget and !_inVehicle and (player distance cursorTarget < 4))
|
|||||||
};
|
};
|
||||||
|
|
||||||
//Allow owner to unlock vault
|
//Allow owner to unlock vault
|
||||||
if(cursorTarget isKindOf "VaultStorageLocked" and _canDo and _ownerID == dayz_playerUID) then {
|
if(cursorTarget isKindOf "VaultStorageLocked" and _canDo) then {
|
||||||
if ((s_player_unlockvault < 0) and (player distance cursorTarget < 3)) then {
|
if (_ownerID == dayz_playerUID) then {
|
||||||
s_player_unlockvault = player addAction ["Unlock Vault", "\z\addons\dayz_code\actions\vault_unlock.sqf",cursorTarget, 0, false, true, "",""];
|
if ((s_player_unlockvault < 0) and (player distance cursorTarget < 3)) then {
|
||||||
|
s_player_unlockvault = player addAction ["Unlock Vault", "\z\addons\dayz_code\actions\vault_unlock.sqf",cursorTarget, 0, false, true, "",""];
|
||||||
|
};
|
||||||
|
} else {
|
||||||
|
if ((s_player_unlockvault < 0) and (player distance cursorTarget < 3)) then {
|
||||||
|
s_player_unlockvault = player addAction ["Crack Vault", "\z\addons\dayz_code\actions\vault_unlock.sqf",cursorTarget, 0, false, true, "",""];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
player removeAction s_player_unlockvault;
|
player removeAction s_player_unlockvault;
|
||||||
s_player_unlockvault = -1;
|
s_player_unlockvault = -1;
|
||||||
|
|||||||
@@ -11,7 +11,20 @@ player playActionNow "Medic";
|
|||||||
player removeAction s_player_unlockvault;
|
player removeAction s_player_unlockvault;
|
||||||
s_player_unlockvault = -1;
|
s_player_unlockvault = -1;
|
||||||
|
|
||||||
if(_ownerID == dayz_playerUID) then {
|
_allowunlock = false;
|
||||||
|
if (_ownerID == dayz_playerUID) then {
|
||||||
|
_allowunlock = true;
|
||||||
|
} else {
|
||||||
|
|
||||||
|
// do random roll to try to unlock vault
|
||||||
|
// start low to test figure out what works later
|
||||||
|
if(round (random 100) == 1) then {
|
||||||
|
_allowunlock = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
if(_allowunlock) then {
|
||||||
_alreadyPacking = _obj getVariable["packing",0];
|
_alreadyPacking = _obj getVariable["packing",0];
|
||||||
|
|
||||||
if (_alreadyPacking == 1) exitWith {cutText ["That vault is already being unlocked." , "PLAIN DOWN"]};
|
if (_alreadyPacking == 1) exitWith {cutText ["That vault is already being unlocked." , "PLAIN DOWN"]};
|
||||||
@@ -75,7 +88,7 @@ if(_ownerID == dayz_playerUID) then {
|
|||||||
} forEach _objWpnTypes;
|
} forEach _objWpnTypes;
|
||||||
};
|
};
|
||||||
|
|
||||||
cutText ["Your vault has been unlocked", "PLAIN DOWN"];
|
cutText ["This vault has been unlocked", "PLAIN DOWN"];
|
||||||
} else {
|
} else {
|
||||||
cutText ["You cannot unlock this vault, it is not yours", "PLAIN DOWN"];
|
cutText ["Combination incorrect, vault is still locked.", "PLAIN DOWN"];
|
||||||
};
|
};
|
||||||
@@ -33,7 +33,7 @@ class CfgMods
|
|||||||
hidePicture = 0;
|
hidePicture = 0;
|
||||||
hideName = 0;
|
hideName = 0;
|
||||||
action = "http://www.dayepoch.com";
|
action = "http://www.dayepoch.com";
|
||||||
version = "0.87";
|
version = "0.88";
|
||||||
hiveVersion = 0.96; //0.93
|
hiveVersion = 0.96; //0.93
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ class RscDisplayMain : RscStandardDisplay
|
|||||||
class DAYZ_Version : CA_Version
|
class DAYZ_Version : CA_Version
|
||||||
{
|
{
|
||||||
idc = -1;
|
idc = -1;
|
||||||
text = "DayZ Epoch 0.87 (1.7.5.M2D1)";
|
text = "DayZ Epoch 0.88 (1.7.5.M2D1)";
|
||||||
y = "(SafeZoneH + SafeZoneY) - (1 - 0.95)";
|
y = "(SafeZoneH + SafeZoneY) - (1 - 0.95)";
|
||||||
};
|
};
|
||||||
class CA_TitleMainMenu;
|
class CA_TitleMainMenu;
|
||||||
|
|||||||
Reference in New Issue
Block a user