mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
re-add config for nutrition
This commit is contained in:
@@ -33,6 +33,7 @@ DZE_NoBuildNearDistance = 150; // Distance from blacklisted objects to disallow
|
|||||||
DZE_GodModeBaseExclude = []; //Array of object class names excluded from the god mode bases feature
|
DZE_GodModeBaseExclude = []; //Array of object class names excluded from the god mode bases feature
|
||||||
DZE_salvageLocked = true; //Enable or disable salvaging of locked vehicles, useful for stopping griefing on locked vehicles.
|
DZE_salvageLocked = true; //Enable or disable salvaging of locked vehicles, useful for stopping griefing on locked vehicles.
|
||||||
DZE_DisabledChannels = [(localize "str_channel_side"),(localize "str_channel_global"),(localize "str_channel_command")]; //List of disabled voice channels. Other channels are: "str_channel_group","str_channel_direct","str_channel_vehicle"
|
DZE_DisabledChannels = [(localize "str_channel_side"),(localize "str_channel_global"),(localize "str_channel_command")]; //List of disabled voice channels. Other channels are: "str_channel_group","str_channel_direct","str_channel_vehicle"
|
||||||
|
DZE_NutritionDivisor = [1, 1, 1, 1]; //array of DIVISORS that regulate the rate of [calories, thirst, hunger, temperature] use when "working" (keep in mind that temperature raises with actions) - min values 0.1 - Larger values slow the effect, smaller values accelerate it
|
||||||
|
|
||||||
// Death Messages
|
// Death Messages
|
||||||
DZE_DeathMsgChat = "none"; //"none","global","side","system" Display death messages in selected chat channel.
|
DZE_DeathMsgChat = "none"; //"none","global","side","system" Display death messages in selected chat channel.
|
||||||
|
|||||||
@@ -334,10 +334,10 @@ if (!isDedicated) then {
|
|||||||
};
|
};
|
||||||
|
|
||||||
case "Working": {
|
case "Working": {
|
||||||
if (_calorieCount > 0) then { dayz_nutrition = dayz_nutrition - _calorieCount; };
|
if (_calorieCount > 0) then { dayz_nutrition = dayz_nutrition - (_calorieCount / ((DZE_NutritionDivisor select 0) max 0.1)); };
|
||||||
if (_thirstCount > 0) then { dayz_thirst = dayz_thirst + _thirstCount; };
|
if (_thirstCount > 0) then { dayz_thirst = dayz_thirst + (_thirstCount / ((DZE_NutritionDivisor select 1) max 0.1)); };
|
||||||
if (_hungerCount > 0) then { dayz_hunger = dayz_hunger + _hungerCount; };
|
if (_hungerCount > 0) then { dayz_hunger = dayz_hunger + (_hungerCount / ((DZE_NutritionDivisor select 2) max 0.1)); };
|
||||||
if (_tempCount > 0) then { dayz_temperatur = dayz_temperatur + _tempCount; };
|
if (_tempCount > 0) then { dayz_temperatur = dayz_temperatur + (_tempCount / ((DZE_NutritionDivisor select 3) max 0.1)); };
|
||||||
};
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user