An actor with the following DECORATE code shows a problem when it switches between modesl, but only in one of the instances:
Code: Select all
ACTOR EDTest
{
radius 40
height 100
mass 1000
+SOLID
states
{
Spawn:
//first model
SARG ABCD 10
//second model
CPOS A 10
CPOS ABCC 10
CPOS DEEEF 10
CPOS G 10
CPOS HIIIJ 10
CPOS CCBA 10
Goto Spawn
}
}
However, at the end of the sequence, wher the actor returns to the top of the spawn sequence and goes from CPOS to SARG, the model vanishes for a moment.
The problem can be worked around by adding
Code: Select all
CPOS A 0
Adding nointerpolation to the MODELDEF also fixes the issue but, obviously, makes the animation very jerky.
Like I said, it may just be a quirk of interpolation but it just strikes me as odd that it goes from model 1 to model 2 seamlessly, but can't do the reverse when the spawn sequence resets.
Try the following file. Just load it up and watch. The ED209 on the left blinks out briefly when it returns to its spawn stance, the one on the right does not (because it contains the fix mentioned above).
Ignore the little "wiggle" the model gives just as it starts to stand up, that's just a problem with the model and how I've set up this example. The momentary invisibility is what this is about.
http://www.aspectsweb.co.uk/enjay/doom/ ... EDTest.pk3