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

Function animationAddEventSFXGround

src/content/AnimationLibrary.cpp:197–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195 }
196
197 static void animationAddEventSFXGround(Animation* anim, const zCModelScriptEventSfx& sfx)
198 {
199 anim->m_EventsSFXGround.push_back(sfx);
200
201 if (anim->m_EventsSFXGround.back().m_Frame == -1)
202 {
203 anim->m_EventsSFXGround.back().m_Frame = anim->m_LastFrame - 1;
204 }
205
206 // Normalize to range specified in the MDS
207 anim->m_EventsSFXGround.back().m_Frame = scaleToHeaderFrameRate(anim, anim->m_EventsSFXGround.back().m_Frame);
208 }
209
210 static void animationAddEventTag(Animation* anim, const zCModelScriptEventTag& tag)
211 {

Callers 1

loadModelScriptMethod · 0.85

Calls 3

scaleToHeaderFrameRateFunction · 0.85
push_backMethod · 0.80
backMethod · 0.80

Tested by

no test coverage detected