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