// // GJBaseGameLayer::processPlayerFollowActions from 0x5948dc to 0x594a94 (440 bytes) // // 1 xrefs: // > GJBaseGameLayer::processMoveActionsStep @ 0x5bc890 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:53:08 +0000 // int __fastcall GJBaseGameLayer::processPlayerFollowActions(int this, float a2) { int v2; // r5 float v3; // s19 int v4; // r3 double **v5; // r10 double **v6; // r8 double *v7; // r6 double *v8; // t1 int v9; // r0 cocos2d::CCObject *Group; // r0 double v11; // d6 cocos2d::CCObject *v12; // r9 float v13; // s17 _DWORD *v14; // r3 int *v15; // r7 float v16; // s18 int v17; // r4 int v18; // t1 float v19; // s14 float v20; // s14 float v21; // s15 float v22; // s14 float v23; // s16 float v24; // s14 int *v25; // [sp+0h] [bp-Ch] float v26[2]; // [sp+Ch] [bp+0h] BYREF v2 = this; v3 = a2 * 60.0; v4 = *(_DWORD *)(this + 1524); v5 = *(double ***)(v4 + 884); v6 = *(double ***)(v4 + 880); while ( v6 != v5 ) { v8 = *v6++; v7 = v8; v9 = (*(int (__fastcall **)(double *))(*(_DWORD *)v8 + 32))(v8); Group = GJBaseGameLayer::getGroup((GJBaseGameLayer *)v2, v9); v11 = v3 * v8[21]; v12 = Group; if ( v11 >= 1.0 ) { v13 = 1.0; } else if ( v11 > 0.0 ) { v13 = v11; } else { v13 = 0.0; } if ( Group ) { v14 = *((_DWORD **)Group + 13); if ( *v14 ) { v15 = (int *)v14[3]; v25 = &v15[*v14 - 1]; v16 = v7[24] * v3; while ( v15 <= v25 ) { v18 = *v15++; v17 = v18; if ( !v18 ) break; if ( !*(_BYTE *)(v17 + 1110) && *(_DWORD *)(v17 + 1072) != *(_DWORD *)(v2 + 808) ) { v19 = *(double *)(v17 + 808); *(float *)(v17 + 1060) = v19; v20 = *(double *)(v17 + 816); *(float *)(v17 + 1064) = v20; *(_DWORD *)(v17 + 1072) = *(_DWORD *)(v2 + 808); GameObject::dirtifyObjectRect(v17); } v21 = v7[22]; v22 = COERCE_FLOAT(PlayerObject::getOldPosition(*(PlayerObject **)(v2 + 2076), v21)); if ( v22 != 0.0 ) { v23 = v22 + (float)*((int *)v7 + 46); (*(void (__fastcall **)(float *, int))(*(_DWORD *)v17 + 680))(v26, v17); v24 = (float)(v23 - v26[1]) * v13; if ( v24 != 0.0 ) { if ( v16 > 0.0 ) { if ( v24 > v16 ) { v24 = v16; } else if ( v24 < (float)-v16 ) { v24 = -v16; } } *(double *)(v17 + 816) = *(double *)(v17 + 816) + v24; GameObject::dirtifyObjectPos(v17); } } } } } this = (*(int (__fastcall **)(int, cocos2d::CCObject *))(*(_DWORD *)v2 + 688))(v2, v12); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source