AdvThrow - Handle bugged currentThrowable (#5216)

This commit is contained in:
PabstMirror 2017-05-29 12:55:00 -05:00 committed by GitHub
parent 5145b89405
commit 58b15e4aa1

View File

@ -36,6 +36,11 @@ if (_throwable isEqualTo [] && {!_primed}) exitWith {
private _throwableMag = _throwable param [0, "#none"];
// If not primed, double check we actually have the magazine in inventory
if ((!_primed) && {!(_throwableMag in (magazines ACE_player))}) exitWith {
[ACE_player, "No valid throwable (glitched currentThrowable)"] call FUNC(exitThrowMode);
};
// Get correct throw power for primed grenade
if (_primed) then {
private _ammoType = typeOf _activeThrowable;