2015-03-29 13:20:39 +00:00
|
|
|
#define COMPONENT cargo
|
2016-06-20 09:41:17 +00:00
|
|
|
#define COMPONENT_BEAUTIFIED Cargo
|
2015-03-29 13:20:39 +00:00
|
|
|
#include "\z\ace\addons\main\script_mod.hpp"
|
|
|
|
|
2015-09-20 15:05:34 +00:00
|
|
|
// #define DEBUG_MODE_FULL
|
2016-01-29 05:26:02 +00:00
|
|
|
// #define DISABLE_COMPILE_CACHE
|
|
|
|
// #define ENABLE_PERFORMANCE_COUNTERS
|
2015-09-20 15:05:34 +00:00
|
|
|
|
2015-03-29 13:20:39 +00:00
|
|
|
#ifdef DEBUG_ENABLED_CARGO
|
|
|
|
#define DEBUG_MODE_FULL
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef DEBUG_ENABLED_CARGO
|
|
|
|
#define DEBUG_SETTINGS DEBUG_ENABLED_CARGO
|
|
|
|
#endif
|
|
|
|
|
2015-08-10 21:07:47 +00:00
|
|
|
#include "\z\ace\addons\main\script_macros.hpp"
|
|
|
|
|
|
|
|
#define MAX_LOAD_DISTANCE 10
|
2017-05-31 22:54:57 +00:00
|
|
|
|
|
|
|
#define GET_NUMBER(config,default) (if (isNumber (config)) then {getNumber (config)} else {default})
|
|
|
|
|
|
|
|
// Default cargo size is -1 as 0 is a valid size
|
|
|
|
#define CARGO_SIZE(classname) GET_NUMBER(configFile >> "CfgVehicles" >> (classname) >> QGVAR(size),-1)
|
|
|
|
#define CARGO_SPACE(classname) GET_NUMBER(configFile >> "CfgVehicles" >> (classname) >> QGVAR(space),0)
|