mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-16 05:39:58 +03:00
@@ -69,7 +69,7 @@ dayz_lastDamageSourceNull = false;
|
||||
if (_unit == player) then {
|
||||
//Set player in combat
|
||||
_unit setVariable["startcombattimer", 1];
|
||||
if (_unit getVariable["inCombat",false]) then {
|
||||
if !(_unit getVariable["inCombat",false]) then {
|
||||
_unit setVariable["inCombat",true,true];
|
||||
};
|
||||
|
||||
|
||||
@@ -22,12 +22,12 @@ private ["_handled"];
|
||||
// Both the firer and those nearby (<=8m) go into "combat" to prevent ALT-F4
|
||||
//diag_log ("DEBUG: AMMO TYPE: " +str(_ammo));
|
||||
_firer setVariable["startcombattimer", 1];
|
||||
if (_firer getVariable["inCombat",false]) then {
|
||||
if !(_firer getVariable["inCombat",false]) then {
|
||||
_firer setVariable["inCombat",true,true];
|
||||
};
|
||||
if (_distance <= 8) then {
|
||||
_unit setVariable["startcombattimer", 1];
|
||||
if (_unit getVariable["inCombat",false]) then {
|
||||
if !(_unit getVariable["inCombat",false]) then {
|
||||
_unit setVariable["inCombat",true,true];
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user