|070A: unknown_action_sequence $actor $object X Y Z Int1 Int2 "NULL" "NULL" -1|
Links an object to an actor, by the bone.
actor - actor to link the object to
object - object to be linked, can be anything thats definrd in the object list, in the scm
XYZ - offset to bone to attach object too (see next line)
Int1 - Bone index of character that object is linked to (see below for values)
Int2 - Rotation values of some sort, though i only saw "16" for a lot of the lines i checked
"NULL" - unknown
"NULL" - unknown
-1 - unknown, duration of time for object to be linked?
Bone index values-
0 - crashes game
1 - chest?
2 - neck?
3 - left shoulder
4 - right shoulder
5 - left hand
6 - right hand
7 - root?
8 - ??
9 - left foot
10 - right foot
11 - right knee
12 - ??
13 - left elbow
14 - right elbow
15 - left clavicle
16 - right clavicle
17 - back of neck
18 - mouth or chin (if mouth, then object rotation got screwed)
19 - crashed game
I tested initially with the cigar, but that made it really hard to see since its so small. So i tried the Barrel!
for bones with a "?" on the end, and it is still linked, i just don't know which specific bones. looked mighty goofy with a barrel sticking through the neck
if you punch or kick an actor linked to an object, or if you kill them, the object will be unlinked, and depending on what is is, destroyed.
You cannot give an actor a gun AND link an object to them - the linked object will always get precedence, and they will not be armed. if you kill them, you can still get their weapon as a pickup though.
If you link an object to the player
, and THEN go over a weapon pickup, you will keep both your linked object, and the weapon, but the weapon model will be invisible.
In the screenshot with the barrel
, the object in his hand is NOT solid - shooting it does nothing. However, if you shoot the *actor*, they will drop their object, and then the object will become "active", and solid.