// // GJBaseGameLayer::processPlayerFollowActions from 0x86328c to 0x8634c4 (568 bytes) // // 2 xrefs: // > GJBaseGameLayer::processMoveActionsStep @ 0x89d264 // > @ 0x538f8 // // 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 GJBaseGameLayer::processPlayerFollowActions(GJBaseGameLayer *a1, float a2) { GJEffectManager *m_effectManager; // x19 CCMoveCNode **m_start; // x21 CCMoveCNode **m_finish; // x24 float v6; // s0 double v7; // d11 CCMoveCNode *v8; // x27 int v9; // w0 cocos2d::CCArray *Group; // x0 cocos2d::CCArray *v11; // x23 double v12; // d9 float v13; // s9 cocos2d::ccArray *data; // x0 cocos2d::CCObject **arr; // x28 cocos2d::CCObject **v16; // x22 cocos2d::CCObject *v17; // x19 float v18; // s10 unsigned int m_commandIndex; // w0 double v20; // d1 int v21; // s0 float m_unk0b0; // s0 float OldPosition; // s0 float v24; // s8 float v25; // s0 __int64 v26; // [xsp+90h] [xbp+90h] BYREF m_effectManager = a1->m_effectManager; m_start = m_effectManager->m_unkVector6f0.m_start; m_finish = m_effectManager->m_unkVector6f0.m_finish; v6 = a2 * 60.0; if ( m_finish != m_start ) { v7 = v6; do { v8 = *m_start; v9 = (*m_start)->getTag(*m_start); Group = GJBaseGameLayer::getGroup(a1, v9); v11 = Group; v12 = v7 * v8->m_unk0a8; if ( v12 < 1.0 ) { if ( v12 > 0.0 ) v13 = v12; else v13 = 0.0; } else { v13 = 1.0; } if ( Group ) { data = Group->data; if ( data->num ) { arr = data->arr; v16 = &arr[data->num - 1]; if ( arr <= v16 ) { v17 = *arr; if ( *arr ) { v18 = v7 * v8->m_unk0c0; do { if ( !BYTE2(v17[22].m_unknown2) ) { m_commandIndex = a1->m_gameState.m_commandIndex; if ( v17[21].m_nZOrder != m_commandIndex ) { v20 = *(double *)&v17[16].m_uIndexInArray; v17[21].m_nZOrder = m_commandIndex; *(float *)&v20 = v20; *(float *)&v21 = *(double *)&v17[16].m_unknown2; v17[21].m_uIndexInArray = LODWORD(v20); v17[21].m_uUnknown = v21; GameObject::dirtifyObjectRect((GameObject *)v17); } } m_unk0b0 = v8->m_unk0b0; OldPosition = PlayerObject::getOldPosition(a1->m_player1, m_unk0b0); if ( OldPosition != 0.0 ) { v24 = OldPosition + (float)v8->m_unk0b8; ((void (__fastcall *)(__int64 *__return_ptr, cocos2d::CCObject *))v17->__vftable[16].getTag)( &v26, v17); v25 = v13 * (float)(v24 - *((float *)&v26 + 1)); if ( v25 != 0.0 ) { if ( v18 > 0.0 ) { if ( v18 < v25 ) { v25 = v18; } else if ( v25 < (float)-v18 ) { v25 = -v18; } } *(double *)&v17[16].m_unknown2 = *(double *)&v17[16].m_unknown2 + v25; GameObject::dirtifyObjectPos((GameObject *)v17); } } if ( v16 < ++arr ) break; v17 = *arr; } while ( *arr ); } } } } ++m_start; a1->updateDisabledObjectsLastPos(a1, v11); } while ( m_finish != m_start ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source