#include "script_component.hpp" /* * Author: mharis001, Glowbal, PabstMirror, drofseh * Get the mass of the weapons barrel. * * Arguments: * 0: Weapon * * Return Value: * Barrel Mass * * Example: * [currentWeapon ACE_player] call ace_overheating_fnc_getBarrelMass * * Public: No */ params ["_weapon"]; METAL_MASS_RATIO * (getNumber (configFile >> "CfgWeapons" >> _weapon >> "WeaponSlotsInfo" >> "mass") / 22.0) max 1.0;