// // GJBaseGameLayer::modifyObjectPhysics from 0x1001f97e8 to 0x1001f98d0 (232 bytes) // // 1 xrefs: // > GJBaseGameLayer::modifyGroupPhysics @ 0x1001f97c4 // // 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::modifyObjectPhysics( GJBaseGameLayer *a1, AdvancedFollowEditObject *a2, GameObjectPhysics *a3) { float m_modX; // s8 float m_modXVariance; // s9 float v8; // s8 float m_modY; // s9 float m_modYVariance; // s10 float v11; // s0 float m_startSpeed; // s8 float m_startSpeedVariance; // s9 float v14; // s8 float m_startDirection; // s9 float m_startDirectionVariance; // s10 float v17; // s0 float v18; // [xsp+8h] [xbp-48h] float v19; // [xsp+Ch] [xbp-44h] m_modX = a2->m_modX; m_modXVariance = a2->m_modXVariance; v8 = m_modX + (float)(m_modXVariance * GameToolbox::fast_rand_0_1()); m_modY = a2->m_modY; m_modYVariance = a2->m_modYVariance; v11 = (float)(m_modY + (float)(m_modYVariance * GameToolbox::fast_rand_0_1())) * a3->m_unkPoint1.y; a3->m_unkPoint1.x = v8 * a3->m_unkPoint1.x; a3->m_unkPoint1.y = v11; m_startSpeed = a2->m_startSpeed; m_startSpeedVariance = a2->m_startSpeedVariance; v14 = m_startSpeed + (float)(m_startSpeedVariance * GameToolbox::fast_rand_0_1()); if ( v14 != 0.0 ) { m_startDirection = a2->m_startDirection; m_startDirectionVariance = a2->m_startDirectionVariance; v17 = GameToolbox::fast_rand_0_1(); GJBaseGameLayer::getFollowSpeedVal( a1, a3->m_gameObject, a2->m_startSpeedReference, a2->m_startDirectionReference, m_startDirection + (float)(m_startDirectionVariance * v17), v14); if ( !a2->m_xOnly ) a3->m_unkPoint1.y = v19 + a3->m_unkPoint1.y; if ( !a2->m_yOnly ) a3->m_unkPoint1.x = v18 + a3->m_unkPoint1.x; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source