splewis / csgo-multi-1v1

CS:GO Sourcemod plugin to create multi-1v1 arena servers
GNU General Public License v3.0
278 stars 68 forks source link

How to add new weapon type? #271

Closed tydaytygx closed 3 years ago

tydaytygx commented 3 years ago

If making a feature request, you should delete all the pre-filled text here. If reporting a bug, fill in the following sections:

Expected behavior

add smgs heavy nades weapon types as choices for player

Actual behavior

I add the smgs in config but it doesn't work

multi1v1_weapons.cfg

"SMGS"
        {
                "weapon_mac10"
                {
                        "name"          "MAC10"
                        "team"          "T"
                }

                "weapon_ump45"
                {
                        "name"          "ump45"
                        "team"          "ANY"
                }

                "weapon_p90"
                {
                        "name"          "P90"
                        "team"          "ANY"
                }

                "weapon_mp5sd"
                {
                        "name"          "MPSD"
                        "team"          "ANY"
                }

                "weapon_mp9"
                {
                        "name"          "MP9"
                        "team"          "CT"
                }

                "weapon_mp7"
                {
                        "name"          "MP7"
                        "team"          "ANY"
                }

                "weapon_bizon"
                {
                        "name"          "BIZON"
                        "team"          "ANY"
                }
        }

Steps to reproduce

Please note that "latest" is NOT a version! Run "sm plugins" in console to find out the exact plugin version.

splewis commented 3 years ago

The weapons.cfg file only lets you modify the weapons for the builtin rifle & pistol round types.

To add a SMG round type where you can pick preferred weapons, you'd have to write it from another plugin: https://github.com/splewis/csgo-multi-1v1#adding-round-types-via-another-plugin

tydaytygx commented 3 years ago

Thanks

The weapons.cfg file only lets you modify the weapons for the builtin rifle & pistol round types.

To add a SMG round type where you can pick preferred weapons, you'd have to write it from another plugin: https://github.com/splewis/csgo-multi-1v1#adding-round-types-via-another-plugin

Thanks :)