mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-15 20:52:56 +03:00
1.0.2.39 dev
This commit is contained in:
@@ -308,7 +308,7 @@ if (!isNull cursorTarget and !_inVehicle and !_isPZombie and (player distance cu
|
||||
if (_player_butcher) then {
|
||||
if (s_player_butcher < 0) then {
|
||||
if(_isZombie) then {
|
||||
s_player_butcher = player addAction ["Gut Zombie", "\z\addons\dayz_code\actions\gather_zparts.sqf",_cursorTarget, 3, true, true, "", ""];
|
||||
s_player_butcher = player addAction ["Gut Zombie", "\z\addons\dayz_code\actions\gather_zparts.sqf",_cursorTarget, 0, true, true, "", ""];
|
||||
} else {
|
||||
s_player_butcher = player addAction [localize "str_actions_self_04", "\z\addons\dayz_code\actions\gather_meat.sqf",_cursorTarget, 3, true, true, "", ""];
|
||||
};
|
||||
|
||||
@@ -51,7 +51,7 @@ if(!isNull _obj) then {
|
||||
//place tent (local)
|
||||
_holder = createVehicle [_lockedClass,_pos,[], 0, "CAN_COLLIDE"];
|
||||
_holder setdir _dir;
|
||||
_holder setpos _pos;
|
||||
_holder setPosATL _pos;
|
||||
player reveal _holder;
|
||||
|
||||
_holder setVariable["CharacterID",_ownerID,true];
|
||||
|
||||
@@ -47,7 +47,7 @@ if(!isNull _obj and alive _obj) then {
|
||||
//_bag = createVehicle ["WeaponHolder_ItemTent",_pos,[], 0, "CAN_COLLIDE"];
|
||||
_object = createVehicle [_classname, _location, [], 0, "CAN_COLLIDE"];
|
||||
_object setdir _dir;
|
||||
_object setpos _pos;
|
||||
_object setposATL _pos;
|
||||
player reveal _object;
|
||||
|
||||
_holder = _object;
|
||||
|
||||
@@ -70,7 +70,7 @@ if(!isNull _obj and alive _obj) then {
|
||||
deleteVehicle _obj;
|
||||
|
||||
_bag setdir _dir;
|
||||
_bag setpos _pos;
|
||||
_bag setposATL _pos;
|
||||
player reveal _bag;
|
||||
|
||||
// Empty weapon holder
|
||||
|
||||
@@ -7,6 +7,13 @@ private ["_ok"];
|
||||
|
||||
if(!isNull dayz_selectedDoor) then {
|
||||
|
||||
if (!isNil 'KeyCodeTryTimer') then {
|
||||
if(diag_tickTime > KeyCodeTryTimer) then {
|
||||
KeyCodeTry = nil;
|
||||
KeyCodeTryTimer = nil;
|
||||
};
|
||||
};
|
||||
|
||||
// our target
|
||||
_obj = dayz_selectedDoor;
|
||||
|
||||
@@ -30,14 +37,25 @@ if(!isNull dayz_selectedDoor) then {
|
||||
if(_obj animationPhase "Open_latch" == 0) then {
|
||||
_obj animate ["Open_latch", 1];
|
||||
};
|
||||
KeyCodeTry = nil;
|
||||
|
||||
} else {
|
||||
DZE_Lock_Door = "";
|
||||
[player,"combo_locked",0,false] call dayz_zombieSpeak;
|
||||
[player,20,true,(getPosATL player)] spawn player_alertZombies;
|
||||
|
||||
_display = findDisplay 41144;
|
||||
_display closeDisplay 3000;
|
||||
if (isNil 'KeyCodeTry') then {KeyCodeTry = 0;};
|
||||
|
||||
KeyCodeTry = KeyCodeTry + 1;
|
||||
|
||||
if(KeyCodeTry >= 5) then {
|
||||
|
||||
if (isNil 'KeyCodeTryTimer') then {KeyCodeTryTimer = diag_tickTime+10;};
|
||||
|
||||
cutText ["Wrong code entered too many times wait 10 seconds", "PLAIN DOWN"];
|
||||
_display = findDisplay 41144;
|
||||
_display closeDisplay 3000;
|
||||
};
|
||||
};
|
||||
} else {
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ if ((_ownerID == dayz_combination) or (_ownerID == dayz_playerUID)) then {
|
||||
// Remove locked vault
|
||||
deleteVehicle _obj;
|
||||
_holder setdir _dir;
|
||||
_holder setpos _pos;
|
||||
_holder setPosATL _pos;
|
||||
player reveal _holder;
|
||||
|
||||
_holder setVariable["CharacterID",_ownerID,true];
|
||||
|
||||
@@ -16,6 +16,22 @@ switch (_iClass) do
|
||||
|
||||
_itemTypes = [] + ((getArray (configFile >> "cfgLoot" >> _iClass)) select 0);
|
||||
_index = dayz_CLBase find _iClass;
|
||||
|
||||
_weights = dayz_CLChances select _index;
|
||||
_cntWeights = count _weights;
|
||||
|
||||
_index = floor(random _cntWeights);
|
||||
_index = _weights select _index;
|
||||
_canType = _itemTypes select _index;
|
||||
_item addMagazineCargoGlobal [_canType,1];
|
||||
};
|
||||
case "single":
|
||||
{
|
||||
//Item is sigle, add 1 item from cfgloot
|
||||
_item = createVehicle ["WeaponHolder", _iPos, [], _radius, "CAN_COLLIDE"];
|
||||
|
||||
_itemTypes = [] + ((getArray (configFile >> "cfgLoot" >> _iItem)) select 0);
|
||||
_index = dayz_CLBase find _iItem;
|
||||
_weights = dayz_CLChances select _index;
|
||||
_cntWeights = count _weights;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user