The other day I figured out the animation format for C:R peds so I could import and export animations use my MaxScript. Errol said the format was the same as C2's format, which hasn't been figured out yet, so I took a look this morning and it's actually a bit different but quite similar. The format seems to be as follows:
Code: Select all
int BoneCount
int FrameCount
for each bone
string (32 bytes) BoneName
byte NullByte
int SomeCount (maybe number of child bones?)
for each SomeCount
int SomeNumber (likely to be child bone index, but Bip01 has a value of 10,000 for one, though maybe that's a quirk of Biped)
for each frame
for each bone
48 bytes = 12 floats = Matrix3x4 TransformMatrix
I've not messed around with it any further as I haven't got any C2 file support in my scripts to try applying the animations to a ped model, but I thought it would be a good idea to post my findings here :)
a.k.a. Brent