COMPILE_FILE macros

This commit is contained in:
PabstMirror 2015-01-12 05:14:15 -06:00
parent db48e0c83d
commit a9c20dcaf6
145 changed files with 158 additions and 158 deletions

View File

@ -1,14 +1,14 @@
class Extended_PreInit_EventHandlers { class Extended_PreInit_EventHandlers {
class ADDON { class ADDON {
init = QUOTE(call compile preprocessFileLineNumbers PATHTOF(XEH_preInit.sqf) ); init = QUOTE(call COMPILE_FILE(XEH_preInit) );
serverInit = QUOTE(call compile preprocessFileLineNumbers PATHTOF(scripts\readParameters.sqf) ); serverInit = QUOTE(call COMPILE_FILE(scripts\readParameters) );
disableModuload = true; disableModuload = true;
}; };
}; };
class Extended_PostInit_EventHandlers { class Extended_PostInit_EventHandlers {
class ADDON { class ADDON {
init = QUOTE(call compile preprocessFileLineNumbers PATHTOF(XEH_postInit.sqf) ); init = QUOTE(call COMPILE_FILE(XEH_postInit) );
disableModuload = true; disableModuload = true;
}; };
}; };

View File

@ -17,20 +17,20 @@ if (_currentVersion != _previousVersion) then {
profileNamespace setVariable ["ACE_VersionNumberString", _currentVersion]; profileNamespace setVariable ["ACE_VersionNumberString", _currentVersion];
}; };
0 spawn compile preprocessFileLineNumbers PATHTOF(scripts\Version\checkVersionNumber.sqf); 0 spawn COMPILE_FILE2(scripts\Version\checkVersionNumber);
// everything that only player controlled machines need, goes below this // everything that only player controlled machines need, goes below this
if (!hasInterface) exitWith {}; if (!hasInterface) exitWith {};
call compile preprocessFileLineNumbers PATHTOF(scripts\assignedItemFix.sqf); call COMPILE_FILE2(scripts\assignedItemFix.sqf);
GVAR(keyInput) = compile preprocessFileLineNumbers PATHTOF(scripts\keyInput.sqf); GVAR(keyInput) = COMPILE_FILE2(scripts\keyInput.sqf);
GVAR(keyRelease) = compile preprocessFileLineNumbers PATHTOF(scripts\keyRelease.sqf); GVAR(keyRelease) = COMPILE_FILE2(scripts\keyRelease.sqf);
GVAR(editKey) = compile preprocessFileLineNumbers PATHTOF(scripts\editKey.sqf); GVAR(editKey) = COMPILE_FILE2(scripts\editKey.sqf);
GVAR(openMenu) = compile preprocessFileLineNumbers PATHTOF(scripts\openMenu.sqf); GVAR(openMenu) = COMPILE_FILE2(scripts\openMenu.sqf);
GVAR(closeMenu) = compile preprocessFileLineNumbers PATHTOF(scripts\closeMenu.sqf); GVAR(closeMenu) = COMPILE_FILE2(scripts\closeMenu.sqf);
GVAR(nextKeys) = compile preprocessFileLineNumbers PATHTOF(scripts\nextKeys.sqf); GVAR(nextKeys) = COMPILE_FILE2(scripts\nextKeys.sqf);
GVAR(toggleState) = compile preprocessFileLineNumbers PATHTOF(scripts\toggleState.sqf); GVAR(toggleState) = COMPILE_FILE2(scripts\toggleState.sqf);
[false] call FUNC(setKeyDefault); [false] call FUNC(setKeyDefault);
@ -41,9 +41,9 @@ for "_index" from 0 to 300 do {
GVAR(keyTimes) set [_index, -1]; GVAR(keyTimes) set [_index, -1];
}; };
call compile preprocessFileLineNumbers PATHTOF(scripts\KeyInput\initCanInteractFunction.sqf); call COMPILE_FILE2(scripts\KeyInput\initCanInteractFunction.sqf);
call compile preprocessFileLineNumbers PATHTOF(scripts\KeyInput\initKeys.sqf); call COMPILE_FILE2(scripts\KeyInput\initKeys.sqf);
call compile preprocessFileLineNumbers PATHTOF(scripts\KeyInput\initScrollWheel.sqf); call COMPILE_FILE2(scripts\KeyInput\initScrollWheel.sqf);
0 spawn { 0 spawn {
while {true} do { while {true} do {

View File

@ -12,7 +12,7 @@
* Return value: * Return value:
* ID of the action (used to remove it later). * ID of the action (used to remove it later).
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_unit", "_action", "_condition", "_statement", "_name", "_actionsVar", "_actionID", "_actions", "_id", "_actionIDs"]; private ["_unit", "_action", "_condition", "_statement", "_name", "_actionsVar", "_actionID", "_actions", "_id", "_actionIDs"];

View File

@ -16,7 +16,7 @@
* Return value: * Return value:
* ID of the action (used to remove it later). * ID of the action (used to remove it later).
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_unit", "_displayName", "_action", "_condition", "_statement", "_condition2", "_statement2", "_priority", "_name", "_actionsVar", "_id", "_actionIDs", "_actions", "_nameVar", "_addAction", "_actionID"]; private ["_unit", "_displayName", "_action", "_condition", "_statement", "_condition2", "_statement2", "_priority", "_name", "_actionsVar", "_id", "_actionIDs", "_actions", "_nameVar", "_addAction", "_actionID"];

View File

@ -10,7 +10,7 @@
* Return value: * Return value:
* ID of the event script (used to remove it later). * ID of the event script (used to remove it later).
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_statement", "_actionsVar", "_id", "_actionIDs", "_actions"]; private ["_statement", "_actionsVar", "_id", "_actionIDs", "_actions"];

View File

@ -11,7 +11,7 @@
* Return value: * Return value:
* ID of the event script (used to remove it later). * ID of the event script (used to remove it later).
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_object", "_type", "_statement", "_name", "_actionsVar", "_id", "_actionIDs", "_actions"]; private ["_object", "_type", "_statement", "_name", "_actionsVar", "_id", "_actionIDs", "_actions"];

View File

@ -10,7 +10,7 @@
* Return value: * Return value:
* ID of the event script (used to remove it later). * ID of the event script (used to remove it later).
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_type", "_statement", "_actionsVar", "_id", "_actionIDs", "_actions"]; private ["_type", "_statement", "_actionsVar", "_id", "_actionIDs", "_actions"];

View File

@ -9,7 +9,7 @@
* Return value: * Return value:
* ID of the event script (used to remove it later). * ID of the event script (used to remove it later).
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_statement", "_actionsVar", "_id", "_actionIDs", "_actions"]; private ["_statement", "_actionsVar", "_id", "_actionIDs", "_actions"];

View File

@ -9,7 +9,7 @@
* Return value: * Return value:
* ID of the event script (used to remove it later). * ID of the event script (used to remove it later).
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_statement", "_actionsVar", "_id", "_actionIDs", "_actions"]; private ["_statement", "_actionsVar", "_id", "_actionIDs", "_actions"];

View File

@ -9,7 +9,7 @@
* Return value: * Return value:
* ID of the event script (used to remove it later). * ID of the event script (used to remove it later).
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_statement", "_actionsVar", "_id", "_actionIDs", "_actions"]; private ["_statement", "_actionsVar", "_id", "_actionIDs", "_actions"];

View File

@ -1,5 +1,5 @@
// by commy2 // by commy2
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private "_dlg"; private "_dlg";

View File

@ -1,5 +1,5 @@
// by commy2 // by commy2
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private "_name"; private "_name";

View File

@ -9,6 +9,6 @@
* Return value: * Return value:
* Ambient brightness (Number) * Ambient brightness (Number)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
sunOrMoon * sunOrMoon + moonIntensity/5 min 1 sunOrMoon * sunOrMoon + moonIntensity/5 min 1

View File

@ -15,7 +15,7 @@ Returns:
Example: Example:
[ACE_Player] call FUNC(applyForceWalkStatus) [ACE_Player] call FUNC(applyForceWalkStatus)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_unit", "_forceWalkNumber"]; private ["_unit", "_forceWalkNumber"];

View File

@ -10,7 +10,7 @@
* Return value: * Return value:
* Booleans (Array) * Booleans (Array)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_number", "_minLength", "_array", "_index", "_rest"]; private ["_number", "_minLength", "_array", "_index", "_rest"];

View File

@ -11,7 +11,7 @@
* Return value: * Return value:
* None. * None.
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_object", "_type", "_argument", "_name", "_actions"]; private ["_object", "_type", "_argument", "_name", "_actions"];

View File

@ -11,6 +11,6 @@
* Return value: * Return value:
* None. * None.
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
[_this, QUOTE(FUNC(callCustomEventHandlers)), 2] call FUNC(execRemoteFnc); [_this, QUOTE(FUNC(callCustomEventHandlers)), 2] call FUNC(execRemoteFnc);

View File

@ -14,7 +14,7 @@
* Return Value: * Return Value:
* Nothing * Nothing
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
#define CANGETINDRIVER (isNull (driver _vehicle) || {!alive driver _vehicle}) && {!lockedDriver _vehicle} && {getNumber (_config >> "isUav") != 1} #define CANGETINDRIVER (isNull (driver _vehicle) || {!alive driver _vehicle}) && {!lockedDriver _vehicle} && {getNumber (_config >> "isUav") != 1}
#define CANGETINTURRETINDEX (isNull (_vehicle turretUnit _turret) || {!alive (_vehicle turretUnit _turret)}) && {!(_vehicle lockedTurret _turret)} && {getNumber (_config >> "isUav") != 1} #define CANGETINTURRETINDEX (isNull (_vehicle turretUnit _turret) || {!alive (_vehicle turretUnit _turret)}) && {!(_vehicle lockedTurret _turret)} && {getNumber (_config >> "isUav") != 1}

View File

@ -1,5 +1,5 @@
// by commy2 // by commy2
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_unit", "_target", "_owner"]; private ["_unit", "_target", "_owner"];

View File

@ -1,5 +1,5 @@
// by commy2 // by commy2
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
// returns true if the unit is on foot or in a ffv position // returns true if the unit is on foot or in a ffv position

View File

@ -12,7 +12,7 @@
* Return value: * Return value:
* None. * None.
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_projectile", "_adjustDir", "_adjustUp", "_adjustSpeed", "_vdir", "_dir", "_up", "_l", "_r", "_vup", "_vel"]; private ["_projectile", "_adjustDir", "_adjustUp", "_adjustSpeed", "_vdir", "_dir", "_up", "_l", "_r", "_vup", "_vel"];

View File

@ -14,7 +14,7 @@
* Return value: * Return value:
* None. * None.
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_mode", "_checkAll", "_whitelist", "_logic"]; private ["_mode", "_checkAll", "_whitelist", "_logic"];

View File

@ -1,5 +1,5 @@
// by commy2 // by commy2
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_unit", "_target", "_lockTarget", "_owner"]; private ["_unit", "_target", "_lockTarget", "_owner"];

View File

@ -10,7 +10,7 @@
* Return Value: * Return Value:
* None * None
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
_this spawn { _this spawn {
_target = _this select 0; _target = _this select 0;

View File

@ -1,4 +1,4 @@
// by commy2 // by commy2
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
["", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] select ([2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 30, 48, 46, 32, 18, 33, 34, 35, 23, 36, 37, 38, 50, 49, 24, 25, 16, 19, 31, 20, 22, 47, 17, 45, 44, 21] find (_this select 0)) + 1 ["", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] select ([2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 30, 48, 46, 32, 18, 33, 34, 35, 23, 36, 37, 38, 50, 49, 24, 25, 16, 19, 31, 20, 22, 47, 17, 45, 44, 21] find (_this select 0)) + 1

View File

@ -9,7 +9,7 @@
* Return value: * Return value:
* Code (String) * Code (String)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private "_function"; private "_function";

View File

@ -12,7 +12,7 @@
* Return value: * Return value:
* Key code (Number) * Key code (Number)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
#define KEY_MODIFIERS [42, 54, 29, 157, 56, 184] #define KEY_MODIFIERS [42, 54, 29, 157, 56, 184]

View File

@ -9,7 +9,7 @@
* Return value: * Return value:
* The current channel. Can be "group", "side", "global", "command", "vehicle" or "direct" (String) * The current channel. Can be "group", "side", "global", "command", "vehicle" or "direct" (String)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
#define CHANNELS ["group", "side", "global", "command", "vehicle", "direct"] #define CHANNELS ["group", "side", "global", "command", "vehicle", "direct"]
#define CHANNELS_LOCALIZED [localize "str_channel_group", localize "str_channel_side", localize "str_channel_global", localize "str_channel_command", localize "str_channel_vehicle", localize "str_channel_direct"] #define CHANNELS_LOCALIZED [localize "str_channel_group", localize "str_channel_side", localize "str_channel_global", localize "str_channel_command", localize "str_channel_vehicle", localize "str_channel_direct"]

View File

@ -9,7 +9,7 @@
* Return value: * Return value:
* Nothing * Nothing
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_state", "_dlg"]; private ["_state", "_dlg"];

View File

@ -12,7 +12,7 @@
* Return value: * Return value:
* Nothing * Nothing
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
#define DEFAULT_PLAY_SOUND false #define DEFAULT_PLAY_SOUND false
#define DEFAULT_DELAY 2 #define DEFAULT_DELAY 2

View File

@ -10,7 +10,7 @@
* Return value: * Return value:
* Nothing * Nothing
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_text", "_image"]; private ["_text", "_image"];

View File

@ -10,7 +10,7 @@
* Return value: * Return value:
* Nothing * Nothing
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_text", "_size", "_isShown", "_ctrlHint"]; private ["_text", "_size", "_isShown", "_ctrlHint"];

View File

@ -14,7 +14,7 @@
* Return value: * Return value:
* Nothing * Nothing
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_unit", "_animation", "_priority", "_force"]; private ["_unit", "_animation", "_priority", "_force"];

View File

@ -10,7 +10,7 @@
* None. * None.
* *
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
// ACRE // ACRE
if (isClass (configFile >> "CfgPatches" >> "acre_main")) then { if (isClass (configFile >> "CfgPatches" >> "acre_main")) then {

View File

@ -12,7 +12,7 @@
* Return value: * Return value:
* Nothing. * Nothing.
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_arguments", "_function", "_unit", "_name"]; private ["_arguments", "_function", "_unit", "_name"];

View File

@ -15,7 +15,7 @@
* Return value: * Return value:
* Nothing * Nothing
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_arguments", "_function", "_unit", "_id"]; private ["_arguments", "_function", "_unit", "_id"];

View File

@ -1,5 +1,5 @@
// by commy2 // by commy2
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private "_target"; private "_target";

View File

@ -4,7 +4,7 @@
(configFile >> "CfgAmmo") call FUNC(exportConfig); (configFile >> "CfgAmmo") call FUNC(exportConfig);
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private "_fnc_logEntries"; private "_fnc_logEntries";

View File

@ -13,7 +13,7 @@
* Usage: * Usage:
* [[0,1,2,3,4], {_this > 2}] call FUNC(filter) ==> [3,4] * [[0,1,2,3,4], {_this > 2}] call FUNC(filter) ==> [3,4]
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_array", "_code", "_newArray", "_index"]; private ["_array", "_code", "_newArray", "_index"];

View File

@ -1,5 +1,5 @@
// by commy2 // by commy2
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_crate", "_weapons", "_items"]; private ["_crate", "_weapons", "_items"];

View File

@ -1,5 +1,5 @@
// by commy2 // by commy2
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private "_unit"; private "_unit";

View File

@ -9,7 +9,7 @@
* Return value: * Return value:
* Reasons, why the unit is a captive. An empty array is returned if the unit is not a captive (Array of Strings) * Reasons, why the unit is a captive. An empty array is returned if the unit is not a captive (Array of Strings)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_unit", "_captivityReasons", "_unitCaptivityStatus", "_unitCaptivityReasons"]; private ["_unit", "_captivityReasons", "_unitCaptivityStatus", "_unitCaptivityReasons"];

View File

@ -1,5 +1,5 @@
// by commy2 // by commy2
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_name", "_cfgClass", "_classes"]; private ["_name", "_cfgClass", "_classes"];

View File

@ -9,7 +9,7 @@
* Return value: * Return value:
* Commander config (Config) * Commander config (Config)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_vehicle", "_config", "_turret"]; private ["_vehicle", "_config", "_turret"];

View File

@ -9,7 +9,7 @@
* Return value: * Return value:
* Gunner config (Config) * Gunner config (Config)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_vehicle", "_config", "_turret"]; private ["_vehicle", "_config", "_turret"];

View File

@ -1,5 +1,5 @@
// by commy2 // by commy2
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_unit", "_anim", "_stance"]; private ["_unit", "_anim", "_stance"];

View File

@ -1,5 +1,5 @@
// by commy2 // by commy2
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_configName", "_index"]; private ["_configName", "_index"];

View File

@ -9,7 +9,7 @@
* Return value: * Return value:
* Turret indexes of the door gunner. Empty array means no gunner position. (Array) * Turret indexes of the door gunner. Empty array means no gunner position. (Array)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_vehicleType", "_turrets", "_doorTurrets", "_config"]; private ["_vehicleType", "_turrets", "_doorTurrets", "_config"];

View File

@ -15,7 +15,7 @@ Returns:
Example: Example:
[ACE_Player] call FUNC(getForceWalkStatus) [ACE_Player] call FUNC(getForceWalkStatus)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_unit", "_forceWalkReasons", "_unitForceWalkNumber", "_unitForceWalkStatus", "_unitForceWalkReasons"]; private ["_unit", "_forceWalkReasons", "_unitForceWalkNumber", "_unitForceWalkStatus", "_unitForceWalkReasons"];

View File

@ -9,7 +9,7 @@
* Return Value: * Return Value:
* The hitpoints (Array) * The hitpoints (Array)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_vehicle", "_config", "_hitpoints"]; private ["_vehicle", "_config", "_hitpoints"];

View File

@ -9,7 +9,7 @@
* Return Value: * Return Value:
* The hitpoints with selections. Format: [hitpoints, selections]. They correspond by index. (Array) * The hitpoints with selections. Format: [hitpoints, selections]. They correspond by index. (Array)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_vehicle", "_config", "_hitpoints", "_selections"]; private ["_vehicle", "_config", "_hitpoints", "_selections"];

View File

@ -13,7 +13,7 @@
* Return Value: * Return Value:
* Nothing * Nothing
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
#define CANGETINDRIVER (isNull (driver _vehicle) || {!alive driver _vehicle}) && {!lockedDriver _vehicle} && {getNumber (_config >> "isUav") != 1} #define CANGETINDRIVER (isNull (driver _vehicle) || {!alive driver _vehicle}) && {!lockedDriver _vehicle} && {getNumber (_config >> "isUav") != 1}
#define CANGETINTURRETINDEX (isNull (_vehicle turretUnit _turret) || {!alive (_vehicle turretUnit _turret)}) && {!(_vehicle lockedTurret _turret)} && {getNumber (_config >> "isUav") != 1} #define CANGETINTURRETINDEX (isNull (_vehicle turretUnit _turret) || {!alive (_vehicle turretUnit _turret)}) && {!(_vehicle lockedTurret _turret)} && {getNumber (_config >> "isUav") != 1}

View File

@ -9,7 +9,7 @@
* Return Value: * Return Value:
* Marker Type (string) * Marker Type (string)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
_group = _this select 0; _group = _this select 0;
_leader = leader _group; _leader = leader _group;

View File

@ -10,7 +10,7 @@
* Return value: * Return value:
* The name. * The name.
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_unit", "_showEffective", "_name"]; private ["_unit", "_showEffective", "_name"];

View File

@ -9,7 +9,7 @@
* Return value: * Return value:
* Value of the entry. Note: If the entry does not exist, it might return 0 or an entry with the same name of another class! (Number) * Value of the entry. Note: If the entry does not exist, it might return 0 or an entry with the same name of another class! (Number)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private "_number"; private "_number";

View File

@ -9,6 +9,6 @@
* Return Value: * Return Value:
* [pitch, bank, yaw] * [pitch, bank, yaw]
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
((_this select 0) call BIS_fnc_getPitchBank) + [getDir (_this select 0)] ((_this select 0) call BIS_fnc_getPitchBank) + [getDir (_this select 0)]

View File

@ -9,7 +9,7 @@
* Return value: * Return value:
* Value of the entry. Note: If the entry does not exist, it might return an empty string or an entry with the same name of another class! (String) * Value of the entry. Note: If the entry does not exist, it might return an empty string or an entry with the same name of another class! (String)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_path", "_mission", "_a", "_class", "_index", "_array", "_b", "_entry"]; private ["_path", "_mission", "_a", "_class", "_index", "_array", "_b", "_entry"];

View File

@ -10,7 +10,7 @@
* 0: Azimuth (Number) * 0: Azimuth (Number)
* 1: Inclination or 'slope' (Number) * 1: Inclination or 'slope' (Number)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_position", "_direction", "_azimuth", "_inclination"]; private ["_position", "_direction", "_azimuth", "_inclination"];

View File

@ -11,7 +11,7 @@
* Return value: * Return value:
* Measured distance in meters. Can return maximal or minimal distance (Number) * Measured distance in meters. Can return maximal or minimal distance (Number)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_interval", "_maxDistance", "_minDistance", "_position", "_laser", "_line", "_distance", "_iteration"]; private ["_interval", "_maxDistance", "_minDistance", "_position", "_laser", "_line", "_distance", "_iteration"];

View File

@ -9,7 +9,7 @@
* Return value: * Return value:
* Nearest object directly in line of sight, if none objNull (Object) * Nearest object directly in line of sight, if none objNull (Object)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_maxDistance", "_position", "_laser", "_intersects"]; private ["_maxDistance", "_position", "_laser", "_intersects"];

View File

@ -9,7 +9,7 @@
* Return value: * Return value:
* Turret index of the vehicles commander. Empty array means no observer position. (Array) * Turret index of the vehicles commander. Empty array means no observer position. (Array)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_vehicle", "_turrets", "_turret", "_config"]; private ["_vehicle", "_turrets", "_turret", "_config"];

View File

@ -10,7 +10,7 @@
* Return value: * Return value:
* Turret config (Config) * Turret config (Config)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_config", "_turretIndex", "_index", "_offset", "_config2", "_foundClasses"]; private ["_config", "_turretIndex", "_index", "_offset", "_config2", "_foundClasses"];

View File

@ -9,7 +9,7 @@
* Return value: * Return value:
* Turret index of the vehicles gunner. Empty array means no copilot position. (Array) * Turret index of the vehicles gunner. Empty array means no copilot position. (Array)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_vehicle", "_turrets", "_turret", "_config"]; private ["_vehicle", "_turrets", "_turret", "_config"];

View File

@ -9,7 +9,7 @@
* Return value: * Return value:
* Turret index of the vehicles gunner. Empty array means no gunner position. (Array) * Turret index of the vehicles gunner. Empty array means no gunner position. (Array)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_vehicle", "_turrets", "_turret", "_config"]; private ["_vehicle", "_turrets", "_turret", "_config"];

View File

@ -9,7 +9,7 @@
* Return value: * Return value:
* Turret index array or config path. E.g: [0] for gunner or [0,0] for commander. Returns empty array if unit is not in a turret. (Array) * Turret index array or config path. E.g: [0] for gunner or [0,0] for commander. Returns empty array if unit is not in a turret. (Array)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_unit", "_vehicle", "_turrets", "_units", "_index"]; private ["_unit", "_vehicle", "_turrets", "_units", "_index"];

View File

@ -9,7 +9,7 @@
* Return value: * Return value:
* All turret index arrays of the vehicle. E.g: [[0], [0,0]] (Array) * All turret index arrays of the vehicle. E.g: [[0], [0,0]] (Array)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_type", "_config", "_turrets", "_fnc_addTurret"]; private ["_type", "_config", "_turrets", "_fnc_addTurret"];

View File

@ -9,7 +9,7 @@
* Return value: * Return value:
* Turret index of the vehicles gunner. Empty array means no ffv turrets. (Array) * Turret index of the vehicles gunner. Empty array means no ffv turrets. (Array)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_vehicle", "_turrets", "_turret", "_config"]; private ["_vehicle", "_turrets", "_turret", "_config"];

View File

@ -9,7 +9,7 @@
* Return value: * Return value:
* Turret index of the vehicles gunner. Empty array means no other turrets. (Array) * Turret index of the vehicles gunner. Empty array means no other turrets. (Array)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_vehicle", "_turrets", "_turret", "_config"]; private ["_vehicle", "_turrets", "_turret", "_config"];

View File

@ -18,7 +18,7 @@ Returns:
Example: Example:
[ACE_Player] call FUNC(getUavControlPosition) [ACE_Player] call FUNC(getUavControlPosition)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_unit", "_uav", "_positionArray", "_playerIndex"]; private ["_unit", "_uav", "_positionArray", "_playerIndex"];

View File

@ -9,7 +9,7 @@
* Return value: * Return value:
* Vehicle cargo positions. (Array) * Vehicle cargo positions. (Array)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_vehicle", "_config", "_cargo", "_codrivers"]; private ["_vehicle", "_config", "_cargo", "_codrivers"];

View File

@ -9,7 +9,7 @@
* Return value: * Return value:
* Vehicle codriver positions. (Array) * Vehicle codriver positions. (Array)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_vehicle", "_config", "_cargo", "_codrivers"]; private ["_vehicle", "_config", "_cargo", "_codrivers"];

View File

@ -10,7 +10,7 @@
* Return value: * Return value:
* Crew (Array) * Crew (Array)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_vehicle", "_types", "_crew"]; private ["_vehicle", "_types", "_crew"];

View File

@ -10,7 +10,7 @@
* 0: Azimuth (Number) * 0: Azimuth (Number)
* 1: Inclination or 'slope' (Number) * 1: Inclination or 'slope' (Number)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_weapon", "_direction", "_azimuth", "_inclination"]; private ["_weapon", "_direction", "_azimuth", "_inclination"];

View File

@ -9,7 +9,7 @@
* Return value: * Return value:
* Slot index of the given class name, 1: primary, 2: secondary, 3: handgun, else: -1 (Number) * Slot index of the given class name, 1: primary, 2: secondary, 3: handgun, else: -1 (Number)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_weapon", "_type", "_index"]; private ["_weapon", "_type", "_index"];

View File

@ -9,7 +9,7 @@
* Return value: * Return value:
* Wind direction. (String) * Wind direction. (String)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
switch (round (windDir / 360 * 16)) do { switch (round (windDir / 360 * 16)) do {
case 1 : {localize QUOTE(DOUBLES(STR,GVAR(SSW)))}; case 1 : {localize QUOTE(DOUBLES(STR,GVAR(SSW)))};

View File

@ -9,7 +9,7 @@
* Return value: * Return value:
* None. * None.
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private "_unit"; private "_unit";

View File

@ -11,7 +11,7 @@
* Return Value: * Return Value:
* Hadamard Product * Hadamard Product
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
_vector1 = _this select 0; _vector1 = _this select 0;
_vector2 = _this select 1; _vector2 = _this select 1;

View File

@ -1,4 +1,4 @@
// by commy2 // by commy2
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> animationState (_this select 0) >> "looped") == 0 getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> animationState (_this select 0) >> "looped") == 0

View File

@ -1,5 +1,5 @@
// by commy2 // by commy2
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_array", "_value", "_min", "_max"]; private ["_array", "_value", "_min", "_max"];

View File

@ -9,6 +9,6 @@
* Return value: * Return value:
* This mission has automatic wind? (Bool) * This mission has automatic wind? (Bool)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
["Mission", "Intel", "windForced"] call FUNC(getNumberFromMissionSQM) != 1 ["Mission", "Intel", "windForced"] call FUNC(getNumberFromMissionSQM) != 1

View File

@ -18,7 +18,7 @@
Example: Example:
_isSpecialist = [player] call FUNC(isEOD); _isSpecialist = [player] call FUNC(isEOD);
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private "_unit"; private "_unit";

View File

@ -9,7 +9,7 @@
* Return Value: * Return Value:
* Bool: is the unit an engineer? * Bool: is the unit an engineer?
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private "_unit"; private "_unit";

View File

@ -9,7 +9,7 @@
* Return value: * Return value:
* Is the unit in a building? (Bool) * Is the unit in a building? (Bool)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
#define DISTANCE 10 #define DISTANCE 10

View File

@ -9,7 +9,7 @@
* Return Value: * Return Value:
* Bool: is unit medic? * Bool: is unit medic?
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_unit"]; private ["_unit"];

View File

@ -10,6 +10,6 @@
* Return Value: * Return Value:
* Bool: is unit a player? * Bool: is unit a player?
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
isPlayer (_this select 0) || {_this select 0 == call FUNC(player)} isPlayer (_this select 0) || {_this select 0 == call FUNC(player)}

View File

@ -9,7 +9,7 @@
* Return value: * Return value:
* Is the unit turned out or not? Will return false if there is no option to turn out in the first place. (Bool) * Is the unit turned out or not? Will return false if there is no option to turn out in the first place. (Bool)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_unit", "_vehicle", "_config", "_animation", "_action", "_inAction", "_turretIndex"]; private ["_unit", "_vehicle", "_config", "_animation", "_action", "_inAction", "_turretIndex"];

View File

@ -1,4 +1,4 @@
// by commy2 // by commy2
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
[-1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 30, 48, 46, 32, 18, 33, 34, 35, 23, 36, 37, 38, 50, 49, 24, 25, 16, 19, 31, 20, 22, 47, 17, 45, 44, 21] select (["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] find toUpper (_this select 0)) + 1 [-1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 30, 48, 46, 32, 18, 33, 34, 35, 23, 36, 37, 38, 50, 49, 24, 25, 16, 19, 31, 20, 22, 47, 17, 45, 44, 21] select (["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"] find toUpper (_this select 0)) + 1

View File

@ -1,5 +1,5 @@
// by commy2 // by commy2
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
if ((_this select 0) in (missionNamespace getVariable ["ACE_Debug", []])) then { if ((_this select 0) in (missionNamespace getVariable ["ACE_Debug", []])) then {
private ["_type", "_argument", "_function", "_showInGame"]; private ["_type", "_argument", "_function", "_showInGame"];

View File

@ -1,5 +1,5 @@
// by commy2 // by commy2
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_array", "_index"]; private ["_array", "_index"];

View File

@ -1,5 +1,5 @@
// by commy2 // by commy2
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_array", "_index"]; private ["_array", "_index"];

View File

@ -13,7 +13,7 @@
* Usage: * Usage:
* [["2", "gobblecock", "25"], {parseNumber _this}] call FUNC(map) ==> [2, 0, 25] * [["2", "gobblecock", "25"], {parseNumber _this}] call FUNC(map) ==> [2, 0, 25]
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_array", "_code"]; private ["_array", "_code"];

View File

@ -9,7 +9,7 @@
* Return Value: * Return Value:
* None * None
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
_logic = _this select 0; _logic = _this select 0;
_units = _this select 1; _units = _this select 1;

View File

@ -9,7 +9,7 @@
* Return Value: * Return Value:
* None * None
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
_logic = _this select 0; _logic = _this select 0;
_units = _this select 1; _units = _this select 1;

View File

@ -1,5 +1,5 @@
// by commy2 // by commy2
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
terminate (missionNamespace getVariable [QGVAR(MonitorFnc), scriptNull]); terminate (missionNamespace getVariable [QGVAR(MonitorFnc), scriptNull]);

View File

@ -9,7 +9,7 @@
* Return value: * Return value:
* Nothing * Nothing
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_unit", "_speaker"]; private ["_unit", "_speaker"];

View File

@ -10,7 +10,7 @@
* Return value: * Return value:
* Digits. The maximum count is six digits. (Array) * Digits. The maximum count is six digits. (Array)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_number", "_minLength", "_length", "_digits", "_index", "_count"]; private ["_number", "_minLength", "_length", "_digits", "_index", "_count"];

View File

@ -10,7 +10,7 @@
* Return value: * Return value:
* Digits. The maximum length is six digits. (String) * Digits. The maximum length is six digits. (String)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private ["_digits", "_count", "_string", "_index"]; private ["_digits", "_count", "_string", "_index"];

View File

@ -13,7 +13,7 @@
Returns: Returns:
Nothing Nothing
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
uiNamespace setVariable ["ACE_ctrlChannel", (_this select 0) displayCtrl 101]; uiNamespace setVariable ["ACE_ctrlChannel", (_this select 0) displayCtrl 101];

View File

@ -1,5 +1,5 @@
// by commy2 // by commy2
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
private "_object"; private "_object";

View File

@ -10,6 +10,6 @@
* Return Value: * Return Value:
* Player controlled unit (object) * Player controlled unit (object)
*/ */
#include "script_component.hpp" #include "\z\ace\addons\core\script_component.hpp"
missionNamespace getVariable ["bis_fnc_moduleRemoteControl_unit", player] missionNamespace getVariable ["bis_fnc_moduleRemoteControl_unit", player]

Some files were not shown because too many files have changed in this diff Show More