mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
AdvThrow - Handle bugged currentThrowable (#5216)
This commit is contained in:
parent
5145b89405
commit
58b15e4aa1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user