2619 {
2621 {
2623
2625 {
2626 string quantityConfigPath = string.Format("CfgVehicles %1 varQuantityMax", fireConsumableType.GetItemType().ToString());
2627 string stackMaxConfigPath = string.Format("CfgSlots Slot_%1 stackMax", fireConsumableType.GetAttSlot());
2628 if (
GetGame().ConfigIsExisting(quantityConfigPath))
2629 {
2631 }
2632
2633 if (
GetGame().ConfigIsExisting(stackMaxConfigPath))
2634 {
2636 }
2637
2638
2639
2640
2641 if (stackMax > 0)
2642 {
2644 }
2645 else
2646 {
2648 }
2649 }
2650
2651
2652
2653 }
2654 }
static ref map< typename, ref FireConsumableType > m_FireConsumableTypes
proto native float ConfigGetFloat(string path)
Get float value from config on path.
proto native CGame GetGame()