// // PlayerObject::boostPlayer from 0x14039fee0 to 0x1403a008e (430 bytes) // // 3 xrefs: // > PlayerObject::postCollision @ 0x14038d966 // > PlayerObject::postCollision @ 0x14038ec5c // > @ 0x1406d68cc // // 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::boostPlayer(PlayerObject *a1, float a2) { double v3; // xmm0_8 double v4; // xmm7_8 float v5; // xmm1_4 int v6; // eax const cocos2d::CCPoint *v7; // rax void *v8[4]; // [rsp+20h] [rbp-38h] BYREF a1->m_maybeIsBoosted = 1; a1->m_isOnGround2 = 0; a1->m_isOnGround = 0; a1->m_shouldTryPlacingCheckpoint = 1; a1->m_isAccelerating = 1; v3 = a2; v4 = (double)(int)a2; if ( a2 != v4 ) v3 = round((v3 - v4) * 1000.0) / 1000.0 + v4; a1->m_yVelocity = v3; if ( !a1->m_isDashing ) { if ( a1->m_isShip || a1->m_isBird || a1->m_isDart || a1->m_isSwing || a1->m_isBall || a1->m_isRobot ) { if ( !a1->m_isSpider ) goto LABEL_19; } else if ( !a1->m_isSpider ) { a1->m_isBallRotating2 = 0; a1->m_isBallRotating = 0; if ( a1->m_vehicleSize == 1.0 ) v5 = 0.86666667; else v5 = 0.66666669; v6 = 180; if ( !a1->m_isUpsideDown ) v6 = -180; a1->m_rotationSpeed = (float)v6 / v5; a1->m_isRotating = 1; goto LABEL_19; } v8[1] = (void *)112; v8[2] = (void *)9; v8[3] = (void *)15; v8[0] = (void *)0x6F6F6C5F6C6C6166LL; CCAnimatedSprite::tweenToAnimation((__int64)a1->m_spiderSprite, v8, 0.1); } LABEL_19: v7 = a1->getPosition_0(a1); cocos2d::CCPoint::operator=(&a1->m_lastGroundedPos, v7); }
GD Web Decomp Icon

GD Web Decomp

Raw Source