| 160 | } |
| 161 | |
| 162 | static void animationAddEventSFX(Animation* anim, const zCModelScriptEventSfx& sfx) |
| 163 | { |
| 164 | anim->m_EventsSFX.push_back(sfx); |
| 165 | |
| 166 | if (anim->m_EventsSFX.back().m_Frame == -1) |
| 167 | { |
| 168 | anim->m_EventsSFX.back().m_Frame = anim->m_LastFrame - 1; |
| 169 | } |
| 170 | |
| 171 | // Normalize to range specified in the MDS |
| 172 | anim->m_EventsSFX.back().m_Frame = scaleToHeaderFrameRate(anim, anim->m_EventsSFX.back().m_Frame); |
| 173 | } |
| 174 | |
| 175 | static void animationAddEventPFX(Animation* anim, const zCModelScriptEventPfx& pfx) |
| 176 | { |
no test coverage detected