2015-08-13 17:33:55 +00:00
|
|
|
#define COMPONENT refuel
|
|
|
|
#include "\z\ace\addons\main\script_mod.hpp"
|
|
|
|
|
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
|
|
|
|
2015-08-18 21:18:32 +00:00
|
|
|
#define REFUEL_INFINITE_FUEL -1
|
2015-11-23 18:28:51 +00:00
|
|
|
#define REFUEL_ACTION_DISTANCE 37
|
|
|
|
#define REFUEL_HOSE_LENGTH 12
|
2015-08-18 21:18:32 +00:00
|
|
|
|
|
|
|
#define REFUEL_HOLSTER_WEAPON \
|
|
|
|
_unit setVariable [QGVAR(selectedWeaponOnRefuel), currentWeapon _unit]; \
|
|
|
|
_unit action ["SwitchWeapon", _unit, _unit, 99];
|
|
|
|
|
|
|
|
#define REFUEL_UNHOLSTER_WEAPON \
|
|
|
|
_weaponSelect = _unit getVariable QGVAR(selectedWeaponOnRefuel); \
|
|
|
|
_unit selectWeapon _weaponSelect; \
|
|
|
|
_unit setVariable [QGVAR(selectedWeaponOnRefuel), nil];
|