ACE3/addons/chemlights/functions/fnc_isIRClass.sqf
voiperr fedad7f8f7 Ace_Chemlights (Chemlight Enhancements) (#3921)
* Add ace_chemlights.
Make chemlight intensity and dropoff more realistic.
Add orange, white, IR chemlights.
Add chemlight shields.
Make chemlight impact sounds more realistic.

* Moved impact sound changes to a different branch.

* Used QPATHTOF. Fixed scopes. Used initServer. Reduced lifetime duration.
Checked privates.

* Stringtable: 5 minute.

* Blue lifetime. Removed ref to deprecated function

* Use proper magazine macro. Add new chemlights to Misc box.
2016-08-27 10:19:39 +02:00

24 lines
511 B
Plaintext

/*
* Author: voiper
* Check if an ammo classname is an IR chemlight.
*
* Arguments:
* 1: Projectile or ammo classname <OBJECT> or <STRING>
*
* Return Value:
* Is IR chemlight? <BOOL>
*
* Example:
* ["Chemlight_blue"] call ace_chemlights_fnc_isIRClass;
*
* Public: No
*/
#include "script_component.hpp"
params [["_input", "", ["", objNull]]];
private _class = if (typeName _input == "OBJECT") then {typeOf _input} else {_input};
isText (configFile >> "CfgAmmo" >> _class >> "ACE_Chemlight_IR")