kaloczikvn / kPM

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

Weaponslot issues #5

Closed kaloczikvn closed 3 years ago

kaloczikvn commented 3 years ago

LoadoutManager.lua - from line 94.

self.m_PlayerLoadouts[p_Player.id] = {
    Class = p_Data["class"],
    Weapons = {
        ResourceManager:SearchForDataContainer(p_Data["primary"]["Vext"]),
        ResourceManager:SearchForDataContainer(p_Data["secondary"]["Vext"]),
        ResourceManager:SearchForDataContainer(p_Data["tactical"]["Vext"]),
        ResourceManager:SearchForDataContainer(p_Data["lethal"]["Vext"]),
        ResourceManager:SearchForDataContainer("Weapons/Knife/U_Knife")
    },
    Attachments = {
        ResourceManager:SearchForDataContainer(p_Data["primaryAttachments"]["Sights"]["Vext"]),
        ResourceManager:SearchForDataContainer(p_Data["primaryAttachments"]["Primary"]["Vext"]),
        ResourceManager:SearchForDataContainer(p_Data["primaryAttachments"]["Secondary"]["Vext"])
    }
}

Every weapons should correspond to the corrent WeaponSlot.

It works for now but you can only select some weapons using the scroll wheel.

kaloczikvn commented 3 years ago

Fixed in 71fffdf3bd62b03d718826c419ab344c079d9ea3