2015-01-11 16:42:31 +00:00
|
|
|
/*
|
2015-02-02 09:04:53 +00:00
|
|
|
* Author: Garth 'L-H' de Wet
|
|
|
|
* Determines whether passed goggles is diving goggles or a variant of them.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Glasses classname <STRING>
|
|
|
|
*
|
|
|
|
* Return Value:
|
|
|
|
* Whether diving goggles are worn <BOOL>
|
|
|
|
*
|
|
|
|
* Example:
|
|
|
|
* [(goggles ace_player)] call ace_goggles_fnc_isDivingGoggles;
|
|
|
|
*
|
|
|
|
* Public: Yes
|
|
|
|
*/
|
2015-01-18 21:50:45 +00:00
|
|
|
#include "script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
private ["_result", "_glasses"];
|
2015-02-02 09:04:53 +00:00
|
|
|
_glasses = _this select 0;
|
2015-01-11 16:42:31 +00:00
|
|
|
_result = _glasses == "G_Diving";
|
|
|
|
if (_result) exitWith {true};
|
|
|
|
_result = [configFile >> "CfgGlasses" >> _glasses, configFile >> "CfgGlasses" >> "G_Diving"] call CBA_fnc_inheritsFrom;
|
|
|
|
_result
|