Bone Categories

data/bones/bone_categories.lua

You can use bone categories to simplify creation of injuries, where a single injury can be caused by damaging any number of different bones.

Example

local boneCategories = {
    HEAD = {
        SKEL_Neck_1 = 0x9995,
        SKEL_Head = 0x796E,
        -- ...
    },

    TORSO = {
        SKEL_ROOT = 0x0,
        SKEL_Pelvis = 0x2E28,
        -- ...
    },

    ARM_LEFT = {
        SKEL_L_Clavicle = 0xFCD9,
        SKEL_L_UpperArm = 0xB1C5,
        -- ...
    },
    
    -- ...
}

Bone category names are arbitrary. They are referenced in the Injuries data file. Values are bone names and indices, best taken directly from the Bones data file.

Last updated