2023-09-12 18:58:10 +00:00
|
|
|
#include "..\script_component.hpp"
|
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-09-29 15:57:09 +00:00
|
|
|
|
|
|
|
params ["_glasses"];
|
|
|
|
|
2015-11-17 16:43:07 +00:00
|
|
|
private _config = configFile >> "CfgGlasses" >> _glasses;
|
2015-09-29 15:57:09 +00:00
|
|
|
|
|
|
|
if (!isClass _config) exitWith {false};
|
|
|
|
|
|
|
|
getNumber (_config >> "mode") == 1 // return
|