* 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
* Cookoff: Add ability to disable fire jet effect for vehicles it doesn't make sense on
* Cookoff: Fixed pressure jet sound playing when both jet and ring effects are disabled
* Adds heating effect to cookoff
Makes tanks that cook-off actually heat up on IR.
* Adds cbaEvent 'setTIPars'
* Adds CBAEvent call in cookOff.sqf
* Spaces out line. Adds proper event heading.
* Moves TI event to cookOffEffect.sqf;
* Update addons/cookoff/functions/fnc_cookOffEffect.sqf
Co-authored-by: pterolatypus <pterolatypus@users.noreply.github.com>
* Changes global event for TI pars to local command
* Reverts file to before previous commits in PR.
* Update addons/cookoff/functions/fnc_cookOffEffect.sqf
Co-authored-by: Filip Maciejewski <veteran29@users.noreply.github.com>
* Update addons/cookoff/functions/fnc_cookOffEffect.sqf
Co-authored-by: Filip Maciejewski <veteran29@users.noreply.github.com>
* Update addons/cookoff/XEH_postInit.sqf
Co-authored-by: Filip Maciejewski <veteran29@users.noreply.github.com>
* ti params and add comments to formula
Co-authored-by: pterolatypus <pterolatypus@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
Co-authored-by: Filip Maciejewski <veteran29@users.noreply.github.com>
* 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>
* Fix ammo box cook off when setting is Players only
* Update addons/cookoff/functions/fnc_handleDamage.sqf
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>
* abc
* Revert "abc"
This reverts commit bcb4214bd9.
* Update to current commit
* ShotShell requires velocity to simulate itself, so always spawn it with velocity
* 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
* Added cookoff probability for vehicles. Tweaks to cookoff to stop total blocking of destruction in some cases.
* Changed var name to probability. Better method for getting config value.
* Fixed naming error
* Changed setting to be a global coefficient. Added some info to cookoff doc
* Reverted hitfuel check
* Reverted damage threshold for cook-off
* Tweaked probability calculation
* Update fnc_handleDamage.sqf
* Everything
* Fixed missing ;
* Fix missing ; and double private
* Fixed cannot isNull on number
* Turn _temparture back to isNil
* Fix error from merge
* Fix the issue that SFX variants are not global what means that different players can get different pressure Cookoff sounds
to prevent that i split up the sounds in 3 types and used a Weighted select to have the befor used values back
* add todo for 1.74
* inherit in CfgSFX from 1 class
Randomness would be calculated on every machine, but only vehicle explosion and sound are done by the server. Smoke, light and fire sfx are done by each client.
* 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
Not all explosives detonate on destruction, so their ammo config must be checked to see if they will.
ACE_Explosives adds a property to define the associated ammo which *will* detonate on destruction, which is used if present. Otherwise a generic small explosion happens.
* no message
* Header.
* Typo.
* Less code.
* New getPos syntax.
* leaveVehicle seems to work.
* Removed the second waypoint.
* Clear previous waypoints.
* Run away waypoint before others.
* Use arr select code
* Revert select. Use doMove.
* 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