mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-04 15:22:53 +03:00
Update combat handling
- Remove startcombattimer variable - Add combatNoTimeout variable to handle a combat without a time limit
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
local _object = _this select 0;
|
||||
local _setCombatOverTime = _this select 1;
|
||||
local _setCombatOverTime = _this select 1; // if true, combat has a time limit
|
||||
|
||||
if (_setCombatOverTime) then {
|
||||
_object setVariable["combattimeout", diag_tickTime + DZE_CombatTimer];
|
||||
if (_setCombatOverTime) then {
|
||||
_object setVariable["combatTimeout", diag_tickTime + DZE_CombatTimer]; // Combat time limited based on DZE_CombatTimer
|
||||
} else {
|
||||
_object setVariable["startcombattimer", 1];
|
||||
_object setVariable["combatNoTimeout", 1]; // Endless combat until the combat variable will be resetted
|
||||
};
|
||||
|
||||
if !(_object getVariable ["inCombat",false]) then {
|
||||
|
||||
Reference in New Issue
Block a user