Oblivion/Bhk Objects/Layer
From NifTools
Normally, the Layer property on collision bodies adjusts the color of the mesh as it appears in the Oblivion Construction Set, plus it sets some principal collision checking options.
What number corresponds to a specific type of object can be seen in the #Layer Indices table.
Contents |
The COLFILTER property
Briefly, the lower two bytes of this number build Oblivion's COLFILTER property. This is a bit-sequence that controls far more options than just the color in the CS:
The first bit sets the LINK property and controls whether this body is physically linked to others. The next bit turns collision off. Then, the next bit sets the SCALED property in Oblivion. The next five bits make up the number of this part in a linked body list. Finally, the second byte is the normal layer property as described in the NifSkope tooltip, see the end of this post.
An overview of the bit pattern:
Bits: 0 0 0 00000 00000000
| | | | ^Layer
| | | |
| | | |----> Collision Group Part Number
| | |-------> Scaled Property
| |--------> NoCollision Property
|---------> Collision Link Property
Part number in Biped layers
If the Layer property is set to Biped (8), the part number indicates what type of bodypart this collision object belongs to. The 'Linked' bit is not set for body parts.
A list of body part indices is at the bottom of this page.
Layer Indices
| 0 | Unidentified (white) |
|---|---|
| 1 | Static (red) |
| 2 | AnimStatic (magenta) |
| 3 | Transparent (light pink) |
| 4 | Clutter (light blue) |
| 5 | Weapon (orange) |
| 6 | Projectile (light orange) |
| 7 | Spell (cyan) |
| 8 | Biped (green) Seems to apply to all creatures/NPCs |
| 9 | Trees (light brown) |
| 10 | Props (magenta) |
| 11 | Water (cyan) |
| 12 | Trigger (light grey) |
| 13 | Terrain (light yellow) |
| 14 | Trap (light grey) |
| 15 | NonCollidable (white) |
| 16 | CloudTrap (greenish grey) |
| 17 | Ground (none) |
| 18 | Portal (green) |
| 19 | Stairs (white) |
| 20 | CharController (yellow) |
| 21 | AvoidBox (dark yellow) |
| 22 | ? (white) |
| 23 | ? (white) |
| 24 | CameraPick (white) |
| 25 | ItemPick (white) |
| 26 | LineOfSight (white) |
| 27 | PathPick (white) |
| 28 | CustomPick1 (white) |
| 29 | CustomPick2 (white) |
| 30 | SpellExplosion (white) |
| 31 | DroppingPick (white) |
| 32 | Other (white) |
| 33 | Head |
| 34 | Body |
| 35 | Spine1 |
| 36 | Spine2 |
| 37 | LUpperArm |
| 38 | LForeArm |
| 39 | LHand |
| 40 | LThigh |
| 41 | LCalf |
| 42 | LFoot |
| 43 | RUpperArm |
| 44 | RForeArm |
| 45 | RHand |
| 46 | RThigh |
| 47 | RCalf |
| 48 | RFoot |
| 49 | Tail |
| 50 | SideWeapon |
| 51 | Shield |
| 52 | Quiver |
| 53 | BackWeapon |
| 54 | BackWeapon (?) |
| 55 | PonyTail |
| 56 | Wing |
| 57+ | Null |
List of body part indices
| Part # | Part name | Part node |
|---|---|---|
| 1 | HEAD | Head |
| 2 | BODY | Pelvis, Spine |
| 3 | SPINE1 | Spine1 |
| 4 | SPINE2 | Spine2 |
| 5 | LUPPERARM | L UpperArm |
| 6 | LFOREARM | L Forearm |
| 7 | LHAND | L Hand |
| 8 | LTHIGH | L Thigh |
| 9 | LCALF | L Calf |
| 10 | LFOOT | L Foot |
| 11 | RUPPERARM | R UpperArm |
| 12 | RFOREARM | R Forearm |
| 13 | RHAND | R Hand |
| 14 | RTHIGH | R Thigh |
| 15 | RCALF | R Calf |
| 16 | RFOOT | R Foot |
| 18 | SIDEWEAPON | SideWeapon |
| ? | WEAPON | ? (in-game Weapon coll. obj) |
