2015-08-13 17:33:55 +00:00
|
|
|
#define COMPONENT refuel
|
|
|
|
#include "\z\ace\addons\main\script_mod.hpp"
|
|
|
|
|
2016-01-29 05:26:02 +00:00
|
|
|
// #define DEBUG_MODE_FULL
|
|
|
|
// #define DISABLE_COMPILE_CACHE
|
|
|
|
// #define CBA_DEBUG_SYNCHRONOUS
|
|
|
|
// #define ENABLE_PERFORMANCE_COUNTERS
|
|
|
|
|
2015-08-15 17:26:26 +00:00
|
|
|
#ifdef DEBUG_ENABLED_REFUEL
|
|
|
|
#define DEBUG_MODE_FULL
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef DEBUG_ENABLED_REFUEL
|
|
|
|
#define DEBUG_SETTINGS DEBUG_ENABLED_REFUEL
|
|
|
|
#endif
|
|
|
|
|
2015-08-13 17:33:55 +00:00
|
|
|
#include "\z\ace\addons\main\script_macros.hpp"
|
2015-08-16 23:44:47 +00:00
|
|
|
|
2016-02-26 15:35:34 +00:00
|
|
|
#define REFUEL_INFINITE_FUEL -10
|
2015-12-21 16:54:52 +00:00
|
|
|
#define REFUEL_ACTION_DISTANCE 7
|
2015-11-23 18:28:51 +00:00
|
|
|
#define REFUEL_HOSE_LENGTH 12
|
2015-08-18 21:18:32 +00:00
|
|
|
|
|
|
|
#define REFUEL_HOLSTER_WEAPON \
|
|
|
|
_unit setVariable [QGVAR(selectedWeaponOnRefuel), currentWeapon _unit]; \
|
2016-05-12 15:11:35 +00:00
|
|
|
_unit call EFUNC(common,fixLoweredRifleAnimation); \
|
2015-08-18 21:18:32 +00:00
|
|
|
_unit action ["SwitchWeapon", _unit, _unit, 99];
|
|
|
|
|
|
|
|
#define REFUEL_UNHOLSTER_WEAPON \
|
|
|
|
_weaponSelect = _unit getVariable QGVAR(selectedWeaponOnRefuel); \
|
|
|
|
_unit selectWeapon _weaponSelect; \
|
|
|
|
_unit setVariable [QGVAR(selectedWeaponOnRefuel), nil];
|