| 173 | } |
| 174 | |
| 175 | static void animationAddEventPFX(Animation* anim, const zCModelScriptEventPfx& pfx) |
| 176 | { |
| 177 | anim->m_EventsPFX.push_back(pfx); |
| 178 | if (anim->m_EventsPFX.back().m_Frame == -1) |
| 179 | { |
| 180 | anim->m_EventsPFX.back().m_Frame = anim->m_LastFrame - 1; |
| 181 | } |
| 182 | |
| 183 | // Normalize to range specified in the MDS |
| 184 | anim->m_EventsPFX.back().m_Frame = scaleToHeaderFrameRate(anim, anim->m_EventsPFX.back().m_Frame); |
| 185 | |
| 186 | } |
| 187 | static void animationAddEventPFXStop(Animation* anim, const zCModelScriptEventPfxStop& pfxStop) |
| 188 | { |
| 189 | anim->m_EventsPFXStop.push_back(pfxStop); |
no test coverage detected