From 55029a51aeabf957f639a0045bca69afdba63247 Mon Sep 17 00:00:00 2001 From: Madin Date: Tue, 14 May 2024 10:04:05 +0200 Subject: [PATCH] added #include "script_component.hpp" --- addons/main/functions/fnc_HCfind.sqf | 1 + addons/main/functions/fnc_checkActivateConditions.sqf | 1 + addons/main/functions/fnc_createVehicleFromInfo.sqf | 1 + addons/main/functions/fnc_expectedNewUnitsCountReturn.sqf | 2 ++ addons/main/functions/fnc_getGroups.sqf | 2 ++ addons/main/functions/fnc_getVehicleInfo.sqf | 1 + addons/main/functions/fnc_moveInVehicleRole.sqf | 1 + addons/main/functions/fnc_patrolRandomWaypoints.sqf | 1 + addons/main/functions/fnc_spawnAI.sqf | 2 ++ addons/main/functions/script_component.hpp | 1 + 10 files changed, 13 insertions(+) create mode 100644 addons/main/functions/script_component.hpp diff --git a/addons/main/functions/fnc_HCfind.sqf b/addons/main/functions/fnc_HCfind.sqf index 8b2c5fe..df27c2e 100644 --- a/addons/main/functions/fnc_HCfind.sqf +++ b/addons/main/functions/fnc_HCfind.sqf @@ -12,6 +12,7 @@ 0: Headless Cliend ID, 2(server) if not connected */ +#include "script_component.hpp" if (!isMultiplayer) exitWith {0}; if (!isServer) exitWith {clientOwner}; diff --git a/addons/main/functions/fnc_checkActivateConditions.sqf b/addons/main/functions/fnc_checkActivateConditions.sqf index 958d281..78caf2d 100644 --- a/addons/main/functions/fnc_checkActivateConditions.sqf +++ b/addons/main/functions/fnc_checkActivateConditions.sqf @@ -11,6 +11,7 @@ */ +#include "script_component.hpp" params [ ["_logic",objNull,[objNull]] diff --git a/addons/main/functions/fnc_createVehicleFromInfo.sqf b/addons/main/functions/fnc_createVehicleFromInfo.sqf index 3ea171f..1f81afe 100644 --- a/addons/main/functions/fnc_createVehicleFromInfo.sqf +++ b/addons/main/functions/fnc_createVehicleFromInfo.sqf @@ -5,6 +5,7 @@ */ +#include "script_component.hpp" params [ ["_vehType", ""], diff --git a/addons/main/functions/fnc_expectedNewUnitsCountReturn.sqf b/addons/main/functions/fnc_expectedNewUnitsCountReturn.sqf index bcd5789..8a6f1b6 100644 --- a/addons/main/functions/fnc_expectedNewUnitsCountReturn.sqf +++ b/addons/main/functions/fnc_expectedNewUnitsCountReturn.sqf @@ -10,6 +10,8 @@ Return Value: */ +#include "script_component.hpp" + params [["_unitsCountChange", 0]]; private _expectedNewUnitsCount = missionNameSpace getVariable [QGVAR(expectedNewUnitsCount), 0]; GVAR(expectedNewUnitsCount) = _expectedNewUnitsCount + _unitsCountChange; \ No newline at end of file diff --git a/addons/main/functions/fnc_getGroups.sqf b/addons/main/functions/fnc_getGroups.sqf index a4a3b3a..72c51c4 100644 --- a/addons/main/functions/fnc_getGroups.sqf +++ b/addons/main/functions/fnc_getGroups.sqf @@ -13,6 +13,8 @@ None */ +#include "script_component.hpp" + params [ ["_groupsInput",[],[[]]] ]; diff --git a/addons/main/functions/fnc_getVehicleInfo.sqf b/addons/main/functions/fnc_getVehicleInfo.sqf index ee8803a..1b5dd37 100644 --- a/addons/main/functions/fnc_getVehicleInfo.sqf +++ b/addons/main/functions/fnc_getVehicleInfo.sqf @@ -5,6 +5,7 @@ */ +#include "script_component.hpp" params [ ["_vehicle",objNull,[objNull]] diff --git a/addons/main/functions/fnc_moveInVehicleRole.sqf b/addons/main/functions/fnc_moveInVehicleRole.sqf index 65007c6..f5dfb47 100644 --- a/addons/main/functions/fnc_moveInVehicleRole.sqf +++ b/addons/main/functions/fnc_moveInVehicleRole.sqf @@ -12,6 +12,7 @@ None */ +#include "script_component.hpp" params [ ["_unit", objNull], diff --git a/addons/main/functions/fnc_patrolRandomWaypoints.sqf b/addons/main/functions/fnc_patrolRandomWaypoints.sqf index e6c86a5..75a371a 100644 --- a/addons/main/functions/fnc_patrolRandomWaypoints.sqf +++ b/addons/main/functions/fnc_patrolRandomWaypoints.sqf @@ -15,6 +15,7 @@ None */ +#include "script_component.hpp" params [ ["_group",grpNull], diff --git a/addons/main/functions/fnc_spawnAI.sqf b/addons/main/functions/fnc_spawnAI.sqf index d0282aa..d009ba5 100644 --- a/addons/main/functions/fnc_spawnAI.sqf +++ b/addons/main/functions/fnc_spawnAI.sqf @@ -16,6 +16,8 @@ 0: Unit */ +#include "script_component.hpp" + params ["_group","_type","_pos",["_dir",0],["_stanceTime",0,[0]],["_useAnimation",true]]; private _unit = _group createUnit [_type, _pos, [], 0, "CAN_COLLIDE"]; _unit setFormDir _dir; diff --git a/addons/main/functions/script_component.hpp b/addons/main/functions/script_component.hpp new file mode 100644 index 0000000..2ef3f50 --- /dev/null +++ b/addons/main/functions/script_component.hpp @@ -0,0 +1 @@ +#include "\z\afmf\addons\main\script_component.hpp"