2015-01-18 21:50:45 +00:00
|
|
|
#define COMPONENT goggles
|
2016-06-20 09:41:17 +00:00
|
|
|
#define COMPONENT_BEAUTIFIED Goggles
|
2015-01-18 21:50:45 +00:00
|
|
|
#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 ENABLE_PERFORMANCE_COUNTERS
|
|
|
|
|
2015-01-18 21:50:45 +00:00
|
|
|
#ifdef DEBUG_ENABLED_GOGGLES
|
|
|
|
#define DEBUG_MODE_FULL
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef DEBUG_SETTINGS_GOGGLES
|
|
|
|
#define DEBUG_SETTINGS DEBUG_SETTINGS_GOGGLES
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "\z\ace\addons\main\script_macros.hpp"
|
|
|
|
|
|
|
|
// MACROS
|
|
|
|
#define GLASSESDEFAULT [false,[false,0,0,0],false]
|
2015-01-18 23:38:54 +00:00
|
|
|
#define GETGLASSES(unit) GETVAR(unit,GVAR(Condition),GLASSESDEFAULT)
|
|
|
|
#define SETGLASSES(unit,value) SETVAR(unit,GVAR(Condition),value)
|
|
|
|
|
2015-01-18 21:50:45 +00:00
|
|
|
#define DIRT 0
|
|
|
|
#define DUST 1
|
|
|
|
#define BROKEN 2
|
|
|
|
|
2015-01-18 23:38:54 +00:00
|
|
|
#define GETDIRT (GETGLASSES(ace_player) select DIRT)
|
|
|
|
#define GETDUST (GETGLASSES(ace_player) select DUST)
|
|
|
|
#define GETBROKEN (GETGLASSES(ace_player) select BROKEN)
|
|
|
|
#define GETDUSTT(type) ((GETGLASSES(ace_player) select DUST) select type)
|
2015-01-18 21:50:45 +00:00
|
|
|
|
2015-01-18 23:38:54 +00:00
|
|
|
#define SETDUST(type,value) (GETGLASSES(ace_player) select DUST) set [type,value]
|
2015-01-18 21:50:45 +00:00
|
|
|
|
|
|
|
#define DACTIVE 0
|
|
|
|
#define DTIME 1
|
|
|
|
#define DBULLETS 2
|
|
|
|
#define DAMOUNT 3
|
|
|
|
|
|
|
|
#define GLASSDISPLAY (GETUVAR(GVAR(Display),displayNull))
|
|
|
|
|
|
|
|
#define CLAMP(x,low,high) (if(x > high)then{high}else{if(x < low)then{low}else{x}})
|