ThreeAmigosModding / TAM_BetterRadioAnims

Improved radio anims with support for rp-emotes and scully emotes
GNU General Public License v3.0
24 stars 11 forks source link

Multiple Drawables & Prop support #9

Open ShiftyWreckzz opened 2 months ago

ShiftyWreckzz commented 2 months ago

I've tested this quite extensively and haven't run into any issues at the time of this pull request.

In depth example for the config:

config.chestAnim = {
    enable = true,
    drawables = {
        {
            drawable = 1,  -- Drawable ID
            male = {
                variations = {107}, -- Clothing Variations (one number back in Vmenu ie. 2 = 1)
                textures = {
                    {3}, -- Clothing Variation texture IDs
                }
            },
            female = {
                variations = {107}, -- Clothing Variations (one number back in Vmenu ie. 2 = 1)
                textures = {
                    {3}, -- Clothing Variation texture IDs
                }
            }
        },
        {
            drawable = 5,
            male = {
                variations = {21, 68, 111, 112, 113, 114, 115, 116, 117, 118, 119},
                textures = {
                    {2},
                    {0},
                    {0, 1, 2, 3},
                    {0, 1, 2, 3},
                    {0, 1, 2, 3, 4, 5, 6, 7},
                    {0, 1, 2, 3},
                    {0, 1, 2, 3},
                    {0, 1, 2, 3},
                    {0, 1, 2, 3, 4, 5, 6, 7},
                    {0, 1, 2, 3},
                    {0, 1, 2, 3},
                }
            },
            female = {
                variations = {21},
                textures = {
                    {2},
                }
            }
        },
        {
            drawable = 9,
            male = {
                variations = {7, 8, 14, 16, 37, 60, 62, 63, 64},
                textures = {
                    {0},
                    {0},
                    {0},
                    {1, 2},
                    {0},
                    {0, 1, 2, 3, 4, 5, 6, 7, 8},
                    {0, 1, 2, 3, 4, 5},
                    {0, 1, 2, 3, 4, 5},
                    {0, 1, 2, 3, 4, 5},
                }
            },
            female = {
                variations = {7, 14, 15, 16, 18, 55, 59, 60, 61, 62, 63, 64},
                textures = {
                    {0},
                    {0},
                    {0},
                    {0},
                    {1, 2},
                    {0},
                    {0, 1, 2, 3, 4, 5},
                    {0, 1, 2, 3, 4, 5},
                    {0, 1, 2, 3, 4, 5, 6, 7},
                    {0, 1, 2, 3, 4, 5},
                    {0, 1, 2, 3, 4, 5},
                    {0, 1, 2, 3},
                }
            }
        },

    },
    emote = "radiochest"
}