// // GJBaseGameLayer::generatePickupAnimRandVal from 0x1001e9a30 to 0x1001e9b80 (336 bytes) // // 1 xrefs: // > GameObject::playDestroyObjectAnim @ 0x10034a378 // // 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::generatePickupAnimRandVal(GJBaseGameLayer *a1, GameObject *a2, float *a3, float *a4) { float *v8; // x23 __int64 v9; // x0 int v10; // w8 int v11; // w9 std::__tree_end_node *>::pointer left; // x10 int v13; // w11 int v14; // w11 float v15; // s8 float v16; // s9 __int64 v17; // x0 _DWORD v18[2]; // [xsp+Ch] [xbp-54h] BYREF char v19; // [xsp+17h] [xbp-49h] BYREF _DWORD *v20; // [xsp+18h] [xbp-48h] BYREF v8 = (float *)((__int64 (__fastcall *)(GameObject *))a2->getPosition)(a2); v9 = ((__int64 (__fastcall *)(GameObject *))a2->getPosition)(a2); v10 = (int)*v8; v11 = (int)*(float *)(v9 + 4); v18[0] = v10; v18[1] = v11; left = a1->m_destroyObjectValues.__tree_.__pair1_.__value_.__left_; if ( left ) { while ( 1 ) { v13 = *((_DWORD *)left + 7); if ( v13 <= v10 ) { if ( v13 < v10 ) goto LABEL_6; v14 = *((_DWORD *)left + 8); if ( v14 <= v11 ) break; } LABEL_7: left = *(std::__tree_end_node *>::pointer *)left; if ( !left ) goto LABEL_8; } if ( v14 >= v11 ) goto LABEL_9; LABEL_6: left = (std::__tree_end_node *>::pointer)((char *)left + 8); goto LABEL_7; } LABEL_8: v15 = (float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 2.0) + -1.0; v16 = vcvts_n_f32_s32(rand(), 0x1Fu); v20 = v18; v17 = sub_10020BE58(&a1->m_destroyObjectValues, v18, &unk_10063A31C, &v20, &v19); *(float *)(v17 + 36) = v15; *(float *)(v17 + 40) = v16; LABEL_9: v20 = v18; *a3 = *(float *)(sub_10020BE58(&a1->m_destroyObjectValues, v18, &unk_10063A31C, &v20, &v19) + 36); v20 = v18; *a4 = *(float *)(sub_10020BE58(&a1->m_destroyObjectValues, v18, &unk_10063A31C, &v20, &v19) + 40); }
GD Web Decomp Icon

GD Web Decomp

Raw Source