2016-06-08 18:35:33 +00:00
|
|
|
#define COMPONENT particles
|
|
|
|
#include "\z\ace\addons\main\script_mod.hpp"
|
|
|
|
|
|
|
|
// #define DEBUG_MODE_FULL
|
|
|
|
// #define DISABLE_COMPILE_CACHE
|
|
|
|
// #define ENABLE_PERFORMANCE_COUNTERS
|
|
|
|
|
|
|
|
#ifdef DEBUG_ENABLED_PARTICLES
|
|
|
|
#define DEBUG_MODE_FULL
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef DEBUG_SETTINGS_PARTICLES
|
|
|
|
#define DEBUG_SETTINGS DEBUG_SETTINGS_PARTICLES
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "\z\ace\addons\main\script_macros.hpp"
|
2016-06-19 21:48:23 +00:00
|
|
|
|
|
|
|
#define SMOKE_COLOR_RED {0.9528, 0.0438, 0.0410, 0.8}
|
|
|
|
#define SMOKE_COLOR_GREEN {0.0328, 0.1626, 0.1023, 0.8}
|
|
|
|
#define SMOKE_COLOR_YELLOW {0.9610, 0.4505, 0.0109, 0.8}
|
|
|
|
#define SMOKE_COLOR_PURPLE {0.4622, 0.0578, 0.3154, 0.8}
|
|
|
|
#define SMOKE_COLOR_BLUE {0.0355, 0.1863, 1.0000, 0.8}
|
|
|
|
#define SMOKE_COLOR_ORANGE {0.9132, 0.1763, 0.0070, 0.8}
|
|
|
|
|
|
|
|
#define EFFECT_HANDGRENADE(color) class SmokeShell##color##Effect: SmokeShellWhiteEffect { \
|
|
|
|
class SmokeShell: SmokeShell { \
|
|
|
|
type = "ACE_SmokeBaseMedium"; \
|
|
|
|
}; \
|
|
|
|
}
|
2021-04-19 16:31:07 +00:00
|
|
|
#define MERGE(var1,var2) var1####var2
|
2016-06-19 21:48:23 +00:00
|
|
|
#define EFFECT_40MM(color) class ACE_40mmSmokeShell##color##Effect: ACE_40mmSmokeShellWhiteEffect { \
|
|
|
|
class SmokeShellUW { \
|
|
|
|
simulation = "particles"; \
|
2021-04-19 16:31:07 +00:00
|
|
|
type = QUOTE(MERGE(SmokeShell,MERGE(color,UW))); \
|
2016-06-19 21:48:23 +00:00
|
|
|
position[] = {0, 0, 0}; \
|
|
|
|
intensity = 1; \
|
|
|
|
interval = 1; \
|
|
|
|
}; \
|
|
|
|
class SmokeShell2UW { \
|
|
|
|
simulation = "particles"; \
|
2021-04-19 16:31:07 +00:00
|
|
|
type = QUOTE(MERGE(SmokeShell,MERGE(color,2UW))); \
|
2016-06-19 21:48:23 +00:00
|
|
|
position[] = {0, 0, 0}; \
|
|
|
|
intensity = 1; \
|
|
|
|
interval = 1; \
|
|
|
|
}; \
|
|
|
|
}
|
2017-12-13 21:03:00 +00:00
|
|
|
#define EFFECT_AFTER_WATER(color) class ACE_SmokeAfterWater##color: ACE_SmokeAfterWaterWhite { \
|
2016-06-19 21:48:23 +00:00
|
|
|
class SmokeAfterWater: SmokeAfterWater { \
|
2021-04-19 16:31:07 +00:00
|
|
|
type = QUOTE(MERGE(ACE_SmokeAfterWater,color)); \
|
2016-06-19 21:48:23 +00:00
|
|
|
}; \
|
|
|
|
}
|
|
|
|
|
|
|
|
#define CLOUDLET_UNDERWATER(color) class SmokeShell##color##UW; \
|
|
|
|
class SmokeShell##color##2UW: SmokeShell##color##UW { \
|
2021-04-19 16:31:07 +00:00
|
|
|
postEffects = QUOTE(MERGE(ACE_SmokeAfterWater,color)); \
|
2016-06-19 21:48:23 +00:00
|
|
|
}
|