mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
c44a1e7ea7
* Cook-off improvements * More changes * Update fnc_getVehicleAmmo.sqf * Better engine fire placement * Update fnc_detonateAmmunition.sqf * Update XEH_postInit.sqf * Update fnc_getVehicleAmmo.sqf * Update events-framework.md * Various improvements * Separate effect handling * Tweaks * Update XEH_postInit.sqf * Prevent double ammo detonation * Fixed objects not being able to cook-off again * Added incendiary rounds as source of box cookoff * Converted enable setting to bool * Fixed brackets * Update fnc_cookOff.sqf * Update CfgEden.hpp * Removed GVAR(enable), added GVAR(enableFire) back * Update initSettings.inc.sqf * Update events-framework.md * Update addons/cookoff/functions/fnc_cookOffEffect.sqf * Restructured, redid API events * Fix effect for JIP, minor optimisations * Removed `cbaSettings_settingChanged` * Renamed variables, tweaked string table entries * Update fire damage #9991 * Capitalize comments again * Fix cookoff for very short durations and fix effect removal being too quick
38 lines
1.2 KiB
C++
38 lines
1.2 KiB
C++
#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"
|
|
|
|
// Stages of cookoff in order (in seconds)
|
|
// 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
|
|
#define COOKOFF_TIME 14 // Cook off time should be 20s at most due to length of sound files
|
|
#define ENGINE_FIRE_TIME 240
|
|
#define MIN_TIME_BETWEEN_FLAMES 5
|
|
#define MAX_TIME_BETWEEN_FLAMES 15
|
|
#define MAX_TIME_BETWEEN_AMMO_DET 25
|
|
#define MAX_COOKOFF_INTENSITY 10
|
|
|
|
#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
|
|
|
|
// Common commander hatch defines for default vehicles
|
|
#define DEFAULT_COMMANDER_HATCHES ["osa_poklop_commander", "hatch_commander_axis"]
|
|
|
|
#define DISTANCE_CLOSE 235
|
|
#define DISTANCE_MID 952
|