ACE3/addons/interaction/script_component.hpp
jonpas 37c16afe9c
Interaction - Fix Open Door keybind (#8547)
* Interaction - Fix Open Door keybind
Reach distance calculation didn't give position to

* getPosASL is redundant
2021-10-17 16:58:35 -05:00

36 lines
1019 B
C++

#define COMPONENT interaction
#define COMPONENT_BEAUTIFIED Interaction
#include "\z\ace\addons\main\script_mod.hpp"
// #define DEBUG_MODE_FULL
// #define DISABLE_COMPILE_CACHE
// #define ENABLE_PERFORMANCE_COUNTERS
#ifdef DEBUG_ENABLED_INTERACTION
#define DEBUG_MODE_FULL
#endif
#ifdef DEBUG_SETTINGS_INTERACTION
#define DEBUG_SETTINGS DEBUG_SETTINGS_INTERACTION
#endif
#include "\z\ace\addons\main\script_macros.hpp"
#include "\a3\ui_f\hpp\defineCommonGrids.inc"
#define IDD_MOUSEHINT 2400
#define IDC_MOUSEHINT_LMB 2410
#define IDC_MOUSEHINT_LMB_TEXT 2420
#define IDC_MOUSEHINT_MMB 2430
#define IDC_MOUSEHINT_MMB_TEXT 2450
#define IDC_MOUSEHINT_RMB 2460
#define IDC_MOUSEHINT_RMB_TEXT 2470
#define IDC_MOUSEHINT_EXTRA 2500
#define IDC_MOUSEHINT_EXTRA_NAME 2510
#define IDC_MOUSEHINT_EXTRA_TEXT 2520
#define MACRO_DOOR_REACH_DISTANCE ((AGLToASL positionCameraToWorld [0, 0, 0]) vectorDistance (ACE_player modelToWorldWorld (ACE_player selectionPosition "Head"))) + 2
#define DISABLED_LAMP_DAMAGE 0.95