mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Remove useless if statement
This commit is contained in:
@ -50,16 +50,6 @@ if (ACE_player == _unit && {currentWeapon _unit == _type}) then {
|
|||||||
case (_distance >= 0.5): {_sounds select 1};
|
case (_distance >= 0.5): {_sounds select 1};
|
||||||
default {_sounds select 0};
|
default {_sounds select 0};
|
||||||
};
|
};
|
||||||
|
|
||||||
if ((_distance >= 1.2)) then {
|
|
||||||
if (_distance >= 2) then {
|
|
||||||
_sounds select 2;
|
|
||||||
} else {
|
|
||||||
_sounds select 1;
|
|
||||||
};
|
|
||||||
} else {
|
|
||||||
_sounds select 0;
|
|
||||||
};
|
|
||||||
[_unit, _sound, true] call FUNC(playDetectorSound);
|
[_unit, _sound, true] call FUNC(playDetectorSound);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user