2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
2023-03-18 19:24:27 +00:00
|
|
|
/*
|
|
|
|
* Author: Cyruz
|
2024-01-27 08:14:10 +00:00
|
|
|
* Checks if the magazine's ammo are flares.
|
2023-03-18 19:24:27 +00:00
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Magazine <STRING>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* 0: If magazine is type of flare <BOOL>
|
|
|
|
*
|
|
|
|
* Example:
|
2024-01-27 08:14:10 +00:00
|
|
|
* "3Rnd_UGL_FlareWhite_F" call ace_cookoff_fnc_isMagazineFlare
|
2023-03-18 19:24:27 +00:00
|
|
|
*
|
|
|
|
* Public: No
|
|
|
|
*/
|
|
|
|
|
|
|
|
params ["_magazine"];
|
|
|
|
|
2024-01-27 08:14:10 +00:00
|
|
|
private _configAmmo = configFile >> "CfgAmmo" >> getText (configFile >> "CfgMagazines" >> _magazine >> "ammo");
|
|
|
|
private _intensity = getNumber (_configAmmo >> "intensity");
|
|
|
|
private _flare = getNumber (_configAmmo >> QEGVAR(grenades,flare));
|
2023-03-18 19:24:27 +00:00
|
|
|
|
|
|
|
_intensity != 0 || _flare == 1
|