diff --git a/addons/air_security/functions/fnc_canSecure.sqf b/addons/air_security/functions/fnc_canSecure.sqf index 8c56e5eb..0f4b9b4d 100644 --- a/addons/air_security/functions/fnc_canSecure.sqf +++ b/addons/air_security/functions/fnc_canSecure.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Check if the crew of the vehicle can be Secured. @@ -14,7 +15,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_vehicle", "_unit"]; diff --git a/addons/air_security/functions/fnc_canUnsecure.sqf b/addons/air_security/functions/fnc_canUnsecure.sqf index be370d9c..36f62ec5 100644 --- a/addons/air_security/functions/fnc_canUnsecure.sqf +++ b/addons/air_security/functions/fnc_canUnsecure.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Check if the crew of the vehicle can be Unsecured. @@ -14,7 +15,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_vehicle", "_unit"]; diff --git a/addons/air_security/functions/fnc_setSecurity.sqf b/addons/air_security/functions/fnc_setSecurity.sqf index 2d47a843..fc7f223a 100644 --- a/addons/air_security/functions/fnc_setSecurity.sqf +++ b/addons/air_security/functions/fnc_setSecurity.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: DaC, Jonpas * Toggles vehicle crew security. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_vehicle"]; diff --git a/addons/apollo/functions/fnc_endMissionError.sqf b/addons/apollo/functions/fnc_endMissionError.sqf index 20818eac..edfb655d 100644 --- a/addons/apollo/functions/fnc_endMissionError.sqf +++ b/addons/apollo/functions/fnc_endMissionError.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Ends mission with error message on client. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_errorMessage"]; diff --git a/addons/apollo/functions/fnc_handleDisconnect.sqf b/addons/apollo/functions/fnc_handleDisconnect.sqf index 4a61c200..43dd3c64 100644 --- a/addons/apollo/functions/fnc_handleDisconnect.sqf +++ b/addons/apollo/functions/fnc_handleDisconnect.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Handles save and corpse removal on disconnect. @@ -15,7 +16,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_unit", "", "_uid"]; TRACE_1("Handle Disconnect",_this); diff --git a/addons/apollo/functions/fnc_handleKilled.sqf b/addons/apollo/functions/fnc_handleKilled.sqf index 5eb9067b..93e5f1fa 100644 --- a/addons/apollo/functions/fnc_handleKilled.sqf +++ b/addons/apollo/functions/fnc_handleKilled.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Handles killed event (mark in backend for fresh inventory). @@ -15,7 +16,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_player", "_killer"]; TRACE_1("Handle Killed",_this); diff --git a/addons/apollo/functions/fnc_handleRespawn.sqf b/addons/apollo/functions/fnc_handleRespawn.sqf index 45fa0de7..ae18af9f 100644 --- a/addons/apollo/functions/fnc_handleRespawn.sqf +++ b/addons/apollo/functions/fnc_handleRespawn.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Handles respawn event (mark in backend for fresh inventory). @@ -14,7 +15,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_player", "_corpse"]; TRACE_1("Handle Respawn",_this); diff --git a/addons/apollo/functions/fnc_invokeJavaMethod.sqf b/addons/apollo/functions/fnc_invokeJavaMethod.sqf index 140d0673..7bdd86c8 100644 --- a/addons/apollo/functions/fnc_invokeJavaMethod.sqf +++ b/addons/apollo/functions/fnc_invokeJavaMethod.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Invokes Java code through JNI extension with XML marshalling and returns the return value from extension. @@ -15,7 +16,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_method"]; diff --git a/addons/apollo/functions/fnc_lockerAction.sqf b/addons/apollo/functions/fnc_lockerAction.sqf index 7e547012..008b4ae9 100644 --- a/addons/apollo/functions/fnc_lockerAction.sqf +++ b/addons/apollo/functions/fnc_lockerAction.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Parses locker action through extension. @@ -17,7 +18,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_player", "_type", "_container", "_itemClass", "_quantity"]; diff --git a/addons/apollo/functions/fnc_playerLoadClient.sqf b/addons/apollo/functions/fnc_playerLoadClient.sqf index 2e93543b..3e772985 100644 --- a/addons/apollo/functions/fnc_playerLoadClient.sqf +++ b/addons/apollo/functions/fnc_playerLoadClient.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Loads player using ApolloClient extension. @@ -15,7 +16,6 @@ * Public: No */ //#define DEBUG_MODE_FULL -#include "script_component.hpp" params ["_player", "_loadType"]; diff --git a/addons/apollo/functions/fnc_playerSaveClient.sqf b/addons/apollo/functions/fnc_playerSaveClient.sqf index 7a608e60..fd4087d9 100644 --- a/addons/apollo/functions/fnc_playerSaveClient.sqf +++ b/addons/apollo/functions/fnc_playerSaveClient.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Handles loadout change and periodic saves. Requests a save of the player after a delay. @@ -15,7 +16,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_player", "", ["_periodic", false]]; TRACE_2("Player Save Client",_player,_periodic); diff --git a/addons/apollo/functions/fnc_playerSingletonSave.sqf b/addons/apollo/functions/fnc_playerSingletonSave.sqf index 9797ad55..fad5a62e 100644 --- a/addons/apollo/functions/fnc_playerSingletonSave.sqf +++ b/addons/apollo/functions/fnc_playerSingletonSave.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Saves a player object and necessary variables. @@ -15,7 +16,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_player", "_uid", "_type"]; diff --git a/addons/apollo/functions/fnc_vehicleLoad.sqf b/addons/apollo/functions/fnc_vehicleLoad.sqf index 9ce190b8..69b3c7f9 100644 --- a/addons/apollo/functions/fnc_vehicleLoad.sqf +++ b/addons/apollo/functions/fnc_vehicleLoad.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Loads vehicles. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" private _retrieveVehicles = ["retrieveAllVehicles"] call FUNC(invokeJavaMethod); diff --git a/addons/apollo/functions/fnc_vehicleSaveServer.sqf b/addons/apollo/functions/fnc_vehicleSaveServer.sqf index 68e990ce..62326810 100644 --- a/addons/apollo/functions/fnc_vehicleSaveServer.sqf +++ b/addons/apollo/functions/fnc_vehicleSaveServer.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Saves vehicles. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" // Make safe copy in case of new vehicles during this save round private _vehList = +GVAR(vehiclesList); diff --git a/addons/apollo/functions/fnc_vehicleSingletonLoad.sqf b/addons/apollo/functions/fnc_vehicleSingletonLoad.sqf index e0a6842c..b390a2de 100644 --- a/addons/apollo/functions/fnc_vehicleSingletonLoad.sqf +++ b/addons/apollo/functions/fnc_vehicleSingletonLoad.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Loads a single vehicle. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_vehicleID"]; diff --git a/addons/apollo/functions/fnc_vehicleSingletonSave.sqf b/addons/apollo/functions/fnc_vehicleSingletonSave.sqf index 42303bbd..a981769a 100644 --- a/addons/apollo/functions/fnc_vehicleSingletonSave.sqf +++ b/addons/apollo/functions/fnc_vehicleSingletonSave.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Saves a single vehicle. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_vehicleObject"]; diff --git a/addons/armory/functions/fnc_addItems.sqf b/addons/armory/functions/fnc_addItems.sqf index ef909777..6ee26ead 100644 --- a/addons/armory/functions/fnc_addItems.sqf +++ b/addons/armory/functions/fnc_addItems.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Adds items to vanilla Armory system. @@ -19,7 +20,6 @@ * * Public: Yes */ -#include "script_component.hpp" params [ ["_object", objNull, [objNull]], diff --git a/addons/armory/functions/fnc_canAddArmory.sqf b/addons/armory/functions/fnc_canAddArmory.sqf index 38361879..ef3bdccd 100644 --- a/addons/armory/functions/fnc_canAddArmory.sqf +++ b/addons/armory/functions/fnc_canAddArmory.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Checks if armory can be added to the object (object has inventory). @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_object"]; diff --git a/addons/armory/functions/fnc_canOpenArmory.sqf b/addons/armory/functions/fnc_canOpenArmory.sqf index 8820fdbb..861949da 100644 --- a/addons/armory/functions/fnc_canOpenArmory.sqf +++ b/addons/armory/functions/fnc_canOpenArmory.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Checks if armory can be opened (is not in use by someone else). @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_object"]; diff --git a/addons/armory/functions/fnc_closeArmory.sqf b/addons/armory/functions/fnc_closeArmory.sqf index d8d90b0e..64eeb584 100644 --- a/addons/armory/functions/fnc_closeArmory.sqf +++ b/addons/armory/functions/fnc_closeArmory.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Close Armory and clean up. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" // Allow others to use the object's Armory private _object = ACE_player getVariable [QGVAR(object), objNull]; diff --git a/addons/armory/functions/fnc_dialogControl.sqf b/addons/armory/functions/fnc_dialogControl.sqf index 4a99ef45..5367c15b 100644 --- a/addons/armory/functions/fnc_dialogControl.sqf +++ b/addons/armory/functions/fnc_dialogControl.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Overall menu manipulation. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_requestedMenu"]; diff --git a/addons/armory/functions/fnc_dialogControl_amountSelection.sqf b/addons/armory/functions/fnc_dialogControl_amountSelection.sqf index 29f93f4e..d9fe2348 100644 --- a/addons/armory/functions/fnc_dialogControl_amountSelection.sqf +++ b/addons/armory/functions/fnc_dialogControl_amountSelection.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Sets up amount selection dropdown. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" private _quantity = CTRL(NLIST) lnbData [lnbCurSelRow NLIST, 2]; TRACE_1("Amount of selected item",_quantity); diff --git a/addons/armory/functions/fnc_dialogControl_back.sqf b/addons/armory/functions/fnc_dialogControl_back.sqf index 3a8cd717..c761cb0c 100644 --- a/addons/armory/functions/fnc_dialogControl_back.sqf +++ b/addons/armory/functions/fnc_dialogControl_back.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Goes back to menu or exits Armory. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_type"]; diff --git a/addons/armory/functions/fnc_dialogControl_list.sqf b/addons/armory/functions/fnc_dialogControl_list.sqf index e93be731..f3fdd9f9 100644 --- a/addons/armory/functions/fnc_dialogControl_list.sqf +++ b/addons/armory/functions/fnc_dialogControl_list.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Sets up requested list and dropdown. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_selectedCategory"]; GVAR(selectedCategory) = _selectedCategory; // For FUNC(dialogControl_takestash) diff --git a/addons/armory/functions/fnc_dialogControl_main.sqf b/addons/armory/functions/fnc_dialogControl_main.sqf index 4b60013b..d5cc08c8 100644 --- a/addons/armory/functions/fnc_dialogControl_main.sqf +++ b/addons/armory/functions/fnc_dialogControl_main.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Sets up main menu. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_show"]; diff --git a/addons/armory/functions/fnc_dialogControl_populateList.sqf b/addons/armory/functions/fnc_dialogControl_populateList.sqf index 86857f63..18121257 100644 --- a/addons/armory/functions/fnc_dialogControl_populateList.sqf +++ b/addons/armory/functions/fnc_dialogControl_populateList.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Populates lists. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_armoryData"]; diff --git a/addons/armory/functions/fnc_dialogControl_takestash.sqf b/addons/armory/functions/fnc_dialogControl_takestash.sqf index 0802bc21..cca77a43 100644 --- a/addons/armory/functions/fnc_dialogControl_takestash.sqf +++ b/addons/armory/functions/fnc_dialogControl_takestash.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Shows Take/Stash buttons. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" // Hide take/stash if quantity of dropdown amount selection is not set if (lbText [DROPDOWNAMOUNT, lbCurSel CTRL(DROPDOWNAMOUNT)] == "") exitWith { diff --git a/addons/armory/functions/fnc_extractSubCategories.sqf b/addons/armory/functions/fnc_extractSubCategories.sqf index 96374f34..23c69003 100644 --- a/addons/armory/functions/fnc_extractSubCategories.sqf +++ b/addons/armory/functions/fnc_extractSubCategories.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Extracts sub-categories from Armory Data. @@ -14,7 +15,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_armoryData", "_compatible"]; diff --git a/addons/armory/functions/fnc_getBoxContents.sqf b/addons/armory/functions/fnc_getBoxContents.sqf index 63a8d9cf..25e87a10 100644 --- a/addons/armory/functions/fnc_getBoxContents.sqf +++ b/addons/armory/functions/fnc_getBoxContents.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Returns contents of a box. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" private _object = ACE_player getVariable [QGVAR(object), objNull]; diff --git a/addons/armory/functions/fnc_getDataChronos.sqf b/addons/armory/functions/fnc_getDataChronos.sqf index b282c6fb..e2ccc08a 100644 --- a/addons/armory/functions/fnc_getDataChronos.sqf +++ b/addons/armory/functions/fnc_getDataChronos.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: DaC, Jonpas * Gets data from Apollo Client / Athena (Chronos). @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_selectedCategory"]; diff --git a/addons/armory/functions/fnc_getDataVanilla.sqf b/addons/armory/functions/fnc_getDataVanilla.sqf index 46d6481a..5f515aa8 100644 --- a/addons/armory/functions/fnc_getDataVanilla.sqf +++ b/addons/armory/functions/fnc_getDataVanilla.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Gets preset Armory data. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_selectedCategory"]; diff --git a/addons/armory/functions/fnc_init.sqf b/addons/armory/functions/fnc_init.sqf index d88ecc64..1838d801 100644 --- a/addons/armory/functions/fnc_init.sqf +++ b/addons/armory/functions/fnc_init.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Adds the Armory action to an Object and handles the GUI initialization. @@ -13,7 +14,6 @@ * * Public: Yes */ -#include "script_component.hpp" params [["_object", this]]; diff --git a/addons/armory/functions/fnc_isCompatible.sqf b/addons/armory/functions/fnc_isCompatible.sqf index b951c6ff..6fc12b15 100644 --- a/addons/armory/functions/fnc_isCompatible.sqf +++ b/addons/armory/functions/fnc_isCompatible.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Checks if magazine or attachment is compatible with any weapon carried by player. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_itemClass"]; diff --git a/addons/armory/functions/fnc_openArmory.sqf b/addons/armory/functions/fnc_openArmory.sqf index c70cbb5f..65b5d22a 100644 --- a/addons/armory/functions/fnc_openArmory.sqf +++ b/addons/armory/functions/fnc_openArmory.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Open Armory on an object. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_object"]; diff --git a/addons/armory/functions/fnc_processAction.sqf b/addons/armory/functions/fnc_processAction.sqf index fcc4ff94..0846339c 100644 --- a/addons/armory/functions/fnc_processAction.sqf +++ b/addons/armory/functions/fnc_processAction.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Processes performed action and modifies Vanilla data or sends data back to Apollo (Chronos). @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_type"]; diff --git a/addons/armory/functions/fnc_subtractData.sqf b/addons/armory/functions/fnc_subtractData.sqf index 10d986d0..9d34ef1b 100644 --- a/addons/armory/functions/fnc_subtractData.sqf +++ b/addons/armory/functions/fnc_subtractData.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Subtracts quantity of an item or removes it completely (for in-list handling). @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_armoryData", "_selectedItem", "_selectedAmount"]; diff --git a/addons/armory/functions/fnc_updateData.sqf b/addons/armory/functions/fnc_updateData.sqf index c1085868..c0973868 100644 --- a/addons/armory/functions/fnc_updateData.sqf +++ b/addons/armory/functions/fnc_updateData.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Updates Armory Data in currently open screen. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_newArmoryData"]; diff --git a/addons/bodybag/functions/fnc_moveInventory.sqf b/addons/bodybag/functions/fnc_moveInventory.sqf index c002fa30..d2771385 100644 --- a/addons/bodybag/functions/fnc_moveInventory.sqf +++ b/addons/bodybag/functions/fnc_moveInventory.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Puts killed unit's inventory into the body bag. @@ -14,7 +15,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_unit", "_bodybag"]; diff --git a/addons/bodybag/functions/fnc_saveDroppedWeapons.sqf b/addons/bodybag/functions/fnc_saveDroppedWeapons.sqf index c807f06d..f137f598 100644 --- a/addons/bodybag/functions/fnc_saveDroppedWeapons.sqf +++ b/addons/bodybag/functions/fnc_saveDroppedWeapons.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Saves dropped weapons to a variable on the unit. Workaround for restoring dropped weapons which get deleted with deleteVehicle. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_unit"]; diff --git a/addons/heavylifter/functions/fnc_canAttach.sqf b/addons/heavylifter/functions/fnc_canAttach.sqf index dca37bf8..2fdcb1f6 100644 --- a/addons/heavylifter/functions/fnc_canAttach.sqf +++ b/addons/heavylifter/functions/fnc_canAttach.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Check if the heavy duty hooks can be Attached. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_vehicle"]; diff --git a/addons/heavylifter/functions/fnc_canDetach.sqf b/addons/heavylifter/functions/fnc_canDetach.sqf index 024449dd..bb44b957 100644 --- a/addons/heavylifter/functions/fnc_canDetach.sqf +++ b/addons/heavylifter/functions/fnc_canDetach.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Check if the heavy duty hooks can be Detached. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_vehicle"]; diff --git a/addons/heavylifter/functions/fnc_exportConfig.sqf b/addons/heavylifter/functions/fnc_exportConfig.sqf index b40b6a70..7c5694e9 100644 --- a/addons/heavylifter/functions/fnc_exportConfig.sqf +++ b/addons/heavylifter/functions/fnc_exportConfig.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: BaerMitUmlaut, 654wak654, Jonpas * Generates the CfgVehicles config for heavy lifter compatibility. @@ -15,7 +16,6 @@ * * Public: Yes */ -#include "script_component.hpp" #define HELPER_CENTER_HEIGHT 1.32 diff --git a/addons/heavylifter/functions/fnc_prepare.sqf b/addons/heavylifter/functions/fnc_prepare.sqf index a70589ad..eb357f8c 100644 --- a/addons/heavylifter/functions/fnc_prepare.sqf +++ b/addons/heavylifter/functions/fnc_prepare.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: DaC, Jonpas * Prepares the vehicle for heavy lifting. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" private ["_attachPos", "_vehiclePosOffsetWorld", "_vehiclePosOffset", "_vehicleVectorDirAndUp", "_helper"]; params ["_vehicle"]; diff --git a/addons/heavylifter/functions/fnc_progress.sqf b/addons/heavylifter/functions/fnc_progress.sqf index 5ca4e056..7f20650f 100644 --- a/addons/heavylifter/functions/fnc_progress.sqf +++ b/addons/heavylifter/functions/fnc_progress.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Starts Attach or Detach process. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_vehicle"]; diff --git a/addons/heavylifter/functions/fnc_unprepare.sqf b/addons/heavylifter/functions/fnc_unprepare.sqf index 0139228c..79ec56af 100644 --- a/addons/heavylifter/functions/fnc_unprepare.sqf +++ b/addons/heavylifter/functions/fnc_unprepare.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: DaC, Jonpas * Sets the vehicle back to operational state. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_targetVehicle"]; diff --git a/addons/insignia/functions/fnc_getInsignia.sqf b/addons/insignia/functions/fnc_getInsignia.sqf index b19f39ba..b1358eec 100644 --- a/addons/insignia/functions/fnc_getInsignia.sqf +++ b/addons/insignia/functions/fnc_getInsignia.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Gets insignia from a player if it's actual player (and not remote controlled or AI). @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_unit"]; diff --git a/addons/insignia/functions/fnc_setInsignia.sqf b/addons/insignia/functions/fnc_setInsignia.sqf index b1c9f523..f6d1f767 100644 --- a/addons/insignia/functions/fnc_setInsignia.sqf +++ b/addons/insignia/functions/fnc_setInsignia.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Adds insignia to a player if it's actual player (and not remote controlled or AI). @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_unit"]; TRACE_2("Trying to add insignia",_unit,GVAR(enabled)); diff --git a/addons/misc/functions/fnc_toggleAlarm.sqf b/addons/misc/functions/fnc_toggleAlarm.sqf index cdd0b4ce..8a4da415 100644 --- a/addons/misc/functions/fnc_toggleAlarm.sqf +++ b/addons/misc/functions/fnc_toggleAlarm.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Handles the Alarm switching. @@ -14,7 +15,6 @@ * [, []] call TAC_Misc_fnc_toggleAlarm; * [, [, , ], "Sound_Alarm"] call TAC_Misc_fnc_toggleAlarm; */ -#include "script_component.hpp" params ["_button", "_speakers", ["_soundType", "Sound_Alarm"]]; diff --git a/addons/mission_autotest/functions/fnc_autotest.sqf b/addons/mission_autotest/functions/fnc_autotest.sqf index 4114811d..a65b55cc 100644 --- a/addons/mission_autotest/functions/fnc_autotest.sqf +++ b/addons/mission_autotest/functions/fnc_autotest.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: TMF Team, Jonpas * Performs overall autotest and logs the results. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" private _ctrlListbox = _this controlsGroupCtrl CTRL_PICTURE; _ctrlListbox lnbSetColumnsPos [FINDINGS_COLUMN_SIZE]; // Fix entries positioning diff --git a/addons/mission_autotest/functions/fnc_testAIAmount.sqf b/addons/mission_autotest/functions/fnc_testAIAmount.sqf index c3878a8a..36cd0c10 100644 --- a/addons/mission_autotest/functions/fnc_testAIAmount.sqf +++ b/addons/mission_autotest/functions/fnc_testAIAmount.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: TMF Team, Jonpas * Tests AI amount. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" private _aiAmount = count (allUnits - playableUnits); diff --git a/addons/mission_autotest/functions/fnc_testAIPosession.sqf b/addons/mission_autotest/functions/fnc_testAIPosession.sqf index aeacfd14..e7db9ea5 100644 --- a/addons/mission_autotest/functions/fnc_testAIPosession.sqf +++ b/addons/mission_autotest/functions/fnc_testAIPosession.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Tests disabled AI value. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" private _value = getMissionConfigValue ["disabledAI", 0]; diff --git a/addons/mission_autotest/functions/fnc_testApollo.sqf b/addons/mission_autotest/functions/fnc_testApollo.sqf index 1f830f2d..a0d35412 100644 --- a/addons/mission_autotest/functions/fnc_testApollo.sqf +++ b/addons/mission_autotest/functions/fnc_testApollo.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Tests Apollo setting value. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" if !(["tac_apollo"] call ACEFUNC(common,isModLoaded)) exitWith { (_this controlsGroupCtrl CTRL_VALUE) ctrlSetText (localize LSTRING(NotLoaded)); diff --git a/addons/mission_autotest/functions/fnc_testAuthor.sqf b/addons/mission_autotest/functions/fnc_testAuthor.sqf index a5a7e3cd..c29780c4 100644 --- a/addons/mission_autotest/functions/fnc_testAuthor.sqf +++ b/addons/mission_autotest/functions/fnc_testAuthor.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: TMF Team, Jonpas * Tests author value. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" private _value = getMissionConfigValue ["author", ""]; diff --git a/addons/mission_autotest/functions/fnc_testDebugConsole.sqf b/addons/mission_autotest/functions/fnc_testDebugConsole.sqf index 3233c569..34d39a0a 100644 --- a/addons/mission_autotest/functions/fnc_testDebugConsole.sqf +++ b/addons/mission_autotest/functions/fnc_testDebugConsole.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Tests debug console availability. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" private _value = getMissionConfigValue ["enableDebugConsole", 0]; diff --git a/addons/mission_autotest/functions/fnc_testDescription.sqf b/addons/mission_autotest/functions/fnc_testDescription.sqf index 5c7f19f5..60313b17 100644 --- a/addons/mission_autotest/functions/fnc_testDescription.sqf +++ b/addons/mission_autotest/functions/fnc_testDescription.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: TMF Team, Jonpas * Tests mission description value. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" private _value = getMissionConfigValue ["onLoadMission", ""]; if (_value == "") then { diff --git a/addons/mission_autotest/functions/fnc_testGameType.sqf b/addons/mission_autotest/functions/fnc_testGameType.sqf index 09e409e7..946e8e7f 100644 --- a/addons/mission_autotest/functions/fnc_testGameType.sqf +++ b/addons/mission_autotest/functions/fnc_testGameType.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Tests mission game type value. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" private _value = getText (missionConfigFile >> "Header" >> "gameType"); if (_value == "") then { diff --git a/addons/mission_autotest/functions/fnc_testGroupSizes.sqf b/addons/mission_autotest/functions/fnc_testGroupSizes.sqf index 368fb29d..32748032 100644 --- a/addons/mission_autotest/functions/fnc_testGroupSizes.sqf +++ b/addons/mission_autotest/functions/fnc_testGroupSizes.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: TMF Team, Jonpas * Tests group sizes of sides (288 groups per side limit). @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" private _findings = []; { diff --git a/addons/mission_autotest/functions/fnc_testHCAmount.sqf b/addons/mission_autotest/functions/fnc_testHCAmount.sqf index 1ebe5a77..2178d810 100644 --- a/addons/mission_autotest/functions/fnc_testHCAmount.sqf +++ b/addons/mission_autotest/functions/fnc_testHCAmount.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Tests headless clients presence and their playability. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" private _hc = (all3DENEntities select 3) select {_x isKindOf "HeadlessClient_F"}; private _hcAmount = count _hc; diff --git a/addons/mission_autotest/functions/fnc_testInit.sqf b/addons/mission_autotest/functions/fnc_testInit.sqf index c2bfa310..efef2afc 100644 --- a/addons/mission_autotest/functions/fnc_testInit.sqf +++ b/addons/mission_autotest/functions/fnc_testInit.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: TMF Team, Jonpas * Tests init fields of objects. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" private _findings = []; { diff --git a/addons/mission_autotest/functions/fnc_testMaxPlayers.sqf b/addons/mission_autotest/functions/fnc_testMaxPlayers.sqf index c2a72e5f..2faac0b8 100644 --- a/addons/mission_autotest/functions/fnc_testMaxPlayers.sqf +++ b/addons/mission_autotest/functions/fnc_testMaxPlayers.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: TMF Team, Jonpas * Tests maximum players value. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" private _config = missionConfigFile >> "Header" >> "maxPlayers"; private _value = getNumber _config; // Returns 0 even if not set diff --git a/addons/mission_autotest/functions/fnc_testMinPlayers.sqf b/addons/mission_autotest/functions/fnc_testMinPlayers.sqf index a9a461a7..5807fc58 100644 --- a/addons/mission_autotest/functions/fnc_testMinPlayers.sqf +++ b/addons/mission_autotest/functions/fnc_testMinPlayers.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: TMF Team, Jonpas * Tests minimum players value. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" private _config = missionConfigFile >> "Header" >> "minPlayers"; private _value = getNumber _config; // Returns 0 even if not set diff --git a/addons/mission_autotest/functions/fnc_testName.sqf b/addons/mission_autotest/functions/fnc_testName.sqf index 0f1761c8..dcc89664 100644 --- a/addons/mission_autotest/functions/fnc_testName.sqf +++ b/addons/mission_autotest/functions/fnc_testName.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: TMF Team, Jonpas * Tests mission name value. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" private _value = getMissionConfigValue ["onLoadName", ""]; if (_value == "") then { diff --git a/addons/mission_autotest/functions/fnc_testRespawnButton.sqf b/addons/mission_autotest/functions/fnc_testRespawnButton.sqf index 5ce70550..d999c4ee 100644 --- a/addons/mission_autotest/functions/fnc_testRespawnButton.sqf +++ b/addons/mission_autotest/functions/fnc_testRespawnButton.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Tests respawn button value. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" private _value = getMissionConfigValue ["respawnButton", 1]; diff --git a/addons/mission_autotest/functions/fnc_testRespawnDelay.sqf b/addons/mission_autotest/functions/fnc_testRespawnDelay.sqf index bf332f1a..3d10be33 100644 --- a/addons/mission_autotest/functions/fnc_testRespawnDelay.sqf +++ b/addons/mission_autotest/functions/fnc_testRespawnDelay.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Tests respawn delay value. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" private _value = getMissionConfigValue ["respawnDelay", 0]; diff --git a/addons/mission_autotest/functions/fnc_testRespawnDialog.sqf b/addons/mission_autotest/functions/fnc_testRespawnDialog.sqf index de3f0089..3bf19a35 100644 --- a/addons/mission_autotest/functions/fnc_testRespawnDialog.sqf +++ b/addons/mission_autotest/functions/fnc_testRespawnDialog.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Tests respawn dialog value. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" private _value = getMissionConfigValue ["respawnDialog", 1]; diff --git a/addons/mission_autotest/functions/fnc_testRespawnMode.sqf b/addons/mission_autotest/functions/fnc_testRespawnMode.sqf index f411be68..cde97b35 100644 --- a/addons/mission_autotest/functions/fnc_testRespawnMode.sqf +++ b/addons/mission_autotest/functions/fnc_testRespawnMode.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Tests respawn mode value. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" private _value = getMissionConfigValue ["respawn", 0]; diff --git a/addons/mission_autotest/functions/fnc_testTargetDebug.sqf b/addons/mission_autotest/functions/fnc_testTargetDebug.sqf index bf4b8b54..9c84531e 100644 --- a/addons/mission_autotest/functions/fnc_testTargetDebug.sqf +++ b/addons/mission_autotest/functions/fnc_testTargetDebug.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Tests CBA's target debug availability. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" private _value = getMissionConfigValue ["enableTargetDebug", 0]; diff --git a/addons/radios/functions/fnc_addRadioTrackActions.sqf b/addons/radios/functions/fnc_addRadioTrackActions.sqf index e2144648..7872c2c4 100644 --- a/addons/radios/functions/fnc_addRadioTrackActions.sqf +++ b/addons/radios/functions/fnc_addRadioTrackActions.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Adds radio tracks actions. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_vehicle"]; diff --git a/addons/radios/functions/fnc_canPlayRadio.sqf b/addons/radios/functions/fnc_canPlayRadio.sqf index 363e2d62..01e1dbb6 100644 --- a/addons/radios/functions/fnc_canPlayRadio.sqf +++ b/addons/radios/functions/fnc_canPlayRadio.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Check if vehicle or static radio can played. @@ -14,7 +15,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_vehicle", "_unit"]; diff --git a/addons/radios/functions/fnc_canStopRadio.sqf b/addons/radios/functions/fnc_canStopRadio.sqf index f0688939..fcd869f2 100644 --- a/addons/radios/functions/fnc_canStopRadio.sqf +++ b/addons/radios/functions/fnc_canStopRadio.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Check if vehicle radio can be stopped. @@ -14,7 +15,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_vehicle", "_unit"]; diff --git a/addons/radios/functions/fnc_changeVolume.sqf b/addons/radios/functions/fnc_changeVolume.sqf index 8b9b779f..7eec646a 100644 --- a/addons/radios/functions/fnc_changeVolume.sqf +++ b/addons/radios/functions/fnc_changeVolume.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Sets current radio volume. @@ -14,7 +15,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_volume", "_vehicle"]; diff --git a/addons/radios/functions/fnc_getRadioTracks.sqf b/addons/radios/functions/fnc_getRadioTracks.sqf index 1638f166..e695db25 100644 --- a/addons/radios/functions/fnc_getRadioTracks.sqf +++ b/addons/radios/functions/fnc_getRadioTracks.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Gets radio tracks classnames from config. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" private _tracks = ("true" configClasses (configFile >> "CfgSounds")) apply {toLower (configName _x)}; _tracks = _tracks select {_x find QUOTE(ADDON) != -1 && {_x find "_quiet" == -1} && {_x find "_loud" == -1}}; diff --git a/addons/radios/functions/fnc_playRadio.sqf b/addons/radios/functions/fnc_playRadio.sqf index 202b8586..591a0cb3 100644 --- a/addons/radios/functions/fnc_playRadio.sqf +++ b/addons/radios/functions/fnc_playRadio.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: DaC, Jonpas * Attaches a radio to a vehicle and starts playing the selected track on it. @@ -14,7 +15,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_vehicle", "_track"]; diff --git a/addons/radios/functions/fnc_stopRadio.sqf b/addons/radios/functions/fnc_stopRadio.sqf index 2f16204f..80b6d174 100644 --- a/addons/radios/functions/fnc_stopRadio.sqf +++ b/addons/radios/functions/fnc_stopRadio.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: DaC, Jonpas * Stops playing music in the vehicle and removes the radio. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" private ["_radio"]; params ["_vehicle"]; diff --git a/addons/ratelmarker/functions/fnc_canUseMarkerMenu.sqf b/addons/ratelmarker/functions/fnc_canUseMarkerMenu.sqf index 2faddc2b..fbd53641 100644 --- a/addons/ratelmarker/functions/fnc_canUseMarkerMenu.sqf +++ b/addons/ratelmarker/functions/fnc_canUseMarkerMenu.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Checks if RATEL Marker menu can be used. @@ -14,7 +15,6 @@ * * Public: No */ -#include "script_component.hpp" if (!isNil {uiNamespace getVariable QGVAR(menuDisplay)}) exitWith {}; diff --git a/addons/ratelmarker/functions/fnc_createMarker.sqf b/addons/ratelmarker/functions/fnc_createMarker.sqf index 489cd035..a2507853 100644 --- a/addons/ratelmarker/functions/fnc_createMarker.sqf +++ b/addons/ratelmarker/functions/fnc_createMarker.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: DaC, Jonpas * Creates a marker at coordiantes and adds animation on map open. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_pos"]; diff --git a/addons/ratelmarker/functions/fnc_createMarkerMenu.sqf b/addons/ratelmarker/functions/fnc_createMarkerMenu.sqf index 08f36645..7f684883 100644 --- a/addons/ratelmarker/functions/fnc_createMarkerMenu.sqf +++ b/addons/ratelmarker/functions/fnc_createMarkerMenu.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Opens coordinate input display. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" // Has to be display to allow movement private _display = (findDisplay 46) createDisplay QGVAR(menu); diff --git a/addons/ratelmarker/functions/fnc_prepareMarker.sqf b/addons/ratelmarker/functions/fnc_prepareMarker.sqf index 94e05a5c..fa380e31 100644 --- a/addons/ratelmarker/functions/fnc_prepareMarker.sqf +++ b/addons/ratelmarker/functions/fnc_prepareMarker.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: DaC, Jonpas * Prepares a marker based on input and executes it on pilot and turrets. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" disableSerialization; diff --git a/addons/shootingrange/functions/fnc_addConfigCountdownTimes.sqf b/addons/shootingrange/functions/fnc_addConfigCountdownTimes.sqf index 3bc8d391..47f28f71 100644 --- a/addons/shootingrange/functions/fnc_addConfigCountdownTimes.sqf +++ b/addons/shootingrange/functions/fnc_addConfigCountdownTimes.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Adds shooting range countdown times configuration child interactions to a controller. @@ -17,7 +18,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_name", "_controller", "_controllers", "_countdownTimes", "_targets"]; diff --git a/addons/shootingrange/functions/fnc_addConfigDurations.sqf b/addons/shootingrange/functions/fnc_addConfigDurations.sqf index 80a94d0b..2dbdf595 100644 --- a/addons/shootingrange/functions/fnc_addConfigDurations.sqf +++ b/addons/shootingrange/functions/fnc_addConfigDurations.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Adds shooting range durations configuration child interactions to a controller. @@ -17,7 +18,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_name", "_controller", "_controllers", "_durations", "_targets"]; diff --git a/addons/shootingrange/functions/fnc_addConfigPauseDurations.sqf b/addons/shootingrange/functions/fnc_addConfigPauseDurations.sqf index 7a9de504..16adf4e7 100644 --- a/addons/shootingrange/functions/fnc_addConfigPauseDurations.sqf +++ b/addons/shootingrange/functions/fnc_addConfigPauseDurations.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Adds shooting range pause durations configuration child interactions to a controller. @@ -17,7 +18,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_name", "_controller", "_controllers", "_pauseDurations", "_targets"]; diff --git a/addons/shootingrange/functions/fnc_addConfigTargetAmounts.sqf b/addons/shootingrange/functions/fnc_addConfigTargetAmounts.sqf index a3a2e9a5..6ca6318e 100644 --- a/addons/shootingrange/functions/fnc_addConfigTargetAmounts.sqf +++ b/addons/shootingrange/functions/fnc_addConfigTargetAmounts.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Adds shooting range target amounts configuration child interactions to a controller. @@ -17,7 +18,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_name", "_controller", "_controllers", "_targetAmounts", "_targets"]; diff --git a/addons/shootingrange/functions/fnc_animateTarget.sqf b/addons/shootingrange/functions/fnc_animateTarget.sqf index 63ad4be0..9f5ee10d 100644 --- a/addons/shootingrange/functions/fnc_animateTarget.sqf +++ b/addons/shootingrange/functions/fnc_animateTarget.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Animates a target. @@ -14,7 +15,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_target", "_state"]; diff --git a/addons/shootingrange/functions/fnc_canActivateTrigger.sqf b/addons/shootingrange/functions/fnc_canActivateTrigger.sqf index ca92b6ff..2bacfc94 100644 --- a/addons/shootingrange/functions/fnc_canActivateTrigger.sqf +++ b/addons/shootingrange/functions/fnc_canActivateTrigger.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Checks if a trigger can be activated. @@ -14,7 +15,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_controller", "_target"]; diff --git a/addons/shootingrange/functions/fnc_checkConfig.sqf b/addons/shootingrange/functions/fnc_checkConfig.sqf index 0aa8303a..2f9ab8cc 100644 --- a/addons/shootingrange/functions/fnc_checkConfig.sqf +++ b/addons/shootingrange/functions/fnc_checkConfig.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Checks current shooting range configuration @@ -15,7 +16,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_controller", "_name", "_targets"]; diff --git a/addons/shootingrange/functions/fnc_configure.sqf b/addons/shootingrange/functions/fnc_configure.sqf index b26372e4..4f0d00ca 100644 --- a/addons/shootingrange/functions/fnc_configure.sqf +++ b/addons/shootingrange/functions/fnc_configure.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Configures shooting range on run-time, to modify (eg. randomize targets) range dynamically. Should be called from started event locally. @@ -19,7 +20,6 @@ * * Public: Yes */ -#include "script_component.hpp" params [ ["_controller", objNull, [objNull] ], diff --git a/addons/shootingrange/functions/fnc_create.sqf b/addons/shootingrange/functions/fnc_create.sqf index 74ce3991..2119f61c 100644 --- a/addons/shootingrange/functions/fnc_create.sqf +++ b/addons/shootingrange/functions/fnc_create.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Creates a shooting range. Local effect, must be called on each client machine. @@ -31,7 +32,6 @@ * * Public: Yes */ -#include "script_component.hpp" params [ ["_name", "", [""] ], diff --git a/addons/shootingrange/functions/fnc_getTargetAnimations.sqf b/addons/shootingrange/functions/fnc_getTargetAnimations.sqf index 12683729..399a9500 100644 --- a/addons/shootingrange/functions/fnc_getTargetAnimations.sqf +++ b/addons/shootingrange/functions/fnc_getTargetAnimations.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Returns applicable animations of a target. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_target"]; diff --git a/addons/shootingrange/functions/fnc_handleHitPart.sqf b/addons/shootingrange/functions/fnc_handleHitPart.sqf index 1c23bfb8..c6b4dadd 100644 --- a/addons/shootingrange/functions/fnc_handleHitPart.sqf +++ b/addons/shootingrange/functions/fnc_handleHitPart.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Handles hit part event handler. @@ -24,7 +25,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_target", "_shooter", "", "_impactPosition", "", "_impactSelections", "", "", "", "", "_directHit"]; diff --git a/addons/shootingrange/functions/fnc_isTargetDown.sqf b/addons/shootingrange/functions/fnc_isTargetDown.sqf index 77bbbd57..9bc7e09a 100644 --- a/addons/shootingrange/functions/fnc_isTargetDown.sqf +++ b/addons/shootingrange/functions/fnc_isTargetDown.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Checks if a target is in "down" animation phase. @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_target"]; diff --git a/addons/shootingrange/functions/fnc_moduleInit.sqf b/addons/shootingrange/functions/fnc_moduleInit.sqf index d4caa746..de16ad62 100644 --- a/addons/shootingrange/functions/fnc_moduleInit.sqf +++ b/addons/shootingrange/functions/fnc_moduleInit.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Initializes the Shooting Range module. @@ -12,7 +13,6 @@ * * Public: No */ -#include "script_component.hpp" // Exit on Headless Client if (!hasInterface && !isDedicated) exitWith {}; diff --git a/addons/shootingrange/functions/fnc_notifyVicinity.sqf b/addons/shootingrange/functions/fnc_notifyVicinity.sqf index 1a4aeaa7..e398bc69 100644 --- a/addons/shootingrange/functions/fnc_notifyVicinity.sqf +++ b/addons/shootingrange/functions/fnc_notifyVicinity.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Shows notifications to everyone in vicinity. @@ -16,7 +17,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_texts", "_size", ["_includeCaller", false], ["_vicinityRange", NOTIFY_DISTANCE, [0]] ]; diff --git a/addons/shootingrange/functions/fnc_playSoundSignal.sqf b/addons/shootingrange/functions/fnc_playSoundSignal.sqf index 359b2ca2..df4fa29c 100644 --- a/addons/shootingrange/functions/fnc_playSoundSignal.sqf +++ b/addons/shootingrange/functions/fnc_playSoundSignal.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Plays sound signal on all controllers and extra sound sources. @@ -15,7 +16,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_controller", "_sound", ["_range", NOTIFY_DISTANCE]]; diff --git a/addons/shootingrange/functions/fnc_popupPFH.sqf b/addons/shootingrange/functions/fnc_popupPFH.sqf index d631bcfb..b0af7599 100644 --- a/addons/shootingrange/functions/fnc_popupPFH.sqf +++ b/addons/shootingrange/functions/fnc_popupPFH.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Handles target pop-ups. @@ -25,7 +26,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_args", "_idPFH"]; _args params ["_timeStart", "_duration", "_pauseDuration", "_targetAmount", "_targets", "_targetsInvalid", "_controller", "_controllers", "_name", "_mode", "_triggers"]; diff --git a/addons/shootingrange/functions/fnc_popupPFHexit.sqf b/addons/shootingrange/functions/fnc_popupPFHexit.sqf index 0e200acb..b24924d6 100644 --- a/addons/shootingrange/functions/fnc_popupPFHexit.sqf +++ b/addons/shootingrange/functions/fnc_popupPFHexit.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Handles target pop-ups. @@ -24,7 +25,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_idPFH", "_controller", "_controllers", "_name", "_targets", "_targetsInvalid", "_mode", "_success", ["_score", 0], ["_maxScore", 0], ["_timeElapsed", 0], ["_triggers", []] ]; diff --git a/addons/shootingrange/functions/fnc_setConfigCountdownTime.sqf b/addons/shootingrange/functions/fnc_setConfigCountdownTime.sqf index 5bb0297d..981996d9 100644 --- a/addons/shootingrange/functions/fnc_setConfigCountdownTime.sqf +++ b/addons/shootingrange/functions/fnc_setConfigCountdownTime.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Sets shooting course pause duration. @@ -16,7 +17,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_name", "_controllers", "_countdownTime", "_targets"]; diff --git a/addons/shootingrange/functions/fnc_setConfigDuration.sqf b/addons/shootingrange/functions/fnc_setConfigDuration.sqf index aa1b6bb3..55fbf931 100644 --- a/addons/shootingrange/functions/fnc_setConfigDuration.sqf +++ b/addons/shootingrange/functions/fnc_setConfigDuration.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Sets shooting course duration. @@ -16,7 +17,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_name", "_controllers", "_duration", "_targets"]; diff --git a/addons/shootingrange/functions/fnc_setConfigMode.sqf b/addons/shootingrange/functions/fnc_setConfigMode.sqf index 0f29da2d..8cfac2ea 100644 --- a/addons/shootingrange/functions/fnc_setConfigMode.sqf +++ b/addons/shootingrange/functions/fnc_setConfigMode.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Sets shooting course target change event. @@ -17,7 +18,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_name", "_controller", "_controllers", "_mode", "_targets"]; diff --git a/addons/shootingrange/functions/fnc_setConfigPauseDuration.sqf b/addons/shootingrange/functions/fnc_setConfigPauseDuration.sqf index bfe21ef4..cf76a7fa 100644 --- a/addons/shootingrange/functions/fnc_setConfigPauseDuration.sqf +++ b/addons/shootingrange/functions/fnc_setConfigPauseDuration.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Sets shooting course pause duration. @@ -16,7 +17,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_name", "_controllers", "_pauseDuration", "_targets"]; diff --git a/addons/shootingrange/functions/fnc_setConfigTargetAmount.sqf b/addons/shootingrange/functions/fnc_setConfigTargetAmount.sqf index 82f76de1..828dd3d3 100644 --- a/addons/shootingrange/functions/fnc_setConfigTargetAmount.sqf +++ b/addons/shootingrange/functions/fnc_setConfigTargetAmount.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Sets shooting course duration. @@ -16,7 +17,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_name", "_controllers", "_targetAmount", "_targets"]; diff --git a/addons/shootingrange/functions/fnc_setTargetGroups.sqf b/addons/shootingrange/functions/fnc_setTargetGroups.sqf index 752816de..786e72ad 100644 --- a/addons/shootingrange/functions/fnc_setTargetGroups.sqf +++ b/addons/shootingrange/functions/fnc_setTargetGroups.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Checks current shooting range configuration @@ -15,7 +16,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_targets", "_targetsInvalid", "_markers"]; diff --git a/addons/shootingrange/functions/fnc_start.sqf b/addons/shootingrange/functions/fnc_start.sqf index da75118f..1616a2e2 100644 --- a/addons/shootingrange/functions/fnc_start.sqf +++ b/addons/shootingrange/functions/fnc_start.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Starts shooting range. @@ -17,7 +18,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_controller", "_controllers", "_name", "_targets", "_targetsInvalid"]; diff --git a/addons/shootingrange/functions/fnc_stop.sqf b/addons/shootingrange/functions/fnc_stop.sqf index 4591ab5e..67565ffc 100644 --- a/addons/shootingrange/functions/fnc_stop.sqf +++ b/addons/shootingrange/functions/fnc_stop.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Stops shooting range. @@ -21,7 +22,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_controller", "_controllers", "_name", "_targets", "_targetsInvalid", ["_success", false], ["_score", 0], ["_maxScore", 0], ["_timeElapsed", 0]]; diff --git a/addons/shootingrange/functions/fnc_textsIntoLocalizedString.sqf b/addons/shootingrange/functions/fnc_textsIntoLocalizedString.sqf index dff47d9c..7e87be6b 100644 --- a/addons/shootingrange/functions/fnc_textsIntoLocalizedString.sqf +++ b/addons/shootingrange/functions/fnc_textsIntoLocalizedString.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Converts array of strings into one partially localized string (localized where string starts with "STR_"). @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_texts"]; TRACE_1("Texts",_texts); diff --git a/addons/shootingrange/functions/fnc_triggerPopup.sqf b/addons/shootingrange/functions/fnc_triggerPopup.sqf index bc6c9130..79694525 100644 --- a/addons/shootingrange/functions/fnc_triggerPopup.sqf +++ b/addons/shootingrange/functions/fnc_triggerPopup.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Pops targets on trigger. @@ -14,7 +15,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_target", "_state"]; diff --git a/addons/zeus/functions/fnc_moduleAddObjectToChronosLocal.sqf b/addons/zeus/functions/fnc_moduleAddObjectToChronosLocal.sqf index 866fd0a6..a3e2e51a 100644 --- a/addons/zeus/functions/fnc_moduleAddObjectToChronosLocal.sqf +++ b/addons/zeus/functions/fnc_moduleAddObjectToChronosLocal.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Adds an object to Chronos persistence (executed locally on client who placed the module). @@ -12,7 +13,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_logic", "", "_activated"]; diff --git a/addons/zeus/functions/fnc_moduleAddObjectToChronosServer.sqf b/addons/zeus/functions/fnc_moduleAddObjectToChronosServer.sqf index 702e4b00..514f7310 100644 --- a/addons/zeus/functions/fnc_moduleAddObjectToChronosServer.sqf +++ b/addons/zeus/functions/fnc_moduleAddObjectToChronosServer.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: Jonpas * Adds an object to Chronos persistence (executed on server through server event). @@ -13,7 +14,6 @@ * * Public: No */ -#include "script_component.hpp" params ["_object"]; diff --git a/extras/blank/functions/fnc_empty.sqf b/extras/blank/functions/fnc_empty.sqf index af5dd2b3..214614fb 100644 --- a/extras/blank/functions/fnc_empty.sqf +++ b/extras/blank/functions/fnc_empty.sqf @@ -1,3 +1,4 @@ +#include "script_component.hpp" /* * Author: [Name of Author(s)] * [Description] @@ -14,6 +15,5 @@ * * Public: [Yes/No] */ -#include "script_component.hpp" diag_log text format["This is here as an example!!!"];