mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
When a variable is only going to be 0 or 1 it makes more sense to use a
bool.
Also avoided unnecessary network broadcasts of inCombat from e446603
16 lines
351 B
Plaintext
16 lines
351 B
Plaintext
#include "scheduler.hpp"
|
|
|
|
sched_playerActions = {
|
|
HIDE_FSM_VARS
|
|
call fnc_usec_selfActions;
|
|
call fnc_usec_damageActions;
|
|
call fnc_usec_upgradeActions;
|
|
|
|
//combat check
|
|
if ((player getVariable ["combattimeout",0] < diag_tickTime) && {player getVariable ["inCombat",false]}) then {
|
|
player setVariable ["inCombat", false, true];
|
|
};
|
|
|
|
objNull
|
|
};
|