ACE3/addons/overheating
Drofseh 99c85e3c12
Overheating - Fix issues from release (#8617)
* move overheating cookoff into separate function

* move heatCoef and require mission restart for setting change

- move heatCoef to a more sensible place
- require mission restart for heatCoef setting change (it gets cached per ammo type)

* add exit to ammo temp loop if cookoffCoef is changed to 0 mid-mission

- add exit to ammo temp loop if cookoffCoef is changed to 0 mid-mission, this prevents an issue where all weapon cookoff regardless of temp, because required temp gets multiplied by cookoffCoef which has been set to 0.

* file end new line

* update header for ace_overheating_fnc_cookoffWeapon

* use ambientTemperature as floor for weapon and ammo temp

* add coolingCoef setting

* improve feature documentation

* add fnc_cookoffWeapon to XEH_PREP

* add type of jam to ace_weaponJammed local event

- add type of jam to ace_weaponJammed local event
- fix #8637

* fix misspelling

Co-authored-by: TyroneMF <TyroneMF@hotmail.com>

* clear all weapon heat on death

* Update addons/overheating/functions/fnc_updateTemperature.sqf

Co-authored-by: GhostIsSpooky <69561145+Salluci@users.noreply.github.com>

* deprecate ace_overheating_fnc_getBarrelMass, cache weapon bolt and barrel mass values

- cache closed bolt value by moving config look up to ace_overheating_fnc_getWeaponData
- cache barrel mass value by moving calculation from ace_overheating_fnc_getBarrelMass to ace_overheating_fnc_getWeaponData
- deprecate ace_overheating_fnc_getBarrelMass to be a wrapper for ace_overheating_fnc_getWeaponData that only returns barrel mass

* add public functions to get and set weapon and ammo temperature

* add `canCoolWeaponWithItem` function, workaround for #8657

* Apply suggestions from code review

Co-authored-by: PabstMirror <pabstmirror@gmail.com>

* add coef setting for addition heat from suppressor

* Update fnc_overheat.sqf

* improve fnc_canCoolWeaponWithItem

* remove extra (

* Move canCoolWeaponWithItem action code to function

* Use hashmaps and reset on settings change

* Apply suggestions from code review

Co-authored-by: jonpas <jonpas33@gmail.com>

Co-authored-by: TyroneMF <TyroneMF@hotmail.com>
Co-authored-by: GhostIsSpooky <69561145+Salluci@users.noreply.github.com>
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
Co-authored-by: jonpas <jonpas33@gmail.com>
2021-11-08 12:06:31 -06:00
..
functions Overheating - Fix issues from release (#8617) 2021-11-08 12:06:31 -06:00
sounds Added weapon resting & weapon jam sounds 2015-02-01 11:11:51 +01:00
UI Overheating - Add cook off and rate of fire features and additional customization settings (#8064) 2021-10-14 10:47:52 -05:00
$PBOPREFIX$ CBAfy AGM_Overheating 2015-01-13 00:23:14 -03:00
ACE_Settings.hpp Overheating - Add cook off and rate of fire features and additional customization settings (#8064) 2021-10-14 10:47:52 -05:00
CfgEventHandlers.hpp Add SQFC support (#8235) 2021-09-03 19:08:34 -05:00
CfgMagazines.hpp Add spare barrel to VA in 1.64 (#4328) 2016-09-04 21:26:15 +02:00
CfgSounds.hpp Overheating - Add cook off and rate of fire features and additional customization settings (#8064) 2021-10-14 10:47:52 -05:00
CfgVehicles.hpp Overheating - Fix issues from release (#8617) 2021-11-08 12:06:31 -06:00
CfgWeapons.hpp Overheating - Fix invalid jamTypesAllowed arrays (#8560) 2021-10-18 19:05:40 -05:00
config.cpp General - Cleanup CfgPatches unit/weapon arrays (#8524) 2021-10-15 13:48:33 -05:00
initSettings.sqf Overheating - Fix issues from release (#8617) 2021-11-08 12:06:31 -06:00
README.md Update contribution documents (#8382) 2021-08-16 20:17:56 +01:00
script_component.hpp Overheating - Add cook off and rate of fire features and additional customization settings (#8064) 2021-10-14 10:47:52 -05:00
stringtable.xml Overheating - Fix issues from release (#8617) 2021-11-08 12:06:31 -06:00
XEH_postInit.sqf Overheating - Fix issues from release (#8617) 2021-11-08 12:06:31 -06:00
XEH_preInit.sqf General - Move to CBA Settings (#8461) 2021-10-11 15:48:30 -05:00
XEH_PREP.hpp Overheating - Fix issues from release (#8617) 2021-11-08 12:06:31 -06:00
XEH_preStart.sqf precompile on game start 2016-02-22 15:20:36 +01:00

ace_overheating

Introduces weapon overheating and jamming, as well as the ability to swap the barrel on some weapons.