When specifying multiple model files in one Model block and using them both for animation, if the animation frames are specified for one model first entirely, then for another model entirely, only the latter model is actually animated. The FrameIndex lines have to be specified consecutively for each sprite frame instead.
For instance, this makes only the Model 1 actually be animated, Model 0 stays still, stuck on the first frame. If instead Model 1's frames are listed first, then Model 0's, only Model 0 is animated.
Code: Select all
Model MultiBroken {
Model 0 "zero.md3"
Model 1 "one.md3"
FrameIndex BLAH A 0 0
FrameIndex BLAH B 0 1
FrameIndex BLAH C 0 2
FrameIndex BLAH D 0 3
FrameIndex BLAH A 1 0
FrameIndex BLAH B 1 1
FrameIndex BLAH C 1 2
FrameIndex BLAH D 1 3
}
Code: Select all
Model MultiWorking {
Model 0 "zero.md3"
Model 1 "one.md3"
FrameIndex BLAH A 0 0
FrameIndex BLAH A 1 0
FrameIndex BLAH B 0 1
FrameIndex BLAH B 1 1
FrameIndex BLAH C 0 2
FrameIndex BLAH C 1 2
FrameIndex BLAH D 0 3
FrameIndex BLAH D 1 3
}
Attached is a file that has two models used in three model definitions, two function improperly, one functions properly, and they can be viewed in an example map.