Closed kaloczikvn closed 3 years ago
I create a table containing all the the players weapons called weapons then compare Weapons[3].name:match("/U_.+"):sub(4)
to bagTable self.bagsTable = {"Medkit","Ammobag"}
. If it returns true the bag goes in WeaponSlot.WeaponSlot_4, if not their gadget goes in WeaponSlot.WeaponSlot_3.
Fixed in 281f7ae073e44d264ce85b9d363c2f39cf3d6388
See Randomizer mod for better solution