44 lines
1.8 KiB
C++
44 lines
1.8 KiB
C++
#define SYSTEM_TAG "HC"
|
|
#define CASH life_cash
|
|
#define BANK life_atmbank
|
|
#define GANG_FUNDS group player getVariable ["gang_bank",0];
|
|
|
|
/*
|
|
remoteExec Section
|
|
When uncommented it enables proper testing via local testing
|
|
Otherwise leave it commented out for "LIVE" servers
|
|
*/
|
|
#define DEBUG 1
|
|
|
|
#ifdef DEBUG
|
|
#define RCLIENT 0
|
|
#else
|
|
#define RCLIENT -2
|
|
#endif
|
|
|
|
#define RSERV 2
|
|
#define RANY 0
|
|
|
|
//Scripting Macros
|
|
#define CONST(var1,var2) var1 = compileFinal (if (var2 isEqualType "") then {var2} else {str(var2)})
|
|
#define CONSTVAR(var) var = compileFinal (if (var isEqualType "") then {var} else {str(var)})
|
|
#define FETCH_CONST(var) (call var)
|
|
#define LIFE_SETTINGS(TYPE,SETTING) TYPE(missionConfigFile >> "Life_Settings" >> SETTING)
|
|
#define FETCH_CONFIG(TYPE,CFG,SECTION,CLASS,ENTRY) TYPE(configFile >> CFG >> SECTION >> CLASS >> ENTRY)
|
|
#define FETCH_CONFIG2(TYPE,CFG,CLASS,ENTRY) TYPE(configFile >> CFG >> CLASS >> ENTRY)
|
|
#define FETCH_CONFIG3(TYPE,CFG,SECTION,CLASS,ENTRY,SUB) TYPE(configFile >> CFG >> SECTION >> CLASS >> ENTRY >> SUB)
|
|
#define FETCH_CONFIG4(TYPE,CFG,SECTION,CLASS,ENTRY,SUB,SUB2) TYPE(configFile >> CFG >> SECTION >> CLASS >> ENTRY >> SUB >> SUB2)
|
|
#define M_CONFIG(TYPE,CFG,CLASS,ENTRY) TYPE(missionConfigFile >> CFG >> CLASS >> ENTRY)
|
|
#define ITEM_WEIGHT(varName) M_CONFIG(getNumber,"VirtualItems",varName,"weight")
|
|
|
|
//Condition Macros
|
|
#define CONFIG_BOOL(NUMBER) [##NUMBER] call { _ret = false; if ((_this select 0) in [0,1] && (_this select 0) isEqualTo 1) then { _ret = true; }; _ret;}
|
|
|
|
// extDB3 Macros
|
|
#define EXTDB "extDB3" callExtension
|
|
#define EXTDB_SETTING(TYPE,SETTING) TYPE(missionConfigFile >> "CfgServer" >> SETTING)
|
|
#define EXTDB_FAILED(MESSAGE) \
|
|
life_HC_server_extDB_notLoaded = [true,##MESSAGE]; \
|
|
publicVariable "life_HC_server_extDB_notLoaded"; \
|
|
diag_log MESSAGE;
|