// // PlayerObject::updateStaticForce from 0x3418b8 to 0x341986 (206 bytes) // // 1 xrefs: // > GJBaseGameLayer::teleportPlayer @ 0x49159a // // 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 PlayerObject::updateStaticForce(PlayerObject *a1, float a2, float a3, bool a4) { _BOOL4 v4; // r8 float Length; // s15 float y; // r2 cocos2d::CCPoint v9; // r1 bool v10; // r3 cocos2d::CCPoint v11; // [sp+4h] [bp-14h] BYREF cocos2d::CCPoint v12; // [sp+Ch] [bp-Ch] BYREF v4 = a4; if ( a3 != 0.0 || a4 ) { cocos2d::ccpForAngle(&v11, a2 * 0.017453); Length = cocos2d::CCPoint::getLength(&v11); if ( Length > 0.0 ) { cocos2d::CCPoint::operator*(&v12, &v11, a3 / Length); cocos2d::CCPoint::operator=(&v11, &v12); if ( a1->m_isSideways ) { y = v11.y; v11.y = v11.x; v11.x = y; } cocos2d::CCPoint::CCPoint(&v12, &v11); LODWORD(v9.x) = &v12; LODWORD(v9.y) = v4; PlayerObject::updatePlayerForce(a1, v9, v10); } } else { a1->m_isAccelerating = 0; a1->m_yVelocity = 0.0; if ( a1->m_isPlatformer ) { a1->m_platformerXVelocity = 0.0; a1->m_affectedByForces = 0; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source