mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
f6c4ec5f09
and another one
71 lines
2.0 KiB
C++
71 lines
2.0 KiB
C++
#define COMPONENT logistics_wirecutter
|
|
#define COMPONENT_BEAUTIFIED Logistics Wire Cutter
|
|
#include "\z\ace\addons\main\script_mod.hpp"
|
|
|
|
// #define DEBUG_MODE_FULL
|
|
// #define DISABLE_COMPILE_CACHE
|
|
// #define ENABLE_PERFORMANCE_COUNTERS
|
|
|
|
#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"
|
|
|
|
// find is case sensitive, so keep everything lowercase
|
|
// also set as isFence, but if the model is reused like for xcam
|
|
#define FENCE_P3DS [\
|
|
"net_fence_4m_f.p3d",\
|
|
"net_fence_8m_f.p3d",\
|
|
"netfence_01_m_4m_f.p3d",\
|
|
"netfence_01_m_8m_f.p3d",\
|
|
"wired_fence_4m_f.p3d",\
|
|
"wired_fence_8m_f.p3d",\
|
|
"new_wiredfence_5m_f.p3d",\
|
|
"new_wiredfence_10m_f.p3d",\
|
|
"wiredfence_01_4m_f.p3d",\
|
|
"wiredfence_01_8m_f.p3d",\
|
|
"wiredfence_01_16m_f.p3d",\
|
|
"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",\
|
|
"slums01_8m.p3d",\
|
|
"razorwire_f.p3d",\
|
|
"slums02_4m.p3d",\
|
|
"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",\
|
|
"fence.p3d",\
|
|
"fort_razorwire.p3d",\
|
|
"barbedwire.pd3",\
|
|
"dd_pletivo.p3d",\
|
|
"plot_green_draty.p3d",\
|
|
"plot_rust_draty.p3d",\
|
|
"wall_fen1_5_2.p3d"\
|
|
]
|
|
|
|
#define SOUND_CLIP_TIME_SPACING 1.5
|
|
#define CUT_TIME_DEFAULT 11
|
|
#define CUT_TIME_ENGINEER 7.5
|
|
|
|
#define HAS_WIRECUTTER(unit) (\
|
|
"ACE_wirecutter" in (unit call EFUNC(common,uniqueItems)) \
|
|
|| {1 == getNumber (configFile >> "CfgVehicles" >> (backpack unit) >> QGVAR(hasWirecutter))} \
|
|
|| {1 == getNumber (configFile >> "CfgWeapons" >> (vest unit) >> QGVAR(hasWirecutter))} \
|
|
)
|