// // GJBaseGameLayer::processPlayerFollowActions from 0x1001f85b8 to 0x1001f87b8 (512 bytes) // // 1 xrefs: // > GJBaseGameLayer::processMoveActionsStep @ 0x1001f7108 // // 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 GJBaseGameLayer::processPlayerFollowActions(GJBaseGameLayer *a1, float a2) { GJEffectManager *m_effectManager; // x8 _QWORD *begin; // x23 std::__vector_base::pointer end; // x24 double v6; // d8 __int64 v7; // x20 int v8; // w0 cocos2d::CCArray *Group; // x0 cocos2d::CCArray *v10; // x21 double v11; // d0 _BOOL4 v12; // w8 _BOOL4 v13; // w9 float v14; // s1 float v15; // s0 float v16; // s12 cocos2d::ccArray *data; // x9 __int64 num; // x8 float v19; // s13 cocos2d::CCObject **arr; // x25 unsigned __int64 v21; // x26 cocos2d::CCObject *v22; // x22 unsigned int m_commandIndex; // w8 float v24; // s0 float OldPosition; // s0 float v26; // s15 float v27; // s0 float v28; // s1 __int64 v29; // [xsp+8h] [xbp-88h] BYREF m_effectManager = a1->m_effectManager; begin = m_effectManager->m_unkVector6f0.__begin_; end = m_effectManager->m_unkVector6f0.__end_; if ( begin != end ) { v6 = (float)(a2 * 60.0); do { v7 = *begin; v8 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*begin + 64LL))(*begin); Group = GJBaseGameLayer::getGroup(a1, v8); v10 = Group; v11 = *(double *)(v7 + 168) * v6; v12 = v11 >= 1.0; v13 = v11 > 0.0 || v11 >= 1.0; if ( v11 <= 0.0 ) v12 = 1; if ( v13 ) v14 = 1.0; else v14 = 0.0; v15 = v11; if ( v12 ) v16 = v14; else v16 = v15; if ( Group ) { data = Group->data; num = data->num; if ( (_DWORD)num ) { v19 = *(double *)(v7 + 192) * v6; arr = data->arr; v21 = (unsigned __int64)&arr[num - 1]; do { v22 = *arr; if ( !*arr ) break; if ( (BYTE2(v22[23].__vftable) & 1) == 0 ) { m_commandIndex = a1->m_gameState.m_commandIndex; if ( HIDWORD(v22[22].__vftable) != m_commandIndex ) { *(float32x2_t *)&v22[21].m_uOrderOfArrival = vcvt_f32_f64(*(float64x2_t *)&v22[16].m_uOrderOfArrival); HIDWORD(v22[22].__vftable) = m_commandIndex; GameObject::dirtifyObjectRect((GameObject *)v22); } } v24 = *(double *)(v7 + 176); OldPosition = PlayerObject::getOldPosition(a1->m_player1, v24); if ( OldPosition != 0.0 ) { v26 = OldPosition + (float)*(int *)(v7 + 184); ((void (__fastcall *)(__int64 *__return_ptr, cocos2d::CCObject *))v22->__vftable[16].getTag)(&v29, v22); v27 = v16 * (float)(v26 - *((float *)&v29 + 1)); if ( v27 != 0.0 ) { if ( v19 <= 0.0 ) { v28 = v16 * (float)(v26 - *((float *)&v29 + 1)); } else { v28 = v19; if ( v27 <= v19 ) { v28 = v16 * (float)(v26 - *((float *)&v29 + 1)); if ( v27 < (float)-v19 ) v28 = -v19; } } *(double *)&v22[17].__vftable = *(double *)&v22[17].__vftable + v28; GameObject::dirtifyObjectPos((GameObject *)v22); } } ++arr; } while ( (unsigned __int64)arr <= v21 ); } } ((void (__fastcall *)(GJBaseGameLayer *, cocos2d::CCArray *))a1->updateDisabledObjectsLastPos)(a1, v10); ++begin; } while ( begin != end ); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source