feat(model): animate attached models in CM2Model::AnimateST

This commit is contained in:
fallenoak 2025-10-13 21:04:22 -05:00
parent 1eca3a8e7f
commit 578503d8ec
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D

View File

@ -619,6 +619,22 @@ void CM2Model::AnimateST() {
// TODO
// Animate attached models
for (auto model = this->m_attachList; model; model = model->m_attachNext) {
bool animate;
if (model->m_attachIndex == 0xFFFF) {
animate = model->m_flag40000;
} else {
animate = this->m_attachments[model->m_attachIndex].visibilityTrack.currentValue;
}
if (animate) {
model->AnimateST();
}
}
if (this->float198 == 1.0f) {
this->uint90 = 1;
}