mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
21 lines
454 B
Plaintext
21 lines
454 B
Plaintext
|
#include "script_component.hpp"
|
||
|
/*
|
||
|
* Author: mharis001, Glowbal, PabstMirror, drofseh
|
||
|
* Get the mass of the weapons barrel.
|
||
|
*
|
||
|
* Arguments:
|
||
|
* 0: Weapon <STRING>
|
||
|
*
|
||
|
* Return Value:
|
||
|
* Barrel Mass <NUMBER>
|
||
|
*
|
||
|
* 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;
|