mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-18 14:12:57 +03:00
Fix weapon on back dupe
This commit is contained in:
@@ -53,7 +53,7 @@ if (_classname isKindOf "Bag_Base_EP1") exitWith {
|
||||
waitUntil { !isNull (unitBackpack player) };
|
||||
uiSleep 0.03;
|
||||
|
||||
PVDZ_plr_Save = [player,nil,false];
|
||||
PVDZ_plr_Save = [player,nil,dayz_onBack];
|
||||
publicVariableServer "PVDZ_plr_Save";
|
||||
};
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ if !(alive _item) then {
|
||||
dayz_lastMeal = time;
|
||||
dayz_hunger = 0;
|
||||
|
||||
PVDZ_plr_Save = [player,nil,true];
|
||||
PVDZ_plr_Save = [player,nil,dayz_onBack];
|
||||
publicVariableServer "PVDZ_plr_Save";
|
||||
|
||||
[player,"eat",0,false] call dayz_zombieSpeak;
|
||||
|
||||
@@ -7,7 +7,7 @@ Opens player inventory to save
|
||||
_magazineArray = [] call player_countMagazines;
|
||||
|
||||
if ((count _magazineArray) > 0) then {
|
||||
PVDZ_plr_Save = [player, if (player isKindOf "PZombie_VB") then {nil} else {[_magazineArray,dayz_onBack]}];
|
||||
PVDZ_plr_Save = [player, if (player isKindOf "PZombie_VB") then {nil} else {_magazineArray},dayz_onBack];
|
||||
publicVariableServer "PVDZ_plr_Save";
|
||||
};
|
||||
|
||||
|
||||
@@ -240,7 +240,7 @@ while {1 == 1} do {
|
||||
player setVariable ["USEC_lowBlood",true,true];
|
||||
};
|
||||
} else {
|
||||
if (_lowBlood && {!r_player_injured}) then {
|
||||
if (_lowBlood && !r_player_injured) then {
|
||||
player setVariable ["USEC_lowBlood",false,true];
|
||||
r_player_lowblood = false;
|
||||
};
|
||||
@@ -260,7 +260,7 @@ while {1 == 1} do {
|
||||
if (dayz_unsaved || {(diag_ticktime - dayz_lastSave) > 300}) then {
|
||||
if ((diag_ticktime - dayz_lastSave) > _saveTime) then {
|
||||
|
||||
PVDZ_plr_Save = [player,nil,false];
|
||||
PVDZ_plr_Save = [player,nil,dayz_onBack];
|
||||
publicVariableServer "PVDZ_plr_Save";
|
||||
dayz_unsaved = false;
|
||||
dayz_lastSave = diag_ticktime;
|
||||
|
||||
Reference in New Issue
Block a user