kaloczikvn / kPM

Promod for Venice Unleashed
https://community.veniceunleashed.net/t/promod-the-competetive-bf3-experience/1143
10 stars 2 forks source link

Ammo and medic bags in wrong slot #29

Closed kaloczikvn closed 3 years ago

kaloczikvn commented 3 years ago

See Randomizer mod for better solution

Simber1 commented 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.

https://github.com/Simber1/VU-Randomizer/blob/eac67e07bfdc480eed525b521cf1e853325d1998/ext/server/__init__.lua#L125

kaloczikvn commented 3 years ago

Fixed in 281f7ae073e44d264ce85b9d363c2f39cf3d6388