ACE3/docs/wiki/framework/cookoff-framework.md
johnb432 c44a1e7ea7
Cookoff - Mini-Rewrite (#9758)
* 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
2024-06-05 12:36:39 -07:00

987 B

layout title description group order parent mod version
wiki Cook Off Framework Explains the Cook off system for developers & mission makers. framework 5 wiki ace
major minor patch
3 7 0

1. Disabling cook-off fire for individual vehicles

Cook-off fire can be disabled for a specific vehicle (does not affect ammo cook-off):

_vehicle setVariable ["ace_cookoff_enable", false, true];

Mission settings will always apply however, so you can't enable cook-off on a vehicle if the mission settings have cook-off for vehicles disabled.

2. Disabling ammunition cook-off for individual vehicles and boxes

Ammunition cook-off can be disabled for a specific vehicle or box (does not affect cook-off fire):

_vehicleOrBox setVariable ["ace_cookoff_enableAmmoCookoff", false, true];

Mission settings will always apply however, so you can't enable ammunition cook-off on a vehicle or box if the mission settings have ammunition cook-off disabled.