2621 {
2623 {
2625
2627 {
2628 string quantityConfigPath = string.Format("CfgVehicles %1 varQuantityMax", fireConsumableType.GetItemType().ToString());
2629 string stackMaxConfigPath = string.Format("CfgSlots Slot_%1 stackMax", fireConsumableType.GetAttSlot());
2630 if (
g_Game.ConfigIsExisting(quantityConfigPath))
2631 {
2633 }
2634
2635 if (
g_Game.ConfigIsExisting(stackMaxConfigPath))
2636 {
2637 float stackMax =
g_Game.ConfigGetFloat(stackMaxConfigPath);
2638 }
2639
2640
2641
2642
2643 if (stackMax > 0)
2644 {
2646 }
2647 else
2648 {
2650 }
2651 }
2652
2653
2654
2655 }
2656 }
static ref map< typename, ref FireConsumableType > m_FireConsumableTypes