//
// GroupCommandObject2::runPlayerFollowCommand from 0xa6b630 to 0xa6b6cc (156 bytes)
//
// 2 xrefs:
// > GJEffectManager::createPlayerFollowCommand @ 0x8b2aec
// > ??> @ 0xc3a08
//
// 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 GroupCommandObject2::runPlayerFollowCommand(
GroupCommandObject2 *a1,
double a2,
double a3,
int a4,
double a5,
double a6)
{
a1->m_commandType = 3;
if ( a2 > 500.0 )
{
a1->m_followYOffset = a4;
a1->m_followYSpeed = 500.0;
a1->m_followYDelay = a3;
a1->m_followYMaxSpeed = a5;
a1->m_duration = a6;
return;
}
if ( a2 <= 0.0 )
{
a1->m_followYOffset = a4;
a1->m_followYDelay = a3;
a1->m_followYMaxSpeed = a5;
a1->m_duration = a6;
a1->m_followYSpeed = 0.0;
LABEL_5:
a1->m_finished = 1;
a1->m_finishRelated = 1;
return;
}
if ( a2 > 500.0 )
{
a1->m_followYSpeed = 500.0;
a1->m_followYOffset = a4;
a1->m_followYDelay = a3;
a1->m_followYMaxSpeed = a5;
a1->m_duration = a6;
return;
}
a1->m_followYOffset = a4;
a1->m_followYSpeed = a2;
a1->m_followYDelay = a3;
a1->m_followYMaxSpeed = a5;
a1->m_duration = a6;
if ( a2 <= 0.0 )
goto LABEL_5;
}