MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / vfUpdateSounds

Method vfUpdateSounds

ogsr_engine/xrGame/script_entity.cpp:210–215  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210void CScriptEntity::vfUpdateSounds()
211{
212 CScriptSoundAction& l_tSoundAction = GetCurrentAction()->m_tSoundAction;
213 if (xr_strlen(l_tSoundAction.m_caBoneName) && m_current_sound && m_current_sound->_feedback())
214 m_current_sound->_feedback()->set_position(GetUpdatedMatrix(l_tSoundAction.m_caBoneName, l_tSoundAction.m_tSoundPosition, Fvector().set(0, 0, 0)).c);
215}
216
217void CScriptEntity::vfFinishAction(CScriptEntityAction* tpEntityAction)
218{

Callers 1

ActionCallbackFunction · 0.80

Calls 4

_feedbackMethod · 0.80
xr_strlenFunction · 0.50
set_positionMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected