Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addon Weapons are not included in Loadouts #449

Open
blackfirefly000 opened this issue Oct 3, 2024 · 0 comments
Open

Addon Weapons are not included in Loadouts #449

blackfirefly000 opened this issue Oct 3, 2024 · 0 comments

Comments

@blackfirefly000
Copy link
Contributor

After writing the Addon Weapons menu under weapon options, I realized they're not spawnable using the Weapon Loadouts. I opened up the Weapon Loadouts.cs and idk wtf is going on there. If the addon weapons could be added so that they're spawnable with the loadouts, that would be pretty cool. I guessing it has to do with this code, but this is above my coding ability:

{
    var handle = StartFindKvp("vmenu_string_saved_weapon_loadout_");
    var saves = new Dictionary<string, List<ValidWeapon>>();
    while (true)
    {
        var kvp = FindKvp(handle);
        if (string.IsNullOrEmpty(kvp))
        {
            break;
        }
        saves.Add(kvp, JsonConvert.DeserializeObject<List<ValidWeapon>>(GetResourceKvpString(kvp)));
    }
    EndFindKvp(handle);
    return saves;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant