См. определение в файле AmmunitionPiles.c строка 6
7 {
9 {
11 }
12 else
13 {
14 float ammoWeight;
15 string ammoTypeName;
16 g_Game.ConfigGetText(
string.Format(
"CfgAmmo %1 spawnPileType", bulletType) , ammoTypeName);
17 if (ammoTypeName)
18 ammoWeight =
g_Game.ConfigGetFloat(
string.Format(
"CfgMagazines %1 weight", ammoTypeName));
19 else
20 ErrorEx(
"empty 'spawnPileType' for bullet type:" + bulletType);
21 if (ammoWeight)
23 return ammoWeight;
24 }
25 }
static ref map< string, float > m_AmmoWeightByBulletType
Перекрестные ссылки ErrorEx, g_Game и m_AmmoWeightByBulletType.
Используется в Weapon::GetWeightSpecialized().