//
// GroupCommandObject2::GroupCommandObject2 from 0x1004ecb30 to 0x1004ecce9 (441 bytes)
//
// 1 xrefs:
// > sub_1004ECE70 @ 0x1004ece75
//
// 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
//
GroupCommandObject2 *__fastcall GroupCommandObject2::GroupCommandObject2(GroupCommandObject2 *a1)
{
int v1; // eax
KeyframeObject *begin; // r12
std::__vector_base::pointer end; // r15
GroupCommandObject2 *result; // rax
sub_10028CC30(&a1->m_moveOffset);
*(_OWORD *)&a1->m_keyframes.__begin_ = 0;
a1->m_keyframes.__end_cap_.__value_ = nullptr;
sub_10028CC30(&a1->m_splineRelated);
*(_OWORD *)&a1->m_remapKeys.__begin_ = 0;
a1->m_remapKeys.__end_cap_.__value_ = nullptr;
v1 = dword_10099CA80;
a1->m_groupCommandUniqueID = dword_10099CA80;
dword_10099CA80 = v1 + 1;
*(_OWORD *)((char *)&a1->m_lockedCurrentYOffset + 1) = 0;
*(_OWORD *)((char *)&a1->m_oldDeltaY + 4) = 0;
*(_OWORD *)((char *)&a1->m_deltaY + 4) = 0;
*(_OWORD *)((char *)&a1->m_currentYOffset + 4) = 0;
*(_OWORD *)&a1->m_centerGroupID = 0;
*(_OWORD *)((char *)&a1->m_duration + 4) = 0;
*(_OWORD *)&a1->m_easingType = 0;
*(_OWORD *)&a1->m_moveModX = xmmword_100815170;
a1->m_targetPlayer = 0;
*(_OWORD *)&a1->m_currentRotateOrTransformValue = 0;
*(_OWORD *)&a1->m_someInterpValue1RelatedOne = 0;
*(_OWORD *)((char *)&a1->m_someInterpValue2RelatedOne + 1) = 0;
*(_OWORD *)&a1->m_followXMod = xmmword_100815170;
a1->m_commandType = 0;
*(_OWORD *)&a1->m_someInterpValue1 = xmmword_100815170;
a1->m_deltaTimeInFloat = 0.0;
*(_OWORD *)&a1->m_keyframeRelated = 0;
*(_OWORD *)&a1->m_targetScaleY = 0;
*(_OWORD *)&a1->m_transformTriggerProperty451 = 0;
*(_OWORD *)((char *)&a1->m_someInterpValue1RelatedZero + 3) = 0;
*(_OWORD *)&a1->m_followYSpeed = 0;
*(_OWORD *)&a1->m_someInterpValue1Related = 0;
a1->m_followYOffset = 0;
*(_OWORD *)&a1->m_followYMaxSpeed = 0;
*(_OWORD *)&a1->m_deltaX_3 = 0;
*(_OWORD *)&a1->m_oldDeltaX_3 = 0;
*(_OWORD *)&a1->m_Delta_3_Related = 0;
*(_OWORD *)&a1->m_actionType1 = 0;
*(_OWORD *)((char *)&a1->m_actionValue1 + 1) = 0;
*(_WORD *)&a1->m_alreadyUpdated = 1;
begin = a1->m_keyframes.__begin_;
end = a1->m_keyframes.__end_;
if ( end == begin )
{
result = nullptr;
}
else
{
do
sub_1002EFB90(--end);
while ( end != begin );
result = (GroupCommandObject2 *)a1->m_remapKeys.__begin_;
}
a1->m_keyframes.__end_ = begin;
a1->m_remapKeys.__end_ = &result->m_groupCommandUniqueID;
a1->m_someInterpValue2RelatedTrue = 0;
a1->m_unkInt204 = 0;
*(_OWORD *)&a1->m_splineRelated.x = 0;
a1->m_gameObjectRotation = 0.0;
return result;
}