local Bone = {}

local MPMaleBoneIndex = {
    Beard_CP_C = 415,
    Beard_CP_L = 412,
    Beard_CP_R = 414,
    Beard_LookAt = 145,
    Beard_root = 407,
    Beard_rot = 408,
    Beard_rot_C = 410,
    Beard_rot_L = 411,
    Beard_rot_R = 413,
    Beard_Skin = 146,
    Beard_target = 409,
    CH_L_Hand = 238,
    CH_R_Hand = 336,
    CP_Back = 418,
    CP_BeltBack = 537,
    CP_BeltFront = 538,
    CP_Chest = 419,
    CP_L_Belt = 539,
    CP_L_Forearm = 257,
    CP_L_Shoulder = 286,
    CP_L_Thigh = 27,
    CP_L_UpperArm = 276,
    CP_L_WaistOuter = 527,
    CP_NeckBack = 185,
    CP_R_Belt = 540,
    CP_R_Forearm = 356,
    CP_R_ManeGrip = 422,
    CP_R_Shoulder = 386,
    CP_R_Thigh = 59,
    CP_R_UpperArm = 375,
    CP_R_WaistOuter = 528,
    ES_SatchelRoot = 79,
    Glasses_Rig_Bones = 172,
    Grp_L_Thigh = 650,
    Grp_R_Thigh = 668,
    HairScale_B = 157,
    HairScale_B_Ramp = 161,
    HairScale_F = 156,
    HairScale_F_Ramp = 164,
    HairScale_L = 158,
    HairScale_L_Ramp = 162,
    HairScale_loc = 155,
    HairScale_R = 159,
    HairScale_R_Ramp = 163,
    HairScale_T = 160,
    Hat_Loc = 147,
    hlp_L_ElbowCompression01 = 274,
    hlp_L_ElbowCompression02 = 256,
    hlp_L_KneeCompression01 = 25,
    hlp_L_KneeCompression02 = 22,
    hlp_R_ElbowCompression01 = 373,
    hlp_R_ElbowCompression2 = 355,
    hlp_R_KneeCompression01 = 57,
    hlp_R_KneeCompression02 = 54,
    IK_L_Foot = 9,
    IK_L_Hand = 236,
    IK_R_Foot = 40,
    IK_R_Hand = 334,
    Jckt_Inflate = 610,
    Jckt_L_Draw = 606,
    Jckt_L_Open = 607,
    Jckt_R_Draw = 608,
    Jckt_R_Open = 609,
    MB_R_Tricep = 329,
    ME_L_Deltoid = 270,
    ME_L_Latissimus = 269,
    ME_L_Pectoral = 271,
    ME_L_Trapezius = 280,
    ME_R_Deltoid = 368,
    ME_R_Latissimus = 369,
    ME_R_Pectoral = 370,
    ME_R_Trapezius = 379,
    MH_Belt_Back = 87,
    MH_Belt_Back_Root = 86,
    MH_Belt_C_Buckle = 89,
    MH_Belt_C_Buckle_Root = 88,
    MH_Belt_L_Buckle = 125,
    MH_Belt_L_Buckle_Root = 124,
    MH_Belt_L_ThighVal = 90,
    MH_Belt_LB = 92,
    MH_Belt_LB_Root = 91,
    MH_Belt_LF_High = 100,
    MH_Belt_LF_High_Root = 99,
    MH_Belt_LF_Low = 104,
    MH_Belt_LF_Low_Root = 103,
    MH_Belt_LS = 94,
    MH_Belt_LS_Cup = 95,
    MH_Belt_LS_Root = 93,
    MH_Belt_R_Buckle = 123,
    MH_Belt_R_Buckle_Root = 122,
    MH_Belt_R_ThighVal = 105,
    MH_Belt_RB = 115,
    MH_Belt_RB_Root = 114,
    MH_Belt_RF_High = 117,
    MH_Belt_RF_High_Root = 116,
    MH_Belt_RF_Low = 119,
    MH_Belt_RF_Low_Root = 118,
    MH_Belt_RS = 107,
    MH_Belt_RS_Cup = 108,
    MH_Belt_RS_Root = 106,
    MH_BeltRoot = 85,
    MH_brimBackBoneOrigin = 151,
    MH_Chest = 432,
    MH_Collar_Back00 = 192,
    MH_Collar_Front00 = 193,
    MH_Collar_Left00 = 195,
    MH_Collar_Right00 = 194,
    MH_Collar_Root = 191,
    MH_CollarGrab = 442,
    MH_CollarGrab_Expr = 441,
    MH_CollarGrabGRP = 440,
    MH_Gore_L_Calf00 = 28,
    MH_Gore_L_Foot00 = 23,
    MH_Gore_L_Forearm00 = 278,
    MH_Gore_L_Hand = 259,
    MH_Gore_L_Thigh = 65,
    MH_Gore_L_UpperArm = 287,
    MH_Gore_R_Calf00 = 60,
    MH_Gore_R_Foot00 = 55,
    MH_Gore_R_Forearm00 = 377,
    MH_Gore_R_Hand = 358,
    MH_Gore_R_Thigh = 68,
    MH_Gore_R_UpperArm = 387,
    MH_HighCollarRear = 454,
    MH_Jacket01 = 541,
    MH_Jacket02 = 510,
    MH_JacketTail = 547,
    MH_L_Aim = 651,
    MH_L_BackFlap = 556,
    MH_L_BackFlapRoot = 555,
    MH_L_chinRef = 169,
    MH_L_CollarLtWtJ = 435,
    MH_L_Deltoid = 285,
    MH_L_Draw = 564,
    MH_L_Elbow = 272,
    MH_L_ElbowCompression = 275,
    MH_L_Finger01 = 234,
    MH_L_Finger01Bulge = 235,
    MH_L_Finger01Top = 240,
    MH_L_Finger11 = 228,
    MH_L_Finger21 = 221,
    MH_L_Finger31 = 214,
    MH_L_Finger41 = 206,
    MH_L_FingerCrease_010 = 229,
    MH_L_FingerCrease_020 = 222,
    MH_L_FingerCrease_030 = 215,
    MH_L_FingerCrease_040 = 207,
    MH_L_FrontCalf = 660,
    MH_L_FrontFlap_Lift = 565,
    MH_L_FrontLeg = 652,
    MH_L_FrontLegCenter = 653,
    MH_L_FrontLegCenter_SPR = 654,
    MH_L_FrontLegCurve = 655,
    MH_L_FrontLegCurve2 = 658,
    MH_L_FrontLegCurve2_SPR = 659,
    MH_L_FrontLegCurve_SPR = 656,
    MH_L_FrontLegCurve_SPR2 = 657,
    MH_L_HandSide = 208,
    MH_L_HighCollarFront = 449,
    MH_L_HighCollarRear = 448,
    MH_L_HighCollarRearSpread = 456,
    MH_L_InitialPosition = 644,
    MH_L_Jacket_02 = 512,
    MH_L_Jacket_03 = 434,
    MH_L_JacketTail = 554,
    MH_L_KneeBack = 16,
    MH_L_KneeCompression = 26,
    MH_L_Knuckle_10 = 230,
    MH_L_Knuckle_20 = 223,
    MH_L_Knuckle_30 = 216,
    MH_L_Knuckle_40 = 209,
    MH_L_Latissimus = 498,
    MH_L_Open0 = 563,
    MH_L_Open1 = 511,
    MH_L_Open2 = 433,
    MH_L_PalmCrease = 241,
    MH_L_Pectoral = 477,
    MH_L_RearLeg = 680,
    MH_L_RearLegCalf_Spr = 682,
    MH_L_RearLegCenter = 745,
    MH_L_RearLegCenter_Root = 645,
    MH_L_RearLegCenter_SPR = 646,
    MH_L_rearLegCurl = 647,
    MH_L_rearLegCurl_SPR = 648,
    MH_L_rearLegCurl_SPR2 = 649,
    MH_L_Scarf = 405,
    MH_L_SideFlap = 570,
    MH_L_SideFlapRoot = 569,
    MH_L_SleeveScale01 = 261,
    MH_L_SleeveScale02 = 262,
    MH_L_SleeveScaleSpring = 260,
    MH_L_Trapezius = 189,
    MH_L_Waist = 678,
    MH_L_WinterCollar_Spr = 196,
    MH_L_Wrist = 258,
    MH_L_WristVolumeTarget = 266,
    MH_MaskChinDown = 400,
    MH_R_Aim = 669,
    MH_R_BackFlap = 550,
    MH_R_BackFlapRoot = 549,
    MH_R_chinRef = 170,
    MH_R_CollarLtWtJ = 438,
    MH_R_Deltoid = 385,
    MH_R_Draw = 574,
    MH_R_Elbow = 371,
    MH_R_ElbowCompression = 374,
    MH_R_Finger01 = 303,
    MH_R_Finger01Bulge = 304,
    MH_R_Finger01Top = 339,
    MH_R_Finger11 = 309,
    MH_R_Finger21 = 316,
    MH_R_Finger31 = 323,
    MH_R_Finger41 = 330,
    MH_R_FingerCrease_010 = 310,
    MH_R_FingerCrease_020 = 317,
    MH_R_FingerCrease_030 = 324,
    MH_R_FingerCrease_040 = 331,
    MH_R_FingerTendon_40 = 70,
    MH_R_FrontCalf = 676,
    MH_R_FrontFlap_Lift = 575,
    MH_R_FrontLeg = 670,
    MH_R_FrontLegCenter = 671,
    MH_R_FrontLegCenter_SPR = 672,
    MH_R_FrontLegCurve = 673,
    MH_R_FrontLegCurve_SPR = 674,
    MH_R_FrontLegCurve_SPR2 = 675,
    MH_R_HandSide = 332,
    MH_R_HighCollarFront = 452,
    MH_R_HighCollarRear = 451,
    MH_R_HighCollarRearSpread = 455,
    MH_R_InitialPosition = 667,
    MH_R_Jacket_02 = 514,
    MH_R_Jacket_03 = 437,
    MH_R_JacketTail = 548,
    MH_R_KneeBack = 47,
    MH_R_KneeCompression = 58,
    MH_R_Knuckle_10 = 311,
    MH_R_Knuckle_20 = 318,
    MH_R_Knuckle_30 = 325,
    MH_R_Knuckle_40 = 333,
    MH_R_Latissimus = 496,
    MH_R_Open0 = 573,
    MH_R_Open1 = 513,
    MH_R_Open2 = 436,
    MH_R_PalmCrease = 340,
    MH_R_Pectoral = 475,
    MH_R_RearLeg = 684,
    MH_R_RearLegCalf_Spr = 686,
    MH_R_RearLegCenter_Root = 662,
    MH_R_RearLegCenter_SPR = 663,
    MH_R_RearLegCurve = 664,
    MH_R_RearLegCurve_SPR = 665,
    MH_R_RearLegCurve_SPR2 = 666,
    MH_R_Scarf = 406,
    MH_R_Scarf2 = 404,
    MH_R_SideFlap = 580,
    MH_R_SideFlapRoot = 579,
    MH_R_SleeveScale01 = 365,
    MH_R_SleeveScale02 = 364,
    MH_R_SleeveScaleSpring = 363,
    MH_R_Trapezius = 187,
    MH_R_Waist = 679,
    MH_R_WinterCollar_Spr = 197,
    MH_R_Wrist = 357,
    MH_R_WristVolumeTarget = 362,
    MH_RearBrimLiftTarget = 152,
    MH_RearJacket003 = 439,
    MH_RearJacket01 = 546,
    MH_RearJacket02 = 509,
    MH_RearLegs = 692,
    MH_RearLegsCalf_Spr = 694,
    MH_Scarf = 399,
    MH_ScarfBase = 398,
    MH_ScarfOffset = 397,
    MH_ScarfRot = 403,
    MH_ScarfScale = 402,
    MH_ShoulderDistance = 431,
    MP_L_Deltoid = 281,
    MP_L_Latissimus = 501,
    MP_L_Pectoral = 473,
    MP_L_Trapezius = 141,
    MP_R_Deltoid = 380,
    MP_R_Latissimus = 500,
    MP_R_Pectoral = 472,
    MP_R_Trapezius = 140,
    MS_L_Deltoid = 284,
    MS_L_Latissimus = 497,
    MS_L_Pectoral = 476,
    MS_L_Trapezius = 188,
    MS_R_Deltoid = 384,
    MS_R_Latissimus = 495,
    MS_R_Pectoral = 474,
    MS_R_Trapezius = 186,
    OH_Clavicles = 427,
    OH_FacingDir = 592,
    OH_Head = 166,
    OH_Incline = 598,
    OH_IndependentMover = 593,
    OH_L_Arm_Twist = 277,
    OH_L_Clavicle = 426,
    OH_L_Foot = 10,
    OH_L_Hand = 237,
    OH_LookDir = 165,
    OH_Mover = 595,
    OH_Neck = 190,
    OH_Pelvis = 596,
    OH_Pelvis_Recoil = 600,
    OH_R_Arm_Twist = 376,
    OH_R_Clavicle = 425,
    OH_R_Foot = 41,
    OH_R_Hand = 335,
    OH_Spine00 = 421,
    OH_Spine01 = 420,
    OH_TorsoDir = 597,
    OH_UpperFixup = 594,
    PH_BackChain = 128,
    PH_Belt_Front = 76,
    PH_Belt_Melee = 129,
    PH_Belt_Rear = 75,
    PH_Belt_Thrower = 74,
    PH_Bow = 428,
    PH_Bow_Alt1 = 492,
    PH_Bow_Alt1_Support = 490,
    PH_Bow_Alt1Target = 491,
    PH_Bow_Support = 488,
    PH_BowInverted_TargetAlt = 605,
    PH_BowTarget = 489,
    PH_ChainParent = 126,
    PH_ChinIP = 463,
    PH_FrontChain = 127,
    PH_Glass_Ears_Pivot = 173,
    PH_Glass_Nose_Pivot_Root = 174,
    PH_Glass_Nose_Pivot_Skin = 175,
    PH_Glass_Nose_UpNode = 181,
    PH_GroundReference = 599,
    PH_Hat_loc = 150,
    PH_Hat_Loc = 150,
    PH_Hat_Rotateloc = 153,
    PH_Head = 167,
    PH_HeadProp = 168,
    PH_L_AnkleDist = 14,
    PH_L_AnkleDist02 = 690,
    PH_L_ArmPit = 482,
    PH_L_ArmPitBow = 485,
    PH_L_ArmPitRifle = 484,
    PH_L_Breast = 502,
    PH_L_CarriableShoulder = 294,
    PH_L_ChinIP = 462,
    PH_L_Foot = 11,
    PH_L_Hand = 251,
    PH_L_HandStrap_00 = 242,
    PH_L_HandStrap_01 = 243,
    PH_L_HandStrap_02 = 244,
    PH_L_HandStrap_03 = 245,
    PH_L_HandStrap_04 = 246,
    PH_L_HandStrap_05 = 247,
    PH_L_HandStrap_06 = 248,
    PH_L_HandStrap_07 = 249,
    PH_L_HandStrap_08 = 250,
    PH_L_Heel = 12,
    PH_L_Hip = 97,
    PH_L_KneeTarget = 583,
    PH_L_LegUpTarget001 = 542,
    PH_L_LegUpTargetSide = 543,
    PH_L_ObjectSpacePHBone = 601,
    PH_L_RearLegCalf_Spr = 681,
    PH_L_ShoulderReach = 295,
    PH_L_SpinePosition = 585,
    PH_Lantern = 80,
    PH_MinerLight = 154,
    PH_R_AnkleDist = 45,
    PH_R_AnkleDist02 = 691,
    PH_R_ArmPit = 483,
    PH_R_Boot = 49,
    PH_R_Breast = 503,
    PH_R_CarriableShoulder = 388,
    PH_R_ChinIP = 461,
    PH_R_Foot = 42,
    PH_R_Hand = 350,
    PH_R_HandStrap_00 = 341,
    PH_R_HandStrap_01 = 342,
    PH_R_HandStrap_02 = 343,
    PH_R_HandStrap_03 = 344,
    PH_R_HandStrap_04 = 345,
    PH_R_HandStrap_05 = 346,
    PH_R_HandStrap_06 = 347,
    PH_R_HandStrap_07 = 348,
    PH_R_HandStrap_08 = 349,
    PH_R_Heel = 43,
    PH_R_Hip = 110,
    PH_R_KneeTarget = 584,
    PH_R_LegUpTarget001 = 544,
    PH_R_LegUpTargetSide = 545,
    PH_R_ObjectSpacePHBone = 602,
    PH_R_RearLegCalf_Spr = 685,
    PH_R_Shoulder = 381,
    PH_R_ShoulderReach = 389,
    PH_R_SpinePosition = 586,
    PH_RearLegsCalf_Spr = 693,
    PH_Rifle = 430,
    PH_RifleInverted = 494,
    PH_RifleInverted_Alt1 = 487,
    PH_RifleInverted_Target = 604,
    PH_RifleInverted_TargetAlt = 603,
    PH_RifleSupport = 493,
    PH_RifleSupport_Alt1 = 486,
    PH_Satchel = 78,
    PH_SpineLevel00 = 416,
    PH_SpineLevel01 = 417,
    RB_L_ArmRoll = 267,
    RB_L_BumRoll = 69,
    RB_L_ForeArmRoll = 253,
    RB_L_KneeFront = 15,
    RB_L_ThighRoll = 61,
    RB_L_Wrist01 = 265,
    RB_L_Wrist02 = 263,
    RB_L_Wrist03 = 264,
    RB_R_ArmRoll = 366,
    RB_R_BumRoll = 71,
    RB_R_ForeArmRoll = 352,
    RB_R_KneeFront = 46,
    RB_R_ThighRoll = 66,
    RB_R_Wrist01 = 361,
    RB_R_Wrist02 = 360,
    RB_R_Wrist03 = 359,
    RB_Satchel = 77,
    RH_Hat_loc = 148,
    RZ_Hat_loc = 149,
    SC_Front = 587,
    SC_R_Belt = 588,
    SC_R_Holster = 590,
    SCALE_Back = 392,
    SCALE_L_ArmRoll = 268,
    SCALE_L_BumRoll = 70,
    SCALE_L_Calf = 17,
    SCALE_L_Clavicle = 279,
    SCALE_L_Foot = 8,
    SCALE_L_Forearm = 255,
    SCALE_L_ForeArmRoll = 254,
    SCALE_L_Thigh = 24,
    SCALE_L_ThighRoll = 62,
    SCALE_L_UpperArm = 273,
    SCALE_Neck0 = 139,
    SCALE_Neck1 = 184,
    SCALE_Neck2 = 183,
    SCALE_Pelvis = 73,
    SCALE_Pelvis_Back = 81,
    SCALE_R_ArmRoll = 367,
    SCALE_R_BumRoll = 72,
    SCALE_R_Calf = 48,
    SCALE_R_Clavicle = 378,
    SCALE_R_Foot = 39,
    SCALE_R_Forearm = 354,
    SCALE_R_ForeArmRoll = 353,
    SCALE_R_Thigh = 56,
    SCALE_R_ThighRoll = 67,
    SCALE_R_UpperArm = 372,
    SCALE_Spine0 = 536,
    SCALE_Spine0_Back = 535,
    SCALE_Spine1 = 526,
    SCALE_Spine1_Back = 525,
    SCALE_Spine2 = 522,
    SCALE_Spine3 = 499,
    SCALE_Spine4 = 471,
    SCALE_Spine5 = 391,
    SCALE_Spine6 = 390,
    SH_BodyStrap_00 = 479,
    SH_BodyStrap_00_Alt1 = 481,
    SH_BodyStrap_01 = 288,
    SH_BodyStrap_01_Alt1 = 291,
    SH_BodyStrap_02 = 289,
    SH_BodyStrap_02_Alt1 = 292,
    SH_BodyStrap_03 = 290,
    SH_BodyStrap_03_Alt1 = 293,
    SH_BodyStrap_04 = 478,
    SH_BodyStrap_04_Alt1 = 480,
    SH_BodyStrap_05 = 507,
    SH_BodyStrap_05_Alt1 = 508,
    SH_BodyStrap_06 = 523,
    SH_BodyStrap_06_Alt1 = 524,
    SH_BodyStrap_07 = 529,
    SH_BodyStrap_07_Alt1 = 532,
    SH_BodyStrap_08 = 530,
    SH_BodyStrap_08_Alt1 = 533,
    SH_BodyStrap_09 = 531,
    SH_BodyStrap_09_Alt1 = 534,
    skel_head = 144,
    skel_l_calf = 3,
    skel_l_clavicle = 198,
    SKEL_L_Clavicle = 198,
    SKEL_L_Finger00 = 231,
    SKEL_L_Finger01 = 232,
    SKEL_L_Finger02 = 233,
    SKEL_L_Finger10 = 224,
    SKEL_L_Finger11 = 225,
    SKEL_L_Finger12 = 226,
    SKEL_L_Finger13 = 227,
    SKEL_L_Finger20 = 217,
    SKEL_L_Finger21 = 218,
    SKEL_L_Finger22 = 219,
    SKEL_L_Finger23 = 220,
    SKEL_L_Finger30 = 210,
    SKEL_L_Finger31 = 211,
    SKEL_L_Finger32 = 212,
    SKEL_L_Finger33 = 213,
    SKEL_L_Finger40 = 202,
    SKEL_L_Finger41 = 203,
    SKEL_L_Finger42 = 204,
    SKEL_L_Finger43 = 205,
    skel_l_foot = 4,
    skel_l_forearm = 200,
    skel_l_hand = 201,
    skel_l_thigh = 2,
    SKEL_L_Toe0 = 5,
    SKEL_L_Toe10 = 7,
    SKEL_L_Toe20 = 6,
    skel_l_upperarm = 199,
    skel_neck0 = 138,
    SKEL_Neck0 = 138,
    SKEL_Neck1 = 142,
    skel_neck1 = 142,
    SKEL_Neck2 = 143,
    skel_pelvis = 1,
    SKEL_Penis00 = 83,
    SKEL_Penis01 = 84,
    SKEL_Penis_Trans = 82,
    skel_r_calf = 34,
    skel_r_clavicle = 296,
    SKEL_R_Clavicle = 296,
    SKEL_R_Finger00 = 300,
    SKEL_R_Finger01 = 301,
    SKEL_R_Finger02 = 302,
    SKEL_R_Finger10 = 305,
    SKEL_R_Finger11 = 306,
    SKEL_R_Finger12 = 307,
    SKEL_R_Finger13 = 308,
    SKEL_R_Finger20 = 312,
    SKEL_R_Finger21 = 313,
    SKEL_R_Finger22 = 314,
    SKEL_R_Finger23 = 315,
    SKEL_R_Finger30 = 319,
    SKEL_R_Finger31 = 320,
    SKEL_R_Finger32 = 321,
    SKEL_R_Finger33 = 322,
    SKEL_R_Finger40 = 326,
    SKEL_R_Finger41 = 327,
    SKEL_R_Finger42 = 328,
    SKEL_R_Finger43 = 329,
    skel_r_foot = 35,
    skel_r_forearm = 298,
    skel_r_hand = 299,
    skel_r_thigh = 33,
    SKEL_R_Toe0 = 36,
    SKEL_R_Toe10 = 37,
    SKEL_R_Toe20 = 38,
    skel_r_upperarm = 297,
    skel_spine0 = 131,
    SKEL_Spine0 = 131,
    skel_spine1 = 132,
    skel_spine2 = 133,
    SKEL_Spine3 = 134,
    skel_spine3 = 134,
    skel_spine4 = 135,
    SKEL_Spine5 = 136,
    SKEL_Spine6 = 137,
    SKEL_Spine_Root = 130,
    skel_spine_root = 130,
    SM_L_pistol = 96,
    SM_L_Pistol = 96,
    SM_L_PistolHigh = 98,
    SM_Melee0 = 63,
    SM_Melee1 = 64,
    SM_R_pistol = 109,
    SM_R_Pistol = 109,
    SM_R_PistolHigh = 111,
    SM_rifle = 429,
    SM_SpinePrimary = 423,
    SM_SpineSecondary = 424,
    SPR_C_BackFlap00 = 560,
    SPR_C_BackFlap01 = 561,
    SPR_C_BackFlap02 = 562,
    SPR_HolsterWinter = 591,
    SPR_Knife = 589,
    SPR_L_BackFlap00 = 557,
    SPR_L_BackFlap01 = 558,
    SPR_L_BackFlap02 = 559,
    SPR_L_FrontCalf = 661,
    SPR_L_FrontFlap_00 = 566,
    SPR_L_FrontFlap_01 = 567,
    SPR_L_FrontFlap_02 = 568,
    SPR_L_RearLegCalf2_Spr = 683,
    SPR_L_SideFlap00 = 571,
    SPR_L_SideFlap01 = 572,
    SPR_MaskDown = 401,
    SPR_R_BackFlap00 = 551,
    SPR_R_BackFlap01 = 552,
    SPR_R_BackFlap02 = 553,
    SPR_R_FrontCalf = 677,
    SPR_R_FrontFlap_00 = 576,
    SPR_R_FrontFlap_01 = 577,
    SPR_R_FrontFlap_02 = 578,
    SPR_R_RearLegCalf2_Spr = 687,
    SPR_R_SideFlap00 = 581,
    SPR_R_SideFlap01 = 582,
    SPR_RearLegsCalf2_Spr = 695,
    SPR_SatchelAttachLowr1 = 501,
    TGT_HighCollar_L_Spread = 457,
    TGT_HighCollar_L_Tilt = 459,
    TGT_HighCollar_R_Spread = 458,
    TGT_HighCollar_R_Tilt = 460,
    TGT_HighCollarRear = 453,
    TGT_HighCollarRear_01 = 171,
    TGT_L_HighCollar = 447,
    TGT_R_HighCollar = 450,
    UV_L_Leg = 689,
    UV_L_Wrist = 252,
    UV_R_Leg = 688,
    UV_R_Wrist = 351,
    VelocityMarker = 611,
    XH_L_Hand00 = 239,
    XH_R_Hand00 = 337,
    XH_R_Hand01 = 338,
    XH_Spine = 422
}

local MPFemaleBoneIndex = {
    CH_L_Hand = 310,
    CH_R_Hand = 395,
    CP_Back = 463,
    CP_BeltBack = 569,
    CP_BeltFront = 570,
    CP_Chest = 464,
    CP_L_Belt = 571,
    CP_L_Forearm = 327,
    CP_L_Shoulder = 353,
    CP_L_Thigh = 56,
    CP_L_UpperArm = 343,
    CP_L_WaistOuter = 573,
    CP_NeckBack = 264,
    CP_R_Belt = 572,
    CP_R_Forearm = 413,
    CP_R_ManeGrip = 467,
    CP_R_Shoulder = 440,
    CP_R_Thigh = 28,
    CP_R_UpperArm = 429,
    CP_R_WaistOuter = 574,
    EO_L_Foot = 36,
    EO_L_Toe = 37,
    EO_R_Foot = 8,
    EO_R_Toe = 9,
    ES_L_OpenBag1 = 585,
    ES_SatchelRoot = 209,
    Glasses_Rig_Bones = 248,
    HairScale_B = 236,
    HairScale_B_Ramp = 240,
    HairScale_F = 235,
    HairScale_F_Ramp = 243,
    HairScale_L = 237,
    HairScale_L_Ramp = 241,
    HairScale_loc = 234,
    HairScale_R = 238,
    HairScale_R_Ramp = 242,
    HairScale_T = 239,
    Hat_Loc = 226,
    IK_L_Foot = 39,
    IK_L_Hand = 309,
    IK_R_Foot = 11,
    IK_R_Hand = 394,
    Jckt_Inflate = 646,
    Jckt_L_Draw = 642,
    Jckt_L_Open = 643,
    Jckt_R_Draw = 644,
    Jckt_R_Open = 645,
    MB_R_Tricep = 375,
    ME_L_Deltoid = 340,
    ME_L_Latissimus = 339,
    ME_L_Trapezius = 348,
    ME_R_Deltoid = 426,
    ME_R_Latissimus = 425,
    ME_R_Trapezius = 434,
    MH_Belt_Back = 81,
    MH_Belt_Back_Root = 80,
    MH_Belt_C_Buckle = 83,
    MH_Belt_C_Buckle_Root = 82,
    MH_Belt_L_Buckle = 121,
    MH_Belt_L_Buckle_Root = 120,
    MH_Belt_L_ThighVal = 84,
    MH_Belt_LB = 88,
    MH_Belt_LB_Root = 87,
    MH_Belt_LF_High = 90,
    MH_Belt_LF_High_Root = 89,
    MH_Belt_LF_Low = 86,
    MH_Belt_LF_Low_Root = 85,
    MH_Belt_LS = 94,
    MH_Belt_LS_Cup = 95,
    MH_Belt_LS_Root = 93,
    MH_Belt_R_Buckle = 119,
    MH_Belt_R_Buckle_Root = 118,
    MH_Belt_R_ThighVal = 100,
    MH_Belt_RB = 117,
    MH_Belt_RB_Root = 116,
    MH_Belt_RF_High = 111,
    MH_Belt_RF_High_Root = 110,
    MH_Belt_RF_Low = 113,
    MH_Belt_RF_Low_Root = 112,
    MH_Belt_RS = 102,
    MH_Belt_RS_Cup = 103,
    MH_Belt_RS_Root = 101,
    MH_BeltRoot = 79,
    MH_brimBackBoneOrigin = 230,
    MH_Chest = 478,
    MH_Collar_Back00 = 274,
    MH_Collar_Front00 = 275,
    MH_Collar_Left00 = 277,
    MH_Collar_Right00 = 276,
    MH_Collar_Root = 273,
    MH_CollarGrab = 488,
    MH_CollarGrab_Expr = 487,
    MH_CollarGrabGRP = 486,
    MH_Dress_L_BackLook00 = 144,
    MH_Dress_L_BackLook01 = 145,
    MH_Dress_L_BackLook02 = 146,
    MH_Dress_L_BackLookRoot = 143,
    MH_Dress_L_BackLookTar00 = 168,
    MH_Dress_L_BackLookTar01 = 186,
    MH_Dress_L_BackLookTar02 = 188,
    MH_Dress_L_BackLookZero00 = 167,
    MH_Dress_L_BackLookZero01 = 185,
    MH_Dress_L_BackLookZero02 = 187,
    MH_Dress_L_BackSpring00 = 147,
    MH_Dress_L_BackSpring01 = 148,
    MH_Dress_L_BackSpring02 = 149,
    MH_Dress_L_FootLoc = 170,
    MH_Dress_L_FootPosBack = 184,
    MH_Dress_L_FootPosFront = 176,
    MH_Dress_L_FootPosSide = 192,
    MH_Dress_L_FrontLook00 = 151,
    MH_Dress_L_FrontLook01 = 152,
    MH_Dress_L_FrontLookRoot = 150,
    MH_Dress_L_FrontLookTar00 = 206,
    MH_Dress_L_FrontLookTar01 = 178,
    MH_Dress_L_FrontLookZero00 = 205,
    MH_Dress_L_FrontLookZero01 = 177,
    MH_Dress_L_FrontSpring00 = 153,
    MH_Dress_L_FrontSpring01 = 154,
    MH_Dress_L_FrontSpring02 = 155,
    MH_Dress_L_KneeLoc = 172,
    MH_Dress_L_KneePosFront = 204,
    MH_Dress_L_KneePosSide = 195,
    MH_Dress_L_SideHipAssist = 162,
    MH_Dress_L_SideLook00 = 157,
    MH_Dress_L_SideLook01 = 158,
    MH_Dress_L_SideLookRoot = 156,
    MH_Dress_L_SideLookTar00 = 197,
    MH_Dress_L_SideLookTar01 = 194,
    MH_Dress_L_SideLookZero00 = 196,
    MH_Dress_L_SideLookZero01 = 193,
    MH_Dress_L_SideSpring00 = 159,
    MH_Dress_L_SideSpring01 = 160,
    MH_Dress_L_SideSpring02 = 161,
    MH_Dress_L_ThighBack = 166,
    MH_Dress_R_BackLook00 = 124,
    MH_Dress_R_BackLook01 = 125,
    MH_Dress_R_BackLook02 = 126,
    MH_Dress_R_BackLookRoot = 123,
    MH_Dress_R_BackLookTar00 = 165,
    MH_Dress_R_BackLookTar01 = 181,
    MH_Dress_R_BackLookTar02 = 183,
    MH_Dress_R_BackLookZero00 = 164,
    MH_Dress_R_BackLookZero01 = 180,
    MH_Dress_R_BackLookZero02 = 182,
    MH_Dress_R_BackSpring00 = 127,
    MH_Dress_R_BackSpring01 = 128,
    MH_Dress_R_BackSpring02 = 129,
    MH_Dress_R_FootLoc = 169,
    MH_Dress_R_FootPosBack = 179,
    MH_Dress_R_FootPosFront = 173,
    MH_Dress_R_FootPosSide = 189,
    MH_Dress_R_FrontLook00 = 131,
    MH_Dress_R_FrontLook01 = 132,
    MH_Dress_R_FrontLookRoot = 130,
    MH_Dress_R_FrontLookTar00 = 203,
    MH_Dress_R_FrontLookTar01 = 175,
    MH_Dress_R_FrontLookZero00 = 202,
    MH_Dress_R_FrontLookZero01 = 174,
    MH_Dress_R_FrontSpring00 = 133,
    MH_Dress_R_FrontSpring01 = 134,
    MH_Dress_R_FrontSpring02 = 135,
    MH_Dress_R_KneeLoc = 171,
    MH_Dress_R_KneePosFront = 201,
    MH_Dress_R_KneePosSide = 198,
    MH_Dress_R_SideHipAssist = 142,
    MH_Dress_R_SideLook00 = 137,
    MH_Dress_R_SideLook01 = 138,
    MH_Dress_R_SideLookRoot = 136,
    MH_Dress_R_SideLookTar00 = 200,
    MH_Dress_R_SideLookTar01 = 191,
    MH_Dress_R_SideLookZero00 = 199,
    MH_Dress_R_SideLookZero01 = 190,
    MH_Dress_R_SideSpring00 = 139,
    MH_Dress_R_SideSpring01 = 140,
    MH_Dress_R_SideSpring02 = 141,
    MH_Dress_R_ThighBack = 163,
    MH_Dress_Root = 122,
    MH_Gore_L_Calf00 = 57,
    MH_Gore_L_Foot00 = 53,
    MH_Gore_L_Forearm00 = 345,
    MH_Gore_L_Hand = 329,
    MH_Gore_L_Thigh = 66,
    MH_Gore_L_UpperArm = 354,
    MH_Gore_R_Calf00 = 29,
    MH_Gore_R_Foot00 = 26,
    MH_Gore_R_Forearm00 = 431,
    MH_Gore_R_Hand = 415,
    MH_Gore_R_Thigh = 69,
    MH_Gore_R_UpperArm = 441,
    MH_HighCollarRear = 496,
    MH_Jacket01 = 582,
    MH_Jacket02 = 552,
    MH_JacketTail = 588,
    MH_L_BackFlap = 597,
    MH_L_BackFlapRoot = 596,
    MH_L_Breast = 539,
    MH_L_chinRef = 259,
    MH_L_CollarLtWtJ = 481,
    MH_L_Deltoid = 352,
    MH_L_Draw = 605,
    MH_L_Elbow = 341,
    MH_L_Finger01 = 296,
    MH_L_Finger01Bulge = 297,
    MH_L_Finger01Top = 312,
    MH_L_Finger11 = 286,
    MH_L_Finger21 = 302,
    MH_L_Finger31 = 307,
    MH_L_Finger41 = 291,
    MH_L_FrontFlap_Lift = 606,
    MH_L_HandSide = 292,
    MH_L_HighCollarFront = 491,
    MH_L_HighCollarRear = 490,
    MH_L_HighCollarRearSpread = 498,
    MH_L_Jacket_02 = 554,
    MH_L_Jacket_03 = 480,
    MH_L_JacketTail = 595,
    MH_L_KneeBack = 45,
    MH_L_Latissimus = 548,
    MH_L_Open0 = 604,
    MH_L_Open1 = 553,
    MH_L_Open2 = 479,
    MH_L_RearLegCenter = 730,
    MH_L_Scarf = 459,
    MH_L_ShirtCollarRoll = 196,
    MH_L_SideFlap = 611,
    MH_L_SideFlapRoot = 610,
    MH_L_SleeveScale01 = 331,
    MH_L_SleeveScale02 = 332,
    MH_L_SleeveScaleSpring = 330,
    MH_L_Trapezius = 269,
    MH_L_Wrist = 328,
    MH_L_WristVolumeTarget = 336,
    MH_MaskChinDown = 454,
    MH_R_BackFlap = 591,
    MH_R_BackFlapRoot = 590,
    MH_R_Breast = 541,
    MH_R_chinRef = 260,
    MH_R_CollarLtWtJ = 484,
    MH_R_Deltoid = 439,
    MH_R_Draw = 615,
    MH_R_Elbow = 427,
    MH_R_Finger01 = 391,
    MH_R_Finger01Bulge = 392,
    MH_R_Finger01Top = 398,
    MH_R_Finger11 = 371,
    MH_R_Finger21 = 387,
    MH_R_Finger31 = 382,
    MH_R_Finger41 = 376,
    MH_R_FingerTendon_40 = 71,
    MH_R_FrontFlap_Lift = 616,
    MH_R_HandSide = 377,
    MH_R_HighCollarFront = 494,
    MH_R_HighCollarRear = 493,
    MH_R_HighCollarRearSpread = 497,
    MH_R_Jacket_02 = 556,
    MH_R_Jacket_03 = 483,
    MH_R_JacketTail = 589,
    MH_R_KneeBack = 17,
    MH_R_Latissimus = 550,
    MH_R_Open0 = 614,
    MH_R_Open1 = 555,
    MH_R_Open2 = 482,
    MH_R_Scarf = 460,
    MH_R_Scarf2 = 458,
    MH_R_SideFlap = 621,
    MH_R_SideFlapRoot = 620,
    MH_R_SleeveScale01 = 422,
    MH_R_SleeveScale02 = 421,
    MH_R_SleeveScaleSpring = 420,
    MH_R_Trapezius = 271,
    MH_R_Wrist = 414,
    MH_R_WristVolumeTarget = 419,
    MH_RearBrimLiftTarget = 231,
    MH_RearJacket003 = 485,
    MH_RearJacket01 = 587,
    MH_RearJacket02 = 551,
    MH_Scarf = 453,
    MH_ScarfBase = 452,
    MH_ScarfOffset = 451,
    MH_ScarfRot = 457,
    MH_ScarfScale = 456,
    MH_ShoulderDistance = 477,
    MP_L_Deltoid = 347,
    MP_L_Latissimus = 537,
    MP_L_Tensor = 189,
    MP_L_Trapezius = 267,
    MP_R_Deltoid = 433,
    MP_R_Latissimus = 536,
    MP_R_Trapezius = 266,
    MS_L_Deltoid = 351,
    MS_L_Latissimus = 547,
    MS_L_Trapezius = 268,
    MS_R_Deltoid = 438,
    MS_R_Latissimus = 549,
    MS_R_Trapezius = 270,
    OH_Clavicles = 472,
    OH_FacingDir = 628,
    OH_Head = 245,
    OH_Incline = 634,
    OH_IndependentMover = 629,
    OH_L_Arm_Twist = 344,
    OH_L_Clavicle = 471,
    OH_L_Foot = 40,
    OH_L_Hand = 308,
    OH_LookDir = 244,
    OH_Mover = 631,
    OH_Neck = 272,
    OH_Pelvis = 632,
    OH_Pelvis_Recoil = 636,
    OH_R_Arm_Twist = 430,
    OH_R_Clavicle = 470,
    OH_R_Foot = 12,
    OH_R_Hand = 393,
    OH_Spine00 = 466,
    OH_Spine01 = 465,
    OH_TorsoDir = 633,
    OH_UpperFixup = 630,
    PH_Belt_Front = 77,
    PH_Belt_Melee = 207,
    PH_Belt_Rear = 76,
    PH_Belt_Thrower = 75,
    PH_Bow = 474,
    PH_Bow_Alt1 = 531,
    PH_Bow_Alt1_Support = 529,
    PH_Bow_Alt1Target = 530,
    PH_Bow_Support = 527,
    PH_BowInverted_TargetAlt = 641,
    PH_BowTarget = 528,
    PH_Glass_Ears_Pivot = 249,
    PH_Glass_Nose_Pivot_Root = 250,
    PH_Glass_Nose_Pivot_Skin = 251,
    PH_Glass_Nose_UpNode = 257,
    PH_GroundReference = 635,
    PH_Hat_loc = 229,
    PH_Hat_Loc = 229,
    PH_Hat_Rotateloc = 232,
    PH_Head = 247,
    PH_HeadProp = 246,
    PH_L_ArmPit = 521,
    PH_L_ArmPitBow = 520,
    PH_L_ArmPitRifle = 523,
    PH_L_Breast = 542,
    PH_L_CarriableShoulder = 361,
    PH_L_Foot = 41,
    PH_L_Hand = 322,
    PH_L_HandStrap_00 = 313,
    PH_L_HandStrap_01 = 314,
    PH_L_HandStrap_02 = 315,
    PH_L_HandStrap_03 = 316,
    PH_L_HandStrap_04 = 317,
    PH_L_HandStrap_05 = 318,
    PH_L_HandStrap_06 = 319,
    PH_L_HandStrap_07 = 320,
    PH_L_HandStrap_08 = 321,
    PH_L_Heel = 42,
    PH_L_Hip = 97,
    PH_L_KneeTarget = 624,
    PH_L_LegUpTarget001 = 583,
    PH_L_LegUpTargetSide = 584,
    PH_L_ObjectSpacePHBone = 637,
    PH_L_ShoulderReach = 362,
    PH_L_SpinePosition = 626,
    PH_Lantern = 210,
    PH_MinerLight = 233,
    PH_R_ArmPit = 522,
    PH_R_Boot = 19,
    PH_R_Breast = 543,
    PH_R_CarriableShoulder = 442,
    PH_R_Foot = 13,
    PH_R_Hand = 408,
    PH_R_HandStrap_00 = 399,
    PH_R_HandStrap_01 = 400,
    PH_R_HandStrap_02 = 401,
    PH_R_HandStrap_03 = 402,
    PH_R_HandStrap_04 = 403,
    PH_R_HandStrap_05 = 404,
    PH_R_HandStrap_06 = 405,
    PH_R_HandStrap_07 = 406,
    PH_R_HandStrap_08 = 407,
    PH_R_Heel = 14,
    PH_R_Hip = 105,
    PH_R_KneeTarget = 625,
    PH_R_LegUpTargetSide = 586,
    PH_R_ObjectSpacePHBone = 638,
    PH_R_Shoulder = 435,
    PH_R_ShoulderReach = 443,
    PH_R_SpinePosition = 627,
    PH_Rifle = 476,
    PH_RifleInverted = 533,
    PH_RifleInverted_Alt1 = 525,
    PH_RifleInverted_Target = 640,
    PH_RifleInverted_TargetAlt = 639,
    PH_RifleSupport = 532,
    PH_RifleSupport_Alt1 = 524,
    PH_Satchel = 208,
    PH_SpineLevel00 = 461,
    PH_SpineLevel01 = 462,
    RB_L_ArmRoll = 337,
    RB_L_BumRoll = 70,
    RB_L_ForeArmRoll = 324,
    RB_L_KneeFront = 44,
    RB_L_ThighRoll = 62,
    RB_L_Wrist01 = 335,
    RB_L_Wrist02 = 333,
    RB_L_Wrist03 = 334,
    RB_R_ArmRoll = 423,
    RB_R_BumRoll = 72,
    RB_R_ForeArmRoll = 410,
    RB_R_KneeFront = 16,
    RB_R_ThighRoll = 67,
    RB_R_Wrist01 = 418,
    RB_R_Wrist02 = 417,
    RB_R_Wrist03 = 416,
    RH_Hat_loc = 227,
    RZ_Hat_loc = 228,
    SCALE_Back = 447,
    SCALE_L_ArmRoll = 338,
    SCALE_L_BumRoll = 71,
    SCALE_L_Calf = 46,
    SCALE_L_Clavicle = 346,
    SCALE_L_Foot = 38,
    SCALE_L_Forearm = 326,
    SCALE_L_ForeArmRoll = 325,
    SCALE_L_Thigh = 54,
    SCALE_L_ThighRoll = 63,
    SCALE_L_UpperArm = 342,
    SCALE_Neck0 = 265,
    SCALE_Neck1 = 263,
    SCALE_Neck2 = 262,
    SCALE_Pelvis = 74,
    SCALE_Pelvis_Back = 78,
    SCALE_R_ArmRoll = 424,
    SCALE_R_BumRoll = 73,
    SCALE_R_Calf = 18,
    SCALE_R_Clavicle = 432,
    SCALE_R_Foot = 10,
    SCALE_R_Forearm = 412,
    SCALE_R_ForeArmRoll = 411,
    SCALE_R_Thigh = 27,
    SCALE_R_ThighRoll = 68,
    SCALE_R_UpperArm = 428,
    SCALE_Spine0 = 580,
    SCALE_Spine0_Back = 581,
    SCALE_Spine1 = 567,
    SCALE_Spine1_Back = 568,
    SCALE_Spine2 = 564,
    SCALE_Spine3 = 535,
    SCALE_Spine4 = 513,
    SCALE_Spine5 = 446,
    SCALE_Spine6 = 444,
    SH_BodyStrap_00 = 534,
    SH_BodyStrap_00_Alt1 = 516,
    SH_BodyStrap_01 = 360,
    SH_BodyStrap_01_Alt1 = 526,
    SH_BodyStrap_02 = 359,
    SH_BodyStrap_02_Alt1 = 358,
    SH_BodyStrap_03 = 357,
    SH_BodyStrap_03_Alt1 = 356,
    SH_BodyStrap_04 = 355,
    SH_BodyStrap_04_Alt1 = 473,
    SH_BodyStrap_05 = 519,
    SH_BodyStrap_05_Alt1 = 517,
    SH_BodyStrap_06 = 518,
    SH_BodyStrap_06_Alt1 = 579,
    SH_BodyStrap_07 = 566,
    SH_BodyStrap_07_Alt1 = 578,
    SH_BodyStrap_08 = 577,
    SH_BodyStrap_08_Alt1 = 576,
    SH_BodyStrap_09 = 565,
    SH_BodyStrap_09_Alt1 = 575,
    skel_head = 225,
    skel_l_calf = 31,
    skel_l_clavicle = 278,
    SKEL_L_Clavicle = 278,
    SKEL_L_Finger00 = 293,
    SKEL_L_Finger01 = 294,
    SKEL_L_Finger02 = 295,
    SKEL_L_Finger10 = 282,
    SKEL_L_Finger11 = 283,
    SKEL_L_Finger12 = 284,
    SKEL_L_Finger13 = 285,
    SKEL_L_Finger20 = 298,
    SKEL_L_Finger21 = 299,
    SKEL_L_Finger22 = 300,
    SKEL_L_Finger23 = 301,
    SKEL_L_Finger30 = 303,
    SKEL_L_Finger31 = 304,
    SKEL_L_Finger32 = 305,
    SKEL_L_Finger33 = 306,
    SKEL_L_Finger40 = 287,
    SKEL_L_Finger41 = 288,
    SKEL_L_Finger42 = 289,
    SKEL_L_Finger43 = 290,
    skel_l_foot = 32,
    skel_l_forearm = 280,
    skel_l_hand = 281,
    skel_l_thigh = 30,
    SKEL_L_Toe0 = 33,
    SKEL_L_Toe10 = 34,
    SKEL_L_Toe20 = 35,
    skel_l_upperarm = 279,
    skel_neck0 = 222,
    SKEL_Neck0 = 222,
    SKEL_Neck1 = 223,
    skel_neck1 = 223,
    SKEL_Neck2 = 224,
    skel_pelvis = 1,
    skel_r_calf = 3,
    skel_r_clavicle = 363,
    SKEL_R_Clavicle = 363,
    SKEL_R_Finger00 = 388,
    SKEL_R_Finger01 = 389,
    SKEL_R_Finger02 = 390,
    SKEL_R_Finger10 = 367,
    SKEL_R_Finger11 = 368,
    SKEL_R_Finger12 = 369,
    SKEL_R_Finger13 = 370,
    SKEL_R_Finger20 = 383,
    SKEL_R_Finger21 = 384,
    SKEL_R_Finger22 = 385,
    SKEL_R_Finger23 = 386,
    SKEL_R_Finger30 = 378,
    SKEL_R_Finger31 = 379,
    SKEL_R_Finger32 = 380,
    SKEL_R_Finger33 = 381,
    SKEL_R_Finger40 = 372,
    SKEL_R_Finger41 = 373,
    SKEL_R_Finger42 = 374,
    SKEL_R_Finger43 = 375,
    skel_r_foot = 4,
    skel_r_forearm = 365,
    skel_r_hand = 366,
    skel_r_thigh = 2,
    SKEL_R_Toe0 = 5,
    SKEL_R_Toe10 = 6,
    SKEL_R_Toe20 = 7,
    skel_r_upperarm = 364,
    skel_spine0 = 215,
    SKEL_Spine0 = 215,
    skel_spine1 = 216,
    skel_spine2 = 217,
    SKEL_Spine3 = 218,
    skel_spine3 = 218,
    skel_spine4 = 219,
    SKEL_Spine5 = 220,
    SKEL_Spine6 = 221,
    SKEL_Spine_Root = 214,
    skel_spine_root = 214,
    SM_L_pistol = 96,
    SM_L_Pistol = 96,
    SM_L_PistolHigh = 98,
    SM_L_PistolMid = 99,
    SM_Melee0 = 64,
    SM_Melee1 = 65,
    SM_R_pistol = 104,
    SM_R_Pistol = 104,
    SM_R_PistolHigh = 106,
    SM_R_PistolMid = 107,
    SM_rifle = 475,
    SM_SpinePrimary = 468,
    SM_SpineSecondary = 469,
    SPR_C_BackFlap00 = 601,
    SPR_C_BackFlap01 = 602,
    SPR_C_BackFlap02 = 603,
    SPR_L_BackFlap00 = 598,
    SPR_L_BackFlap01 = 599,
    SPR_L_BackFlap02 = 600,
    SPR_L_Breast = 538,
    SPR_L_FrontFlap_00 = 607,
    SPR_L_FrontFlap_01 = 608,
    SPR_L_FrontFlap_02 = 609,
    SPR_L_SideFlap00 = 612,
    SPR_L_SideFlap01 = 613,
    SPR_MaskDown = 455,
    SPR_R_BackFlap00 = 592,
    SPR_R_BackFlap01 = 593,
    SPR_R_BackFlap02 = 594,
    SPR_R_Breast = 540,
    SPR_R_FrontFlap_00 = 617,
    SPR_R_FrontFlap_01 = 618,
    SPR_R_FrontFlap_02 = 619,
    SPR_R_SideFlap00 = 622,
    SPR_R_SideFlap01 = 623,
    SPR_SatchelAttachLowr1 = 537,
    TGT_HighCollar_L_Spread = 499,
    TGT_HighCollar_L_Tilt = 501,
    TGT_HighCollar_R_Spread = 500,
    TGT_HighCollar_R_Tilt = 502,
    TGT_HighCollarRear = 495,
    TGT_HighCollarRear_01 = 261,
    TGT_L_HighCollar = 489,
    TGT_R_HighCollar = 492,
    UV_L_Wrist = 323,
    UV_R_Wrist = 409,
    VelocityMarker = 680,
    XH_L_Hand00 = 311,
    XH_R_Hand00 = 396,
    XH_R_Hand01 = 397,
    XH_Spine = 467
}

local HorseBoneIndex = {
    CP_B_NeckLasso = 82,
    CP_C_NeckAlignment = 78,
    CP_F_NeckLasso = 79,
    CP_L_ManeGrip = 68,
    CP_L_NeckAlignment = 70,
    CP_L_NeckLasso = 80,
    CP_L_Saddle = 254,
    CP_R_ManeGrip = 67,
    CP_R_NeckAlignment = 69,
    CP_R_NeckLasso = 81,
    CP_R_Saddle = 255,
    ES_L_OpenBag0 = 280,
    ES_L_OpenBag1 = 281,
    ES_L_OpenBag2 = 282,
    ES_L_WeightBag0 = 283,
    ES_L_WeightBag1 = 284,
    ES_L_WeightBag3 = 285,
    ES_L_WeightBag4 = 286,
    ES_R_OpenBag0 = 307,
    ES_R_OpenBag1 = 308,
    ES_R_OpenBag2 = 309,
    ES_R_WeightBag0 = 310,
    ES_R_WeightBag1 = 311,
    ES_R_WeightBag3 = 312,
    ES_R_WeightBag4 = 313,
    ID_PH_HEART = 225,
    IK_L_Foot = 363,
    IK_L_Hand = 148,
    IK_R_Foot = 327,
    IK_R_Hand = 101,
    MB_C_Sterno = 48,
    MB_L_BicepLong = 423,
    MB_L_BicepShort = 420,
    MB_L_Brach = 45,
    MB_L_Deltoid = 208,
    MB_L_Gastro = 390,
    MB_L_Gluteal = 417,
    MB_L_Lats = 237,
    MB_L_LatTricep = 188,
    MB_L_Pecs = 199,
    MB_L_Radial = 175,
    MB_L_Tensor = 414,
    MB_L_Tricep = 213,
    MB_R_BicepLong = 411,
    MB_R_BicepShort = 408,
    MB_R_Brach = 42,
    MB_R_Deltoid = 216,
    MB_R_Gastro = 353,
    MB_R_Gluteal = 405,
    MB_R_Lats = 240,
    MB_R_LatTricep = 140,
    MB_R_Pecs = 203,
    MB_R_Radial = 133,
    MB_R_Tensor = 402,
    MB_R_Tricep = 221,
    MH_BreatheBone = 243,
    MH_C_Loin = 483,
    MH_ChestRotateMain = 193,
    MH_Dress_R_FootPosSide = 413,
    MH_Gore_L_Calf00 = 386,
    MH_Gore_L_Foot00 = 378,
    MH_Gore_L_Forearm00 = 170,
    MH_Gore_L_Hand = 166,
    MH_Gore_R_Calf00 = 349,
    MH_Gore_R_Foot00 = 341,
    MH_Gore_R_Forearm00 = 123,
    MH_Gore_R_Hand = 119,
    MH_JowelGrp = 57,
    MH_JowelRoot = 24,
    MH_JowelTarget = 59,
    MH_JowelTargetRoot = 58,
    MH_Jowlel = 25,
    MH_JowlRootSpaceSwitcher = 23,
    MH_Knackers = 484,
    MH_KnackersLong = 489,
    MH_KnackersLShort = 485,
    MH_KnackersMid = 486,
    MH_KnackersRShort = 487,
    MH_KnackersTip = 488,
    MH_L_Ankle = 384,
    MH_L_BackHoof = 375,
    MH_L_BackHoofHeight = 371,
    MH_L_BicepLongInsert = 383,
    MH_L_BicepLongOrigin = 421,
    MH_L_BicepShortInsert = 382,
    MH_L_BicepShortOrigin = 418,
    MH_L_BrachInsert = 181,
    MH_L_BrachOrigin = 43,
    MH_L_CalfVolume = 381,
    MH_L_Chest = 195,
    MH_L_DeltoidInsert = 171,
    MH_L_DeltoidOrigin = 206,
    MH_L_Elbow = 179,
    MH_L_Elbow2 = 180,
    MH_L_Finger00 = 162,
    MH_L_Finger00Support = 154,
    MH_L_Finger01 = 155,
    MH_L_Finger01Support = 147,
    MH_L_Finger02 = 151,
    MH_L_Foot = 373,
    MH_L_Forearm = 158,
    MH_L_FronLegFat = 209,
    MH_L_FrontHoof = 163,
    MH_L_FrontHoofHeight = 153,
    MH_L_GastroInsert = 380,
    MH_L_GastroOrigin = 388,
    MH_L_Glutealnsert = 391,
    MH_L_GlutealOrigin = 415,
    MH_L_Hand = 161,
    MH_L_HandSupport = 157,
    MH_L_InnerElbow = 178,
    MH_L_Knee = 160,
    MH_L_LatsInsert = 177,
    MH_L_LatsOrigin = 235,
    MH_L_LatTricepInsert = 176,
    MH_L_LatTricepOrigin = 186,
    MH_L_PecsInsert = 196,
    MH_L_PecsOrigin = 197,
    MH_L_Radial_Insert = 168,
    MH_L_RadialOrigin = 173,
    MH_L_RearLegCenter = 535,
    MH_L_ScapTip = 183,
    MH_L_TensorInsert = 392,
    MH_L_TensorOrigin = 412,
    MH_L_thigh = 393,
    MH_L_Toe0 = 374,
    MH_L_Toe0Support = 367,
    MH_L_Toe1 = 368,
    MH_L_Toe1Support = 362,
    MH_L_Toe2 = 369,
    MH_L_TrapeziusInsert = 182,
    MH_L_TrapeziusOrigin = 84,
    MH_L_TricepInsert = 169,
    MH_L_TricepOrigin = 211,
    MH_L_UpperArmShaper = 185,
    MH_mane002_0 = 51,
    MH_mane002_1 = 52,
    MH_mane002_2 = 53,
    MH_mane002_3 = 54,
    MH_mane003_0 = 62,
    MH_mane003_1 = 63,
    MH_mane003_2 = 64,
    MH_mane003_3 = 65,
    MH_mane004_0 = 73,
    MH_mane004_1 = 74,
    MH_mane004_2 = 75,
    MH_mane004_3 = 76,
    MH_mane005_0 = 87,
    MH_mane005_1 = 88,
    MH_mane005_2 = 89,
    MH_mane005_3 = 90,
    MH_mane01_0 = 32,
    MH_mane01_1 = 33,
    MH_mane01_2 = 34,
    MH_mane01_3 = 35,
    MH_mane01_Root = 31,
    MH_mane02_Root = 50,
    MH_mane03_Root = 61,
    MH_mane04_Root = 72,
    MH_mane05_Root = 86,
    MH_ManeFringe = 26,
    MH_Neck1_Crest = 85,
    MH_Neck2_Crest = 71,
    MH_Neck2_SurfaceCons = 77,
    MH_Neck3_Crest = 60,
    MH_Neck4_Crest = 49,
    MH_Neck4_SurfaceCons = 55,
    MH_Neck5_Crest = 30,
    MH_neckHigh_2 = 15,
    MH_neckHigh_2_Root = 14,
    MH_neckHigh_3 = 17,
    MH_Occiput = 16,
    MH_OcciputTarget = 39,
    MH_R_Ankle = 347,
    MH_R_BackHoof = 338,
    MH_R_BackHoofHeight = 334,
    MH_R_BicepLongInsert = 346,
    MH_R_BicepLongOrigin = 409,
    MH_R_BicepShortInsert = 345,
    MH_R_BicepShortOrigin = 406,
    MH_R_BrachInsert = 134,
    MH_R_BrachOrigin = 40,
    MH_R_CalfVolume = 344,
    MH_R_Chest = 200,
    MH_R_DeltoidInsert = 124,
    MH_R_DeltoidOrigin = 214,
    MH_R_Elbow = 126,
    MH_R_Elbow2 = 127,
    MH_R_Finger00 = 115,
    MH_R_Finger00Support = 107,
    MH_R_Finger01 = 108,
    MH_R_Finger01Support = 100,
    MH_R_Finger02 = 104,
    MH_R_Foot = 336,
    MH_R_Forearm = 111,
    MH_R_FronLegFat = 217,
    MH_R_FrontHoof = 116,
    MH_R_FrontHoofHeight = 106,
    MH_R_GastroInsert = 343,
    MH_R_GastroOrigin = 351,
    MH_R_Glutealnsert = 354,
    MH_R_GlutealOrigin = 403,
    MH_R_Hand = 114,
    MH_R_HandSupport = 110,
    MH_R_InnerElbow = 128,
    MH_R_Knee = 113,
    MH_R_LatsInsert = 129,
    MH_R_LatsOrigin = 238,
    MH_R_LatTricepInsert = 130,
    MH_R_LatTricepOrigin = 138,
    MH_R_PecsInsert = 204,
    MH_R_PecsOrigin = 201,
    MH_R_Radial_Insert = 121,
    MH_R_RadialOrigin = 131,
    MH_R_TensorInsert = 355,
    MH_R_TensorOrigin = 400,
    MH_R_thigh = 356,
    MH_R_Toe0 = 337,
    MH_R_Toe0Support = 330,
    MH_R_Toe1 = 331,
    MH_R_Toe1Support = 325,
    MH_R_Toe2 = 332,
    MH_R_TricepInsert = 122,
    MH_R_TricepOrigin = 219,
    MH_R_UpperArmShaper = 137,
    MH_RearCollar = 346,
    MH_RearSeatSupport = 399,
    MH_RibCage0 = 249,
    MH_RibCage1 = 242,
    MH_RibCageRotate = 248,
    MH_spineHigh_1 = 93,
    MH_spineHigh_1_SpaceSwitcher = 92,
    MH_SternoInsert = 205,
    MH_SternoOrigin = 46,
    MH_Sternum = 194,
    MH_WaistThinner = 319,
    MP_C_Sterno = 47,
    MP_L_BicepLong = 422,
    MP_L_BicepShort = 419,
    MP_L_Brach = 44,
    MP_L_Deltoid = 207,
    MP_L_Gastro = 389,
    MP_L_Gluteal = 416,
    MP_L_Lats = 236,
    MP_L_LatTricep = 187,
    MP_L_Pecs = 198,
    MP_L_Radial = 174,
    MP_L_Tensor = 413,
    MP_L_Tricep = 212,
    MP_R_BicepLong = 410,
    MP_R_BicepShort = 407,
    MP_R_Brach = 41,
    MP_R_Deltoid = 215,
    MP_R_Gastro = 352,
    MP_R_Gluteal = 404,
    MP_R_Lats = 239,
    MP_R_LatTricep = 139,
    MP_R_Pecs = 202,
    MP_R_Radial = 132,
    MP_R_Tensor = 401,
    MP_R_Tricep = 220,
    OH_FacingDir = 1,
    OH_L_Foot = 366,
    OH_LookDir = 19,
    OH_Pelvis = 492,
    OH_R_Foot = 329,
    OH_TorsoDir = 491,
    OH_UpperFixup = 490,
    PH_bridle_attach_L = 22,
    PH_bridle_attach_R = 21,
    PH_Carriable = 398,
    PH_detonatorProp = 481,
    PH_Hat_loc = 28,
    PH_Hat_Loc = 28,
    PH_HeadProp = 27,
    PH_L_Arrow = 608,
    PH_L_Foot = 364,
    PH_L_FrontHeel = 150,
    PH_L_Hand = 149,
    PH_L_Heel = 365,
    PH_L_WeaponTucked = 252,
    PH_R_Foot = 326,
    PH_R_FrontHeel = 103,
    PH_R_Hand = 102,
    PH_R_Heel = 328,
    PH_R_WeaponTucked = 253,
    PH_saddle_attach_L = 258,
    PH_saddle_attach_LB = 480,
    PH_saddle_attach_R = 259,
    PH_saddle_attach_RB = 482,
    PH_SaddleHorn = 256,
    PH_SaddleRearGrip = 257,
    PH_Weapon = 222,
    PH_Weapon_bow = 223,
    RB_L_RibCage0 = 251,
    RB_L_RibCage1 = 244,
    RB_L_RibCage2 = 189,
    RB_R_RibCage0 = 250,
    RB_R_RibCage1 = 245,
    RB_R_RibCage2 = 190,
    SCALE_Head = 20,
    SCALE_L_Ankle = 385,
    SCALE_L_Calf = 379,
    SCALE_L_Clavicle = 184,
    SCALE_L_Finger00 = 164,
    SCALE_L_Finger02 = 152,
    SCALE_L_Foot = 377,
    SCALE_L_Forearm = 159,
    SCALE_L_Hand = 165,
    SCALE_L_Knee = 167,
    SCALE_L_Thigh = 387,
    SCALE_L_Toe0 = 376,
    SCALE_L_Toe1 = 372,
    SCALE_L_Toe2 = 370,
    SCALE_L_UpperArm = 172,
    SCALE_MH_L_Finger01 = 156,
    SCALE_MH_R_Finger01 = 109,
    SCALE_Neck0 = 91,
    SCALE_Neck1 = 83,
    SCALE_Neck2 = 66,
    SCALE_Neck3 = 56,
    SCALE_Neck4 = 38,
    SCALE_Neck5 = 29,
    SCALE_Pelvis = 397,
    SCALE_R_Ankle = 348,
    SCALE_R_Calf = 342,
    SCALE_R_Clavicle = 136,
    SCALE_R_Finger00 = 117,
    SCALE_R_Finger02 = 105,
    SCALE_R_Foot = 340,
    SCALE_R_Forearm = 112,
    SCALE_R_Hand = 118,
    SCALE_R_Knee = 120,
    SCALE_R_Thigh = 350,
    SCALE_R_Toe0 = 339,
    SCALE_R_Toe1 = 335,
    SCALE_R_Toe2 = 333,
    SCALE_R_UpperArm = 125,
    SCALE_Spine0 = 315,
    SCALE_Spine1 = 247,
    SCALE_Spine2 = 241,
    SCALE_Spine3 = 192,
    SH_L_Stirrup0 = 231,
    SH_L_Stirrup1 = 232,
    SH_L_Stirrup2 = 233,
    SH_L_Stirrup3 = 234,
    SH_R_Stirrup0 = 227,
    SH_R_Stirrup1 = 228,
    SH_R_Stirrup2 = 229,
    SH_R_Stirrup3 = 230,
    SH_Stirrup_Root = 226,
    SKEL_FrontSeat = 191,
    skel_head = 18,
    SKEL_L_BackFlap00 = 274,
    SKEL_L_BackFlap01 = 275,
    SKEL_L_BackFlap02 = 276,
    SKEL_L_BackFlap03 = 277,
    SKEL_L_BackFlap04 = 278,
    SKEL_L_BackFlap05 = 279,
    SKEL_L_BedRoll = 317,
    skel_l_calf = 358,
    skel_l_clavicle = 141,
    SKEL_L_Clavicle = 141,
    SKEL_L_Finger00 = 145,
    SKEL_L_Finger01 = 146,
    SKEL_L_Flap = 262,
    skel_l_foot = 359,
    skel_l_forearm = 143,
    SKEL_L_FrontFlap00 = 263,
    SKEL_L_FrontFlap01 = 264,
    SKEL_L_FrontFlap02 = 265,
    SKEL_L_FrontFlap03 = 266,
    SKEL_L_FrontFlap04 = 267,
    SKEL_L_FrontFlap05 = 268,
    skel_l_hand = 144,
    SKEL_L_MidFlap01 = 269,
    SKEL_L_MidFlap02 = 270,
    SKEL_L_MidFlap03 = 271,
    SKEL_L_MidFlap04 = 272,
    SKEL_L_MidFlap05 = 273,
    SKEL_L_SatchelRoot = 261,
    skel_l_thigh = 357,
    SKEL_L_Toe0 = 360,
    SKEL_L_Toe1 = 361,
    skel_l_upperarm = 142,
    skel_neck0 = 8,
    SKEL_Neck0 = 8,
    SKEL_Neck1 = 9,
    skel_neck1 = 9,
    SKEL_Neck2 = 10,
    skel_neck3 = 11,
    SKEL_Neck4 = 12,
    skel_neck5 = 13,
    skel_pelvis = 3,
    SKEL_R_BackFlap00 = 290,
    SKEL_R_BackFlap01 = 291,
    SKEL_R_BackFlap02 = 292,
    SKEL_R_BackFlap03 = 293,
    SKEL_R_BackFlap04 = 294,
    SKEL_R_BackFlap05 = 295,
    SKEL_R_BedRoll = 318,
    skel_r_calf = 321,
    skel_r_clavicle = 94,
    SKEL_R_Clavicle = 94,
    SKEL_R_Finger00 = 98,
    SKEL_R_Finger01 = 99,
    SKEL_R_Finger31 = 511,
    SKEL_R_Finger43 = 221,
    SKEL_R_Flap = 289,
    skel_r_foot = 322,
    skel_r_forearm = 96,
    SKEL_R_FrontFlap00 = 296,
    SKEL_R_FrontFlap01 = 297,
    SKEL_R_FrontFlap02 = 298,
    SKEL_R_FrontFlap03 = 299,
    SKEL_R_FrontFlap04 = 300,
    SKEL_R_FrontFlap05 = 301,
    skel_r_hand = 97,
    SKEL_R_MidFlap01 = 302,
    SKEL_R_MidFlap02 = 303,
    SKEL_R_MidFlap03 = 304,
    SKEL_R_MidFlap04 = 305,
    SKEL_R_MidFlap05 = 306,
    SKEL_R_SatchelRoot = 288,
    skel_r_thigh = 320,
    SKEL_R_Toe0 = 323,
    SKEL_R_Toe1 = 324,
    skel_r_upperarm = 95,
    SKEL_RearSeat = 314,
    SKEL_Rig_Tail3 = 429,
    SKEL_SADDLE = 246,
    skel_spine0 = 4,
    SKEL_Spine0 = 4,
    skel_spine1 = 5,
    skel_spine2 = 6,
    SKEL_Spine3 = 7,
    skel_spine3 = 7,
    SKEL_Spine_Root = 2,
    skel_spine_root = 2,
    SKEL_Tail0 = 424,
    skel_tail1 = 425,
    SKEL_Tail2 = 426,
    SKEL_Tail3 = 427,
    skel_tail4 = 428,
    SPR_C_BedRoll = 316,
    SPR_L_FronLegFat = 210,
    SPR_L_packJiggle = 395,
    SPR_L_Saddlebag = 260,
    SPR_ManeDriver = 36,
    SPR_ManeDriverLo = 37,
    SPR_pack = 394,
    SPR_R_FronLegFat = 218,
    SPR_R_packJiggle = 396,
    SPR_R_Saddlebag = 287,
    SPR_R_Shoulder = 135,
    SPR_Tail_center = 471,
    SPR_Tail_center01 = 473,
    SPR_Tail_center02 = 475,
    SPR_Tail_center03 = 477,
    SPR_Tail_center04 = 478,
    SPR_Tail_center05 = 479,
    SPR_Tail_centerNoise = 470,
    SPR_Tail_centerPivot = 474,
    SPR_Tail_centerRoot = 472,
    SPR_Tail_left = 461,
    SPR_Tail_left01 = 463,
    SPR_Tail_left02 = 465,
    SPR_Tail_left03 = 467,
    SPR_Tail_left04 = 468,
    SPR_Tail_left05 = 469,
    SPR_Tail_leftNoise = 460,
    SPR_Tail_leftPivot = 464,
    SPR_Tail_leftRoot = 462,
    SPR_Tail_lower = 451,
    SPR_Tail_lower01 = 453,
    SPR_Tail_lower02 = 455,
    SPR_Tail_lower03 = 457,
    SPR_Tail_lower04 = 458,
    SPR_Tail_lower05 = 459,
    SPR_Tail_lowerNoise = 450,
    SPR_Tail_lowerPivot = 454,
    SPR_Tail_lowerRoot = 452,
    SPR_Tail_right = 441,
    SPR_Tail_right01 = 443,
    SPR_Tail_right02 = 445,
    SPR_Tail_right03 = 447,
    SPR_Tail_right04 = 448,
    SPR_Tail_right05 = 449,
    SPR_Tail_rightNoise00 = 440,
    SPR_Tail_rightPivot = 444,
    SPR_Tail_rightRoot = 442,
    SPR_Tail_upper = 431,
    SPR_Tail_upper01 = 433,
    SPR_Tail_upper02 = 435,
    SPR_Tail_upper03 = 437,
    SPR_Tail_upper04 = 438,
    SPR_Tail_upper05 = 439,
    SPR_Tail_upperNoise = 430,
    SPR_Tail_upperPivot = 434,
    SPR_Tail_upperRoot = 432,
    Tail_center03Pivot = 476,
    Tail_left03Pivot = 466,
    Tail_lower03Pivot = 456,
    Tail_right03Pivot = 446,
    Tail_upper03Pivot = 436,
    UV_L_WristJacket = 13,
    VelocityMarker = 493,
    windVelocityMarker = 494,
    XH_Spine = 67
}

Bone.MPMaleBoneIndex = MPMaleBoneIndex
Bone.MPFemaleBoneIndex = MPFemaleBoneIndex
Bone.HorseBoneIndex = HorseBoneIndex

return Bone
