//
// GroupCommandObject2::step from 0x1004ece80 to 0x1004ecf50 (208 bytes)
//
// 2 xrefs:
// > GJEffectManager::prepareMoveActions @ 0x1002e5b1d
// > GJEffectManager::prepareMoveActions @ 0x1002e7183
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GroupCommandObject2::step(GroupCommandObject2 *a1, float a2)
{
double v2; // xmm1_8
int m_actionType1; // esi
float m_actionValue1; // xmm0_4
int m_actionType2; // esi
float m_actionValue2; // xmm0_4
float m_deltaTimeInFloat; // xmm0_4
double m_duration; // xmm0_8
if ( a1->m_disabled )
return;
v2 = a2 + a1->m_deltaTime;
a1->m_deltaTime = v2;
if ( a1->m_finished )
return;
if ( a1->m_alreadyUpdated )
{
a1->m_alreadyUpdated = 0;
m_actionType1 = a1->m_actionType1;
if ( m_actionType1 )
goto LABEL_5;
LABEL_11:
m_duration = a1->m_duration;
if ( v2 < m_duration || m_duration == -1.0 )
return;
LABEL_13:
a1->m_finished = 1;
return;
}
a1->m_deltaTimeInFloat = a2 + a1->m_deltaTimeInFloat;
m_actionType1 = a1->m_actionType1;
if ( !m_actionType1 )
goto LABEL_11;
LABEL_5:
m_actionValue1 = a1->m_actionValue1;
GroupCommandObject2::updateAction(a1, m_actionType1, m_actionValue1);
m_actionType2 = a1->m_actionType2;
if ( m_actionType2 )
{
m_actionValue2 = a1->m_actionValue2;
GroupCommandObject2::updateAction(a1, m_actionType2, m_actionValue2);
}
m_deltaTimeInFloat = a1->m_deltaTimeInFloat;
if ( m_deltaTimeInFloat > 0.0 && m_deltaTimeInFloat >= a1->m_duration )
goto LABEL_13;
}