2015-01-11 16:42:31 +00:00
|
|
|
/*
|
2015-09-29 15:57:09 +00:00
|
|
|
* Author: commy2
|
2015-02-02 09:04:53 +00:00
|
|
|
* Determines whether passed goggles is diving goggles or a variant of them.
|
|
|
|
*
|
|
|
|
* Arguments:
|
|
|
|
* 0: Glasses classname <STRING>
|
|
|
|
*
|
|
|
|
* Return Value:
|
2015-09-29 15:57:09 +00:00
|
|
|
* Check if these goggles are diving goggles <BOOL>
|
2015-02-02 09:04:53 +00:00
|
|
|
*
|
|
|
|
* Example:
|
2015-09-29 15:57:09 +00:00
|
|
|
* [goggles ace_player] call ace_goggles_fnc_isDivingGoggles;
|
2015-02-02 09:04:53 +00:00
|
|
|
*
|
|
|
|
* Public: Yes
|
|
|
|
*/
|
2015-01-18 21:50:45 +00:00
|
|
|
#include "script_component.hpp"
|
2015-09-29 15:57:09 +00:00
|
|
|
|
|
|
|
params ["_glasses"];
|
|
|
|
|
|
|
|
local _config = configFile >> "CfgGlasses" >> _glasses;
|
|
|
|
|
|
|
|
if (!isClass _config) exitWith {false};
|
|
|
|
|
|
|
|
getNumber (_config >> "mode") == 1 // return
|