mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-18 01:30:26 +03:00
Do not set player in combat for throwing flare or chemlight
Vanilla commit:
848b03042d
This commit is contained in:
@@ -21,14 +21,16 @@ 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 {
|
||||
_firer setVariable["inCombat",true,true];
|
||||
};
|
||||
if (_distance <= 8) then {
|
||||
_unit setVariable["startcombattimer", 1];
|
||||
if !(_unit getVariable["inCombat",false]) then {
|
||||
_unit setVariable["inCombat",true,true];
|
||||
if !(_ammo isKindOf "LitObject") then {
|
||||
_firer setVariable["startcombattimer", 1];
|
||||
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 {
|
||||
_unit setVariable["inCombat",true,true];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user