Summary
This is an unofficial hotfix for the ACE Overheating Dev mod.
Description
Description
This is an unofficial hotfix for the ACE Overheating Dev mod. I noticed a critical bug where the barrel temperature would never decrease for specific weapons (e.g., some weapons from CapsWeaponPacks), causing them to remain permanently overheated.
Technical Details & Root Cause
After investigating, the issue appears to stem from the game engine's GetBarrelSurfaceArea() method. It seems that this method fails to return a valid surface area value when the gun's barrel is completely enclosed by the handguard. As a result, the cooling calculation breaks for these specific weapon models.
The Fix
I have modified the script to implement hardcoded default values for the cooling logic. This ensures that even if the engine returns an invalid surface area, the weapon will still cool down properly over time.
Credits
Original Mod: ACE Overheating Dev
This is a personal fix/patch. All credits for the original code belong to the ACE team.
License
Arma Public License (APL)