MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / animationAddEventSFX

Function animationAddEventSFX

src/content/AnimationLibrary.cpp:162–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

loadModelScriptMethod · 0.85

Calls 3

scaleToHeaderFrameRateFunction · 0.85
push_backMethod · 0.80
backMethod · 0.80

Tested by

no test coverage detected