mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-18 09:32:02 +03:00
- Remove startcombattimer variable - Add combatNoTimeout variable to handle a combat without a time limit
18 lines
415 B
Plaintext
18 lines
415 B
Plaintext
#include "scheduler.hpp"
|
|
|
|
sched_playerActions = {
|
|
HIDE_FSM_VARS
|
|
|
|
if (!dayz_actionInProgress) then {
|
|
call fnc_usec_selfActions;
|
|
call fnc_usec_damageActions;
|
|
};
|
|
|
|
//combat check
|
|
if ((player getVariable ["combatTimeout",0] < diag_tickTime) && {player getVariable ["inCombat",false]} && {player getVariable["combatNoTimeout", 0] == 0}) then {
|
|
player setVariable ["inCombat", false, true];
|
|
};
|
|
|
|
objNull
|
|
};
|