2015-01-16 23:21:47 +00:00
|
|
|
/**
|
|
|
|
* fn_isHC.sqf
|
|
|
|
* @Descr: Check if current locality is a headless client
|
|
|
|
* @Author: Glowbal
|
|
|
|
*
|
|
|
|
* @Arguments: []
|
|
|
|
* @Return: BOOL True if locality is headless client OR is not in multiplayer
|
|
|
|
* @PublicAPI: true
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "script_component.hpp"
|
|
|
|
|
|
|
|
private ["_return"];
|
|
|
|
|
|
|
|
if (!isMultiplayer) then {
|
2015-01-18 19:09:19 +00:00
|
|
|
_return = true;
|
2015-01-16 23:21:47 +00:00
|
|
|
} else {
|
2015-01-18 19:09:19 +00:00
|
|
|
if (isServer && !isDedicated) then {
|
|
|
|
_return = true;
|
|
|
|
} else {
|
|
|
|
_return = !(hasInterface || isDedicated);
|
|
|
|
};
|
2015-01-16 23:21:47 +00:00
|
|
|
};
|
|
|
|
_return
|