mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-18 01:30:26 +03:00
Fix misspelled variable names DayZ_Ignators and destorytent
This commit is contained in:
@@ -451,16 +451,14 @@ if (!isNull _cursorTarget && !_inVehicle && !_isPZombie && (player distance _cur
|
||||
};
|
||||
//other tents
|
||||
if (_istypeTent) then {
|
||||
//destroy tents
|
||||
//Located in variables Dayz_Ignators = ["ItemMatchbox","Item5Matchbox","Item4Matchbox","Item3Matchbox","Item2Matchbox","Item1Matchbox"];
|
||||
_hasIgnators = {_x in Dayz_Ignators} count _itemsPlayer > 0;
|
||||
_hasIgnators = {_x in DayZ_Ignitors} count _itemsPlayer > 0;
|
||||
if ((_hasFuel20 or _hasFuel5 or _hasBarrel) && _hasIgnators) then {
|
||||
if (s_player_destorytent < 0) then {
|
||||
s_player_destorytent = player addAction [localize "str_actions_self_destorytent", "\z\addons\dayz_code\actions\player_destroyTent.sqf",_cursorTarget, 0, false, true];
|
||||
if (s_player_destroytent < 0) then {
|
||||
s_player_destroytent = player addAction [localize "str_actions_self_destroytent", "\z\addons\dayz_code\actions\player_destroyTent.sqf",_cursorTarget, 0, false, true];
|
||||
};
|
||||
} else {
|
||||
player removeAction s_player_destorytent;
|
||||
s_player_destorytent = -1;
|
||||
player removeAction s_player_destroytent;
|
||||
s_player_destroytent = -1;
|
||||
};
|
||||
if (_typeOfCursorTarget in ["IC_DomeTent","IC_Tent"]) then {
|
||||
if (s_player_packtentinfected < 0) then {
|
||||
@@ -1067,8 +1065,8 @@ if (!isNull _cursorTarget && !_inVehicle && !_isPZombie && (player distance _cur
|
||||
//Allow player to gather
|
||||
player removeAction s_player_gather;
|
||||
s_player_gather = -1;
|
||||
player removeAction s_player_destorytent;
|
||||
s_player_destorytent = -1;
|
||||
player removeAction s_player_destroytent;
|
||||
s_player_destroytent = -1;
|
||||
// player removeAction s_player_attach_bomb;
|
||||
// s_player_attach_bomb = -1;
|
||||
//debug
|
||||
|
||||
Reference in New Issue
Block a user