ACE3/addons
Glowbal 059980b1a5 Add ammo cookoff (#4376)
* 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
2016-10-06 22:37:38 +02:00
..
advanced_ballistics convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
advanced_fatigue convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
advanced_throwing convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
ai convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
aircraft convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
apl convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
atragmx convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
attach convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
backpacks convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
ballistics convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
captives convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
cargo convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
chemlights convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
common Functions to perform arithmetic ops on sets (#4514) 2016-10-06 10:18:14 +02:00
concertina_wire convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
cookoff Add ammo cookoff (#4376) 2016-10-06 22:37:38 +02:00
dagr convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
disarming convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
disposable convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
dogtags convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
dragging convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
explosives convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
fastroping convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
fcs convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
finger convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
flashlights convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
flashsuppressors convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
fonts convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
frag convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
gestures convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
gforces convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
goggles convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
grenades Add ammo cookoff (#4376) 2016-10-06 22:37:38 +02:00
gunbag convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
hearing convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
hitreactions convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
huntir convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
interact_menu convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
interaction convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
inventory convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
javelin convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
kestrel4500 convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
laser convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
laser_selfdesignate convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
laserpointer convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
logistics_uavbattery convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
logistics_wirecutter convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
magazinerepack convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
main convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
map convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
map_gestures convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
maptools convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
markers convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
medical convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
medical_ai convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
medical_blood convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
medical_menu convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
microdagr convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
minedetector convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
missileguidance convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
missionmodules convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
mk6mortar convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
modules convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
movement convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
mx2a convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
nametags convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
nightvision convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
noidle convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
noradio convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
norearm convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
optics convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
optionsmenu convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
overheating convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
overpressure convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
parachute convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
rangecard convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
realisticnames convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
realisticweights convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
rearm convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
recoil convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
refuel convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
reload convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
reloadlaunchers convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
repair convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
respawn convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
safemode convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
sandbag convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
scopes convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
slideshow convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
smallarms convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
spectator convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
spottingscope convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
switchunits convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
tacticalladder convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
tagging convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
thermals convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
trenches convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
tripod convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
ui convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
vector convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
vehiclelock convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
vehicles convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
viewdistance convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
weaponselect convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
weather convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
winddeflection convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
yardage450 convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00
zeus convert log macros to cba versions (#4282) 2016-10-02 12:55:31 +02:00