// // PlayerObject::updateStaticForce from 0x6290a0 to 0x6291d0 (304 bytes) // // 2 xrefs: // > GJBaseGameLayer::teleportPlayer @ 0x88a0c0 // > @ 0x48ab0 // // 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 // // local variable allocation has failed, the output may be wrong! void PlayerObject::updateStaticForce(PlayerObject *a1, float a2, float a3, bool a4) { _BOOL4 m_isPlatformer; // w0 float v6; // s2 float v7; // s0 float v8; // s1 float x; // w1 __int64 v10; // [xsp+0h] [xbp+0h] BYREF float v11[6]; // [xsp+40h] [xbp+40h] cocos2d::CCPoint v12; // [xsp+58h] [xbp+58h] BYREF cocos2d::CCPoint v13; // [xsp+60h] [xbp+60h] BYREF cocos2d::CCPoint v14; // 0:s0.4,4:s1.4 if ( (a3 == 0.0) <= (unsigned int)a4 ) { *(_OWORD *)v11 = *(_OWORD *)&a3; cocos2d::ccpForAngle(a2 * 0.017453); v6 = sqrtf((float)(v12.y * v12.y) + (float)(v12.x * v12.x)); if ( v6 > 0.0 ) { cocos2d::CCPoint::operator*(&v12, v11[0] / v6); cocos2d::CCPoint::operator=(&v12, v7, v8); if ( a1->m_isSideways ) { x = v12.x; v12.x = v12.y; v12.y = x; } cocos2d::CCPoint::CCPoint(&v13, &v12); PlayerObject::updatePlayerForce(a1, v14, (unsigned __int8)&v10 + 96); } } else { m_isPlatformer = a1->m_isPlatformer; a1->m_isAccelerating = 0; a1->m_yVelocity = 0.0; if ( m_isPlatformer ) { a1->m_platformerXVelocity = 0.0; a1->m_affectedByForces = 0; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source