// // PlayerObject::boostPlayer from 0x6293d4 to 0x6295a4 (464 bytes) // // 3 xrefs: // > PlayerObject::postCollision @ 0x639694 // > PlayerObject::postCollision @ 0x63984c // > @ 0xabbe8 // // 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) { stl::StringData::Internal *v3; // x2 float v4; // s8 int v5; // w0 float v6; // s0 float v7; // s1 GJSpiderSprite *m_spiderSprite; // x22 char *v9; // x0 unsigned int *v10; // x2 int v11; // w1 std::string v12[2]; // [xsp+50h] [xbp+50h] BYREF a1->m_maybeIsBoosted = 1; a1->m_isOnGround2 = 0; v3 = (stl::StringData::Internal *)_stack_chk_guard; a1->m_isOnGround = 0; a1->m_shouldTryPlacingCheckpoint = 1; a1->m_isAccelerating = 1; v12[1].m_data.m_data = v3; PlayerObject::setYVelocity(a1, a2, 45); if ( a1->m_isDashing ) goto LABEL_9; if ( PlayerObject::isFlying(a1) || a1->m_isBall || a1->m_isRobot ) { if ( !a1->m_isSpider ) goto LABEL_9; } else if ( !a1->m_isSpider ) { PlayerObject::stopRotation(a1, 1, 20); if ( a1->m_vehicleSize == 1.0 ) v4 = 0.86667; else v4 = 0.66667; v5 = PlayerObject::flipMod(a1); a1->m_isRotating = 1; a1->m_rotationSpeed = (float)(-180 * v5) / v4; goto LABEL_9; } m_spiderSprite = a1->m_spiderSprite; sub_D153B8((int)v12, "fall_loop"); CCAnimatedSprite::tweenToAnimation((__int64)m_spiderSprite, v12, 0.1); v9 = (char *)v12[0].m_data.m_data - 24; if ( (__int64 *)v12[0].m_data.m_data - 3 != &qword_124B6B0 ) { if ( &pthread_create ) { v10 = (unsigned int *)((char *)v12[0].m_data.m_data - 8); do v11 = __ldaxr(v10); while ( __stlxr(v11 - 1, v10) ); } else { v11 = *((_DWORD *)v12[0].m_data.m_data - 2); *((_DWORD *)v12[0].m_data.m_data - 2) = v11 - 1; } if ( v11 <= 0 ) operator delete(v9); } LABEL_9: v6 = ((float (__fastcall *)(PlayerObject *))a1->getPosition)(a1); cocos2d::CCPoint::operator=(&a1->m_lastGroundedPos, v6, v7); }
GD Web Decomp Icon

GD Web Decomp

Raw Source