// // GJBaseGameLayer::processPlayerFollowActions from 0x100146640 to 0x10014690c (716 bytes) // // 2 xrefs: // > GJBaseGameLayer::processMoveActionsStep @ 0x100144674 // > GJBaseGameLayer::update @ 0x10015214a // // 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) { cocos2d::CCArray *v2; // rsi GJEffectManager *m_effectManager; // rax _QWORD *begin; // rcx __int64 v6; // r15 __int64 v7; // rdi int v8; // eax intptr_t v9; // r13 cocos2d::CCArray *v10; // r14 double v11; // xmm0_8 int v12; // xmm1_4 float v13; // xmm1_4 cocos2d::ccArray *data; // rax float v15; // xmm0_4 cocos2d::CCObject **arr; // r12 unsigned __int64 v17; // r14 float v18; // xmm0_4 cocos2d::CCObject *v19; // r13 unsigned int m_commandIndex; // eax float v21; // xmm0_4 float OldPosition; // xmm0_4 float v23; // xmm1_4 float v24; // [rsp+0h] [rbp-80h] float v25; // [rsp+10h] [rbp-70h] char v26[4]; // [rsp+28h] [rbp-58h] BYREF float v27; // [rsp+2Ch] [rbp-54h] _QWORD *v28; // [rsp+30h] [rbp-50h] std::__vector_base::pointer end; // [rsp+38h] [rbp-48h] cocos2d::CCArray *v30; // [rsp+40h] [rbp-40h] double v31; // [rsp+48h] [rbp-38h] float v32; // [rsp+50h] [rbp-30h] float v33; // [rsp+54h] [rbp-2Ch] m_effectManager = a1->m_effectManager; begin = m_effectManager->m_unkVector6f0.__begin_; end = m_effectManager->m_unkVector6f0.__end_; if ( begin != end ) { v31 = (float)(a2 * 60.0); while ( 1 ) { v28 = begin; v6 = *begin; v7 = *begin; v8 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*begin + 64LL))(*begin); v9 = (unsigned int)v8; if ( v8 >= 9999 ) v9 = 9999; if ( (int)v9 <= 0 ) v9 = 0; v10 = a1->m_groups.__begin_[v9]; if ( !v10 ) { v10 = (cocos2d::CCArray *)sub_10071F9E0(v7, v2); cocos2d::CCDictionary::setObject(a1->m_groupDict, v10, v9); a1->m_groups.__begin_[v9] = v10; } v11 = *(double *)(v6 + 168) * v31; v12 = 1065353216; if ( v11 <= 0.0 ) v12 = 0; v33 = 1.0; if ( v11 < 1.0 ) v33 = *(float *)&v12; if ( v11 > 0.0 ) break; v13 = v33; if ( v11 < 1.0 ) goto LABEL_18; LABEL_19: v30 = v10; if ( v10 ) { data = v30->data; if ( data->num ) { v15 = *(double *)(v6 + 192) * v31; arr = data->arr; v17 = (unsigned __int64)&arr[data->num - 1]; v24 = v15; v25 = -v15; do { v19 = *arr; if ( !*arr ) break; if ( !BYTE2(v19[23].__vftable) ) { m_commandIndex = a1->m_gameState.m_commandIndex; if ( HIDWORD(v19[22].__vftable) != m_commandIndex ) { *(_QWORD *)&v19[21].m_uOrderOfArrival = *(_QWORD *)&v19[16].m_uOrderOfArrival; HIDWORD(v19[22].__vftable) = m_commandIndex; GameObject::dirtifyObjectRect((GameObject *)v19); } } v21 = *(double *)(v6 + 176); OldPosition = PlayerObject::getOldPosition(a1->m_player1, v21); if ( OldPosition != 0.0 ) { v32 = OldPosition + (float)*(int *)(v6 + 184); ((void (__fastcall *)(char *, cocos2d::CCObject *))v19->__vftable[16].getTag)(v26, v19); v23 = (float)(v32 - v27) * v33; if ( v23 != 0.0 ) { v18 = v24; if ( v24 <= 0.0 ) { v18 = (float)(v32 - v27) * v33; } else if ( v23 <= v24 ) { v18 = (float)(v32 - v27) * v33; if ( v25 > v23 ) v18 = v25; } *(double *)&v19[17].__vftable = v18 + *(double *)&v19[17].__vftable; GameObject::dirtifyObjectPos((GameObject *)v19); } } ++arr; } while ( (unsigned __int64)arr <= v17 ); } } v2 = v30; ((void (__fastcall *)(GJBaseGameLayer *, cocos2d::CCArray *))a1->updateDisabledObjectsLastPos)(a1, v30); begin = v28 + 1; if ( v28 + 1 == end ) return; } v13 = v11; if ( v11 >= 1.0 ) goto LABEL_19; LABEL_18: v33 = v13; goto LABEL_19; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source