-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathscript_macros.hpp
More file actions
27 lines (21 loc) · 955 Bytes
/
script_macros.hpp
File metadata and controls
27 lines (21 loc) · 955 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include "\x\cba\addons\main\script_macros_common.hpp"
#define DEFAULT_SETTINGS [ARR_3(1,0,0)]
#define MINIMUM_SETTINGS [ARR_3(0.001,0,0)]
#define DFUNC(var1) TRIPLES(ADDON,fnc,var1)
#ifdef DISABLE_COMPILE_CACHE
#undef PREP
#define PREP(fncName) DFUNC(fncName) = compile preprocessFileLineNumbers QPATHTOF(functions\DOUBLES(fnc,fncName).sqf)
#else
#undef PREP
#define PREP(fncName) [QPATHTOF(functions\DOUBLES(fnc,fncName).sqf), QFUNC(fncName)] call CBA_fnc_compileFunction
#endif
// #include "\z\ace\addons\medical_engine\script_component.hpp"
#define PRIORITY_HEAD 3
#define PRIORITY_BODY 4
#define PRIORITY_LEFT_ARM (1 + random 1)
#define PRIORITY_RIGHT_ARM (1 + random 1)
#define PRIORITY_LEFT_LEG (1 + random 1)
#define PRIORITY_RIGHT_LEG (1 + random 1)
#define PRIORITY_STRUCTURAL 1
#define TYPE_UNIFORM 801
#define GET_NUMBER(config,default) (if (isNumber (config)) then {getNumber (config)} else {default})