2015-01-17 17:26:51 +00:00
|
|
|
// by commy2
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
2015-05-15 12:47:37 +00:00
|
|
|
private ["_unit","_weapon","_magazine"];
|
2015-01-17 17:26:51 +00:00
|
|
|
|
2015-05-15 12:47:37 +00:00
|
|
|
_unit = _this select 0;
|
|
|
|
_weapon = _this select 1;
|
2015-01-17 17:26:51 +00:00
|
|
|
_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) = ""};
|
|
|
|
};
|