mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-17 09:10:27 +03:00
sync with DayZ 1.7.4 CE
This commit is contained in:
@@ -21,12 +21,10 @@ private["_unit","_magazine","_used","_quantity","_magsNet","_magsWhole","_key","
|
||||
|
||||
// Both the firer and those nearby (<=15m) go into "combat" to prevent ALT-F4
|
||||
_firer setVariable["startcombattimer", 1, true];
|
||||
_listNear = _firer nearEntities [["CAManBase","AllVehicles"],15];
|
||||
{
|
||||
if (_isPlayer) then {
|
||||
|
||||
if (_distance <= 15) then {
|
||||
_unit setVariable["startcombattimer", 1, true];
|
||||
};
|
||||
} forEach _listNear;
|
||||
|
||||
if (_inVehicle) exitWith{};
|
||||
if (_firer == player) exitWith{};
|
||||
|
||||
Reference in New Issue
Block a user