2015-01-28 04:42:45 +00:00
|
|
|
#define COMPONENT logistics_wirecutter
|
2016-06-20 10:33:10 +00:00
|
|
|
#define COMPONENT_BEAUTIFIED Logistics Wire Cutter
|
2015-01-28 04:42:45 +00:00
|
|
|
#include "\z\ace\addons\main\script_mod.hpp"
|
|
|
|
|
2015-08-24 03:55:43 +00:00
|
|
|
// #define DEBUG_MODE_FULL
|
2016-01-29 05:26:02 +00:00
|
|
|
// #define DISABLE_COMPILE_CACHE
|
|
|
|
// #define ENABLE_PERFORMANCE_COUNTERS
|
2015-08-24 03:55:43 +00:00
|
|
|
|
2015-01-28 04:42:45 +00:00
|
|
|
#ifdef DEBUG_ENABLED_LOGISTICS_WIRECUTTER
|
|
|
|
#define DEBUG_MODE_FULL
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef DEBUG_SETTINGS_LOGISTICS_WIRECUTTER
|
|
|
|
#define DEBUG_SETTINGS DEBUG_SETTINGS_LOGISTICS_WIRECUTTER
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "\z\ace\addons\main\script_macros.hpp"
|
2015-08-23 23:39:08 +00:00
|
|
|
|
2018-07-13 16:30:13 +00:00
|
|
|
// find is case sensitive, so keep everything lowercase
|
2018-07-19 21:59:46 +00:00
|
|
|
// also set as isFence, but if the model is reused like for xcam
|
2018-03-18 11:49:48 +00:00
|
|
|
#define FENCE_P3DS [\
|
2018-07-19 21:59:46 +00:00
|
|
|
"net_fence_4m_f.p3d",\
|
2018-03-18 11:49:48 +00:00
|
|
|
"net_fence_8m_f.p3d",\
|
2018-07-13 16:30:13 +00:00
|
|
|
"netfence_01_m_4m_f.p3d",\
|
|
|
|
"netfence_01_m_8m_f.p3d",\
|
2018-07-19 21:59:46 +00:00
|
|
|
"wired_fence_4m_f.p3d",\
|
|
|
|
"wired_fence_8m_f.p3d",\
|
|
|
|
"new_wiredfence_5m_f.p3d",\
|
|
|
|
"new_wiredfence_10m_f.p3d",\
|
2018-07-13 16:30:13 +00:00
|
|
|
"wiredfence_01_4m_f.p3d",\
|
|
|
|
"wiredfence_01_8m_f.p3d",\
|
|
|
|
"wiredfence_01_16m_f.p3d",\
|
2018-07-19 21:59:46 +00:00
|
|
|
"mil_wiredfence_f.p3d",\
|
|
|
|
"sportground_fence_f.p3d",\
|
|
|
|
"sportground_fence_nolc_f.p3d",\
|
|
|
|
"indfnc_3_f.p3d",\
|
|
|
|
"indfnc_3_hole_f.p3d",\
|
|
|
|
"indfnc_9_f.p3d",\
|
|
|
|
"indfnc_corner_f.p3d",\
|
2018-07-13 16:30:13 +00:00
|
|
|
"slums01_8m.p3d",\
|
2018-07-19 21:59:46 +00:00
|
|
|
"razorwire_f.p3d",\
|
2018-07-13 16:30:13 +00:00
|
|
|
"slums02_4m.p3d",\
|
2018-07-19 21:59:46 +00:00
|
|
|
"backalley_01_l_1m_f.p3d",\
|
|
|
|
"plasticnetfence_01_short_f.p3d",\
|
|
|
|
"plasticnetfence_01_long_f.p3d",\
|
|
|
|
"wall_indfnc_3.p3d",\
|
|
|
|
"wall_indfnc_9.p3d",\
|
|
|
|
"wall_indfnc_corner.p3d",\
|
|
|
|
"pletivo_wired.p3d",\
|
|
|
|
"wall_fen1_5.p3d",\
|
|
|
|
"plot_provizorni.p3d",\
|
|
|
|
"plp_ctm_partitioningfencegrey.p3d",\
|
2018-11-14 16:36:37 +00:00
|
|
|
"fence.p3d",\
|
2018-11-13 23:06:40 +00:00
|
|
|
"fort_razorwire.p3d",\
|
|
|
|
"barbedwire.pd3",\
|
2018-11-18 01:13:21 +00:00
|
|
|
"dd_pletivo.p3d",\
|
2018-12-29 13:29:11 +00:00
|
|
|
"plot_green_draty.p3d",\
|
2019-01-16 02:16:12 +00:00
|
|
|
"plot_rust_draty.p3d",\
|
|
|
|
"wall_fen1_5_2.p3d"\
|
2018-03-18 11:49:48 +00:00
|
|
|
]
|
2015-08-23 23:39:08 +00:00
|
|
|
|
2018-07-13 16:30:13 +00:00
|
|
|
#define SOUND_CLIP_TIME_SPACING 1.5
|
|
|
|
#define CUT_TIME_DEFAULT 11
|
|
|
|
#define CUT_TIME_ENGINEER 7.5
|
2018-07-27 17:26:26 +00:00
|
|
|
|
|
|
|
#define HAS_WIRECUTTER(unit) (\
|
2018-09-23 02:59:16 +00:00
|
|
|
"ACE_wirecutter" in (unit call EFUNC(common,uniqueItems)) \
|
2018-07-27 17:26:26 +00:00
|
|
|
|| {1 == getNumber (configFile >> "CfgVehicles" >> (backpack unit) >> QGVAR(hasWirecutter))} \
|
|
|
|
|| {1 == getNumber (configFile >> "CfgWeapons" >> (vest unit) >> QGVAR(hasWirecutter))} \
|
|
|
|
)
|