mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix defused UXOs being able to be defused again and detected by mine detector (#5623)
This commit is contained in:
parent
6ee16db792
commit
d598906205
@ -41,7 +41,7 @@ if (!("ACE_DefusalKit" in (items ACE_player))) exitWith {};
|
||||
//If player moved >5 meters from last pos, then rescan
|
||||
if (((getPosASL ace_player) distance _setPosition) > 5) then {
|
||||
{
|
||||
if (((_x distance ACE_player) < 15) && {!(_x in _minesHelped)}) then {
|
||||
if (((_x distance ACE_player) < 15) && {!(_x in _minesHelped)} && {(getModelInfo _x) select 0 != "empty.p3d"}) then {
|
||||
|
||||
private _config = configFile >> "CfgAmmo" >> typeOf _x;
|
||||
private _size = getNumber (_config >> QGVAR(size));
|
||||
|
@ -42,7 +42,7 @@ private _distance = -1;
|
||||
private _objectType = typeOf _x;
|
||||
|
||||
_isDetectable = GVAR(detectableClasses) getVariable _objectType;
|
||||
if (isNil "_isDetectable") then {
|
||||
if (isNil "_isDetectable" || {(getModelInfo _x) select 0 == "empty.p3d"}) then {
|
||||
_isDetectable = false;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user