* Cookoff - Added a random delay between a vehicle being killed and when the ammo starts to cookoff
* Cookoff - Tweaked min ammo start delay to 1 second
* minor syntax and macro cleanup
* Cookoff: Added handling for cleaning up smoke effects when vehicle is deleted mid-cookoff
* Cookoff - Prevent effects cleanup Deleted EH from getting duplicated
* Cookoff - Added locality safety check to effects cleanup
* Cookoff - Global effects cleanup is now triggered by the server to handle locality transfer
* Initital port of ACE2 Vehicle Damage
* Add fire damage and burning people
* Migrate vehicle damge stuff from cookoff. Change cookoff function to enhance effect.
* Minor tweaks
* Add incendiary values to all applicable ammunition. Add engine fire/smoke if hit enough
* Handle car damage more elegantly.
* Added ability to create fire sources arbitrarily
* tweaks
* Add chance to detonate after cookoff
* disable compile cache
* Move blown-off turret config to vehicle damage. Add settings inititalized EH for initializing off settings
* tabs->spaces
* Various code improvements
* Change to count loop for deleting effects
* update addon requirements
* remove vanilla config requirements
* Add RHS compatability
* RHS compat. Various QOL fixes/changes
* Various tweaks to compats and code.
* High-Explosive damage tweak
* Change how penetration is calculated for parts
* Fix RHS compat
* Create setting for flare effect
* increase burning scream sounds
* swap out file name for snake_case
* move incendiary values out of vehicle damage. remove medical dependency
* vehicle_dammage - update all refs to snake
* sqf fixes
* fix fire string package caps
* fix pboprefix
* Default setting to on
* Add variables to enable/disable ring fire to avoid goofy looking vehicles. Enhance how particles are cleaned up. Remove advanced penetration simulation. Change how fire intensity is calculated. Add setting to "disable" vehicle after cookoff
* Fix bug where event handler wasn't giving the damage last.
* change to snake
* fix build errors
* Fix UBC
* Fix Order of Operations
* avoid O^2 events
* Make sure that no damage processing happens on dead units
* Change some if statements
* Keep track of player's death to stop various things
* add quotes to right middle wheen
* Add VD documentation
* fire docs
* Code quality fixes
* Clarify documentation
* define IDD
* switch global -> server
* Add newline between header and first code statement
* stop the dead from suffering
Its hard to tell when a unit is dead or in spectator, so check the config of the unit to determine it.
* Add settings to disable cook-off effects
* Delete effects if vehicle is deleted before cookoff occurs. Don't cookoff player ammo. Throw weapon better
* Move fire into own PR
* fix tabs and macro
* Shuffle crew indices so that a random person is first on the list to be injured each time
* fix effects not clearing
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
* Add setting for cookoff to only run for player crewed vehicles
* No point having per vehicle selection
* Merging mutliple settings in to one
* Fixing missing comma
* Using LSTRING for settings
* merging suggested fixes
* Moving enabled check to fnc
* Use existing strings for CBA options
* Reverting change to support legacy eden attribute settings
* Adding Pabsts fix for 3den attribute
* Update addons/cookoff/CfgEden.hpp
Co-Authored-By: PabstMirror <pabstmirror@gmail.com>
* Improve cookoff setting UX
- Adds second eden attribute to boxes/vehicles to toggle the ammunition
cookoff itself
- Removes the cookoff toggle from boxes (they only care about ammunition
cookoff)
* Fix attribute default values
* Update incendiary box ignition code
* Cookoff - add function to get ammo
Fix#4565 - Function adds virtual ammo for rearm vehicles
Remove FUNC(secondaryExplosions) - which duplicatd detonateAmunition
Tweak timeBetweenAmmoDetonation calculation to use all ammo, not just
the current mag
Allow GVAR(enableAmmoCookoff) effect to work with GVAR(enable)=false
* Fix header
* Cleanup getting ammo from turrets
* Add Ammo cookoff
* Remove tabs
* Add initial ammo box cook-off
Does not include a fire effect, mostly just a proof of concept.
Should probably also add further potential cook-off conditons (if hit by tracer for example).
* Add burning effects to ammo box cook off
- Add burning effect while ammo box is cooking off
- Add setting to enable/disable ammo boxes cooking off
- Clear magazine cargo while box is burning
Currently the box will burn for 60 seconds hardcoded, this is to allow time for the ammunition to cook off (since boxes sink into the ground and dissapear when destroyed). Perhaps we can implement a way to burn until all ammo is expended.
* Improve ammo cookoff
* Integrate ammo cookoff with the incendiary grenade
* Disable ammo cook off underwater
* Optimize fnc_detonateAmmunition
I say optimize, the only real performance optimization is using `vectorMultiply`. The rest is readability optimization though!
* Improve ammo box cook off
- Remove unnecessary light source (fire particles provide lighting)
- Add randomness to cook off time
- Cook off begins with fire effect rather than smoke
* Add tracer induced ammo box cook off
Due to limitations in the way arma handles tracer rounds (there's no way to check if an individual projectile is a tracer), only magazines with a high enough tracer density (at least 1 in 4) can cause cook off this way. However this is deemed an acceptable approximation since the chance of this happening should be quite low anyway.
* Decrease amount of explosions from ammo cookoff
* Add is local check for remote event