mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
In the initialize section of the fsm r_player_unconscious and r_player_timeout return their default values (false and 0). Also, the Vanilla server-side combat check doesn't appear to work, or it doesn't work with the antihack disabled (I haven't tested with it enabled). New variable inCombat is set more quickly than the combatTimeout variable
16 lines
348 B
Plaintext
16 lines
348 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", 0] > 0}) then {
|
|
player setVariable ["inCombat", 0, true];
|
|
};
|
|
|
|
objNull
|
|
};
|