mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Consolidate DZE_ActionInProgress and r_action_count to one variable
There is no point in having two variables for the same purpose. It is also pointless to keep an action count tally like r_action_count was doing, since it is only ever checked for being 0 or 1. Any count higher or lower than that is irrelevant. I will make this change in vanilla too.
This commit is contained in:
@@ -326,6 +326,7 @@ r_antiA_done = false;
|
||||
r_antiB_done = false;
|
||||
r_antiD_done = false;
|
||||
carryClick = false;
|
||||
dayz_actionInProgress = false;
|
||||
dayz_workingInprogress = false;
|
||||
|
||||
//player warming up vars
|
||||
@@ -342,9 +343,6 @@ r_player_temp_max_factor = 0.04; //(lvl3 up arrow)
|
||||
r_player_Nutrition = 0; // Calories
|
||||
r_player_nutritionMuilpty = 2;
|
||||
|
||||
//count actions
|
||||
r_action_count = 0;
|
||||
|
||||
//ammo routine
|
||||
r_player_actions2 = [];
|
||||
r_action2 = false;
|
||||
@@ -674,7 +672,6 @@ if (!isDedicated) then {
|
||||
if (isNil "DZE_requireplot") then {DZE_requireplot = 1;};
|
||||
if (isNil "DZE_StaticConstructionCount") then {DZE_StaticConstructionCount = 0;};
|
||||
autoRunActive = false;
|
||||
DZE_ActionInProgress = false;
|
||||
DZE_AntiWallCounter = 0;
|
||||
DZE_myHaloVehicle = objNull;
|
||||
dayz_myLiftVehicle = objNull;
|
||||
|
||||
Reference in New Issue
Block a user