mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Better combat log detection method on server
"noatlf4" variable is set on server through PV from damage handler. No need to worry about diag_tickTime difference between clients and server.
This commit is contained in:
@@ -360,15 +360,14 @@ while {1 == 1} do {
|
||||
|
||||
_startcombattimer = player getVariable["startcombattimer", 0];
|
||||
if (_startcombattimer == 1 || _PlayerNearby) then {
|
||||
player setVariable["combattimeout", diag_tickTime + 30, true]; // Global used to punish combat log in server_onPlayerDisconnect
|
||||
player setVariable["combattimeout", diag_tickTime + 30, false];
|
||||
player setVariable["startcombattimer", 0, false];
|
||||
} else {
|
||||
if (_ZedsNearby && !_isPZombie) then {
|
||||
player setVariable["combattimeout", diag_tickTime + 10, true]; // Global used to punish combat log in server_onPlayerDisconnect
|
||||
player setVariable["combattimeout", diag_tickTime + 10, false];
|
||||
player setVariable["startcombattimer", 0, false];
|
||||
};
|
||||
};
|
||||
|
||||
//setGroupIconsVisible [false,false];
|
||||
//clearGroupIcons group player;
|
||||
|
||||
@@ -451,4 +450,4 @@ while {1 == 1} do {
|
||||
_timerMonitor = diag_ticktime;
|
||||
};
|
||||
*/
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user