2016-07-14 14:16:53 +00:00
|
|
|
#define COMPONENT cookoff
|
|
|
|
#define COMPONENT_BEAUTIFIED Cook off
|
|
|
|
#include "\z\ace\addons\main\script_mod.hpp"
|
|
|
|
|
|
|
|
// #define DEBUG_MODE_FULL
|
|
|
|
// #define DISABLE_COMPILE_CACHE
|
|
|
|
// #define ENABLE_PERFORMANCE_COUNTERS
|
|
|
|
|
|
|
|
#ifdef DEBUG_ENABLED_COOKOFF
|
|
|
|
#define DEBUG_MODE_FULL
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef DEBUG_SETTINGS_COOKOFF
|
|
|
|
#define DEBUG_SETTINGS DEBUG_SETTINGS_COOKOFF
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "\z\ace\addons\main\script_macros.hpp"
|
|
|
|
|
2017-06-02 21:20:36 +00:00
|
|
|
// Stages of cookoff in order (in seconds)
|
2024-06-05 19:36:39 +00:00
|
|
|
// Should be no un-synced randomness in these as the effects must be run on each client
|
|
|
|
#define SMOKE_DELAY 10.5
|
|
|
|
#define DETONATION_DELAY 3
|
2017-06-02 21:20:36 +00:00
|
|
|
#define COOKOFF_TIME 14 // Cook off time should be 20s at most due to length of sound files
|
2024-06-05 19:36:39 +00:00
|
|
|
#define ENGINE_FIRE_TIME 240
|
2021-10-14 15:49:27 +00:00
|
|
|
#define MIN_TIME_BETWEEN_FLAMES 5
|
|
|
|
#define MAX_TIME_BETWEEN_FLAMES 15
|
|
|
|
#define MAX_TIME_BETWEEN_AMMO_DET 25
|
2021-11-11 11:43:41 +00:00
|
|
|
#define MAX_COOKOFF_INTENSITY 10
|
2017-06-02 21:20:36 +00:00
|
|
|
|
2022-08-20 21:36:37 +00:00
|
|
|
#define MIN_AMMO_DETONATION_START_DELAY 1 // Min time to wait before a vehicle's ammo starts to cookoff
|
|
|
|
#define MAX_AMMO_DETONATION_START_DELAY 6 // Max time to wait before a vehicle's ammo starts to cookoff
|
|
|
|
|
2021-10-14 15:49:27 +00:00
|
|
|
// Common commander hatch defines for default vehicles
|
|
|
|
#define DEFAULT_COMMANDER_HATCHES ["osa_poklop_commander", "hatch_commander_axis"]
|
2024-02-04 09:36:59 +00:00
|
|
|
|
|
|
|
#define DISTANCE_CLOSE 235
|
|
|
|
#define DISTANCE_MID 952
|