mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
20 lines
492 B
Plaintext
20 lines
492 B
Plaintext
// by commy2
|
|
#include "script_component.hpp"
|
|
|
|
private ["_unit","_weapon","_magazine"];
|
|
|
|
_unit = _this select 0;
|
|
_weapon = _this select 1;
|
|
_magazine = _this select 5;
|
|
|
|
if (_weapon != "Throw") exitWith {};
|
|
|
|
private "_count";
|
|
_count = {_x == _magazine} count magazines _unit;
|
|
|
|
[_magazine, _count] call FUNC(displayGrenadeTypeAndNumber);
|
|
|
|
if (_count == 0) then {
|
|
if (GVAR(CurrentGrenadeMuzzleIsFrag)) then {GVAR(CurrentGrenadeMuzzleFrag) = ""} else {GVAR(CurrentGrenadeMuzzleOther) = ""};
|
|
};
|