2602 {
2604 {
2606
2608 {
2609 string quantityConfigPath = string.Format("CfgVehicles %1 varQuantityMax", fireConsumableType.GetItemType().ToString());
2610 string stackMaxConfigPath = string.Format("CfgSlots Slot_%1 stackMax", fireConsumableType.GetAttSlot());
2611 if (
GetGame().ConfigIsExisting(quantityConfigPath))
2612 {
2614 }
2615
2616 if (
GetGame().ConfigIsExisting(stackMaxConfigPath))
2617 {
2619 }
2620
2621
2622
2623
2624 if (stackMax > 0)
2625 {
2627 }
2628 else
2629 {
2631 }
2632 }
2633
2634
2635
2636 }
2637 }
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()