// // GJBaseGameLayer::spawnParticleTrigger_1 from 0x100204018 to 0x10020417c (356 bytes) // // 1 xrefs: // > EffectGameObject::triggerObject @ 0x100385e50 // // 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::spawnParticleTrigger_1(GJBaseGameLayer *a1, SpawnParticleGameObject *a2) { float v4; // s8 float m_scale; // s9 unsigned int v6; // w21 float m_scaleVariance; // s12 __int64 *v8; // x0 int m_centerGroupID; // w1 GameObject *Object; // x0 GameObject *v11; // x22 double *v12; // x0 double v13; // d0 int m_targetGroupID; // w20 float v15; // s2 float v16; // s3 __int64 v17; // [xsp+0h] [xbp-60h] BYREF __int64 v18; // [xsp+8h] [xbp-58h] BYREF cocos2d::CCPoint v19; // 0:s0.4,4:s1.4 v4 = a2->m_rotation + (float)((float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 2.0) + -1.0) * a2->m_rotationVariance); m_scale = a2->m_scale; v6 = rand(); m_scaleVariance = a2->m_scaleVariance; v8 = (__int64 *)((__int64 (__fastcall *)(SpawnParticleGameObject *))a2->getPosition)(a2); sub_1000229B8(&v18, v8); m_centerGroupID = a2->m_centerGroupID; if ( m_centerGroupID >= 1 ) { Object = GJBaseGameLayer::tryGetObject(a1, m_centerGroupID); if ( Object ) { v11 = Object; v12 = (double *)((__int64 (__fastcall *)(GameObject *))Object->getPosition)(Object); v13 = sub_1000229D0(&v18, v12); if ( a2->m_matchRotation ) v4 = v4 + ((float (__fastcall *)(GameObject *, double))v11->getRotation)(v11, v13); } } *(float *)&v18 = *(float *)&v18 + (float)(a2->m_offset.x + (float)((float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 2.0) + -1.0) * a2->m_offsetVariance.x)); *((float *)&v18 + 1) = *((float *)&v18 + 1) + (float)(a2->m_offset.y + (float)((float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 2.0) + -1.0) * a2->m_offsetVariance.y)); m_targetGroupID = a2->m_targetGroupID; sub_1000229B8(&v17, &v18); v19.x = v4; v19.y = m_scale + (float)((float)((float)(vcvts_n_f32_s32(v6, 0x1Fu) * 2.0) + -1.0) * m_scaleVariance); GJBaseGameLayer::spawnParticleTrigger(a1, m_targetGroupID, v19, v15, v16); }
GD Web Decomp Icon

GD Web Decomp

Raw Source