// // PlayerObject::stopDashing from 0x10021ca7c to 0x10021d024 (1448 bytes) // // 8 xrefs: // > PlayerObject::playCompleteEffect @ 0x10005cde8 // > PlayerObject::update @ 0x10021a320 // > PlayerObject::collidedWithObjectInternal @ 0x100222754 // > PlayerObject::collidedWithObjectInternal @ 0x100222810 // > PlayerObject::resetObject @ 0x100226a9c // > PlayerObject::playerDestroyed @ 0x100227ba8 // > PlayerObject::releaseButton @ 0x100228ddc // > PlayerObject::touchedObject @ 0x10022e5f4 // // 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 PlayerObject::stopDashing(PlayerObject *a1) { __n128 v1; // q0 __n128 v2; // q1 DashRingObject *m_dashRing; // x8 cocos2d::CCSprite *v5; // x20 GameManager *v6; // x0 cocos2d::CCSprite *v7; // x21 __n128 v8; // q0 __n128 v9; // q1 float32x2_t *v10; // x22 float32x2_t *v11; // x0 double v12; // d0 float v13; // s0 float v14; // s0 __int64 v15; // x0 float m_dashAngle; // s0 float v17; // s9 float v18; // s0 cocos2d::CCScaleTo *v19; // x22 char v20; // w0 __int64 v21; // x1 __int64 v22; // x2 __int64 v23; // x3 __int64 v24; // x4 __int64 v25; // x5 __int64 v26; // x6 __int64 v27; // x7 cocos2d::CCSequence *v28; // x0 __n128 v29; // q0 __n128 v30; // q1 cocos2d::CCMoveBy *v31; // x0 cocos2d::CCFadeTo *v32; // x0 cocos2d::CCFadeTo *v33; // x0 float v34; // s8 __n128 v35; // q0 __n128 v36; // q1 float v37; // s1 float v38; // s0 int v39; // w9 float v40; // s2 GJRobotSprite *m_robotSprite; // x20 GJBaseGameLayer *m_gameLayer; // x0 void *__p[2]; // [xsp+10h] [xbp-60h] BYREF char *longStorage; // [xsp+20h] [xbp-50h] float32x2_t v45; // [xsp+30h] [xbp-40h] BYREF __int64 v46; // [xsp+38h] [xbp-38h] BYREF cocos2d::SEL_CallFunc v47; // 0:x1.16 if ( a1->m_isDashing ) { a1->m_isDashing = 0; a1->m_lastLandTime = 0.0; if ( a1->m_isPlatformer ) { m_dashRing = a1->m_dashRing; if ( m_dashRing ) { v2.n128_f64[0] = m_dashRing->m_endBoost; v1.n128_f64[0] = a1->m_dashX * v2.n128_f64[0]; v1.n128_f32[0] = v1.n128_f64[0]; v2.n128_f64[0] = a1->m_dashY * v2.n128_f64[0]; v2.n128_f32[0] = v2.n128_f64[0]; sub_100022980(v1, v2, &v46); sub_1000229B8((__int64 *)&v45, &v46); a1->m_isAccelerating = 1; a1->m_yVelocity = v45.f32[1]; if ( a1->m_isPlatformer ) { a1->m_platformerXVelocity = v45.f32[0]; a1->m_affectedByForces = 1; } if ( a1->m_dashRing->m_stopSlide ) { a1->m_isAccelerating = 0; a1->m_affectedByForces = 0; } } } a1->m_dashRing = nullptr; ((void (__fastcall *)(cocos2d::CCSprite *, _QWORD))a1->m_dashFireSprite->setVisible)(a1->m_dashFireSprite, 0); if ( a1->m_playEffects && !a1->m_maybeReducedEffects ) { v5 = cocos2d::CCSprite::createWithSpriteFrameName("playerDash2_001.png"); v6 = GameManager::sharedState(); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v6->m_playLayer->m_objectLayer->addChild_0)( v6->m_playLayer->m_objectLayer, v5, 40); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v5->setBlendFunc)(v5, 0x100000302LL); v7 = cocos2d::CCSprite::createWithSpriteFrameName("playerDash2_outline_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSprite *, __int64))v5->addChild_0)(v5, v7, 1); ((void (__fastcall *)(__int64 *__return_ptr, cocos2d::CCSprite *))v5->getScaledContentSize)(&v46, v5); v8.n128_f32[0] = *(float *)&v46 * 0.5; v9.n128_f32[0] = *((float *)&v46 + 1) * 0.5; sub_100022980(v8, v9, &v45); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *))v7->setPosition)(v7, &v45); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v7->setOpacity)(v7, 150); v10 = (float32x2_t *)((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); v11 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_dashFireSprite->getPosition)(a1->m_dashFireSprite); *(float32x2_t *)&v12 = sub_1000229DC(v10, v11, &v45); ((void (__fastcall *)(cocos2d::CCSprite *, float32x2_t *, double))v5->setPosition)(v5, &v45, v12); v13 = ((float (__fastcall *)(cocos2d::CCSprite *))a1->m_dashFireSprite->getScaleX)(a1->m_dashFireSprite); ((void (__fastcall *)(cocos2d::CCSprite *, float))v5->setScaleX)(v5, v13 * a1->m_vehicleSize); v14 = ((float (__fastcall *)(cocos2d::CCSprite *))a1->m_dashFireSprite->getScaleY)(a1->m_dashFireSprite); ((void (__fastcall *)(cocos2d::CCSprite *, float))v5->setScaleY)(v5, v14 * a1->m_vehicleSize); v15 = ((__int64 (__fastcall *)(cocos2d::CCSprite *))a1->m_dashFireSprite->getColor)(a1->m_dashFireSprite); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v5->setColor)(v5, v15); m_dashAngle = a1->m_dashAngle; ((void (__fastcall *)(cocos2d::CCSprite *, float))v5->setRotation)(v5, -m_dashAngle); v17 = ((float (__fastcall *)(cocos2d::CCSprite *))v5->getScaleX)(v5) * 0.2; v18 = ((float (__fastcall *)(cocos2d::CCSprite *))v5->getScaleY)(v5); v19 = cocos2d::CCScaleTo::create(0.2, v17, v18 * 0.2); v47.ptr = (void (*)(void))520; v47.adj = 1; v20 = (unsigned __int8)cocos2d::CCCallFunc::create(v5, v47); v28 = sub_10018A494(v19, v21, v22, v23, v24, v25, v26, v27, v20); cocos2d::CCNode::runAction(v5, v28); v29.n128_u32[0] = -20.0; v30.n128_u32[0] = 0; sub_100022980(v29, v30, &v45); v31 = cocos2d::CCMoveBy::create(0.2, (const cocos2d::CCPoint *)&v45); cocos2d::CCNode::runAction(v5, v31); v32 = cocos2d::CCFadeTo::create(0.2, 0); cocos2d::CCNode::runAction(v5, v32); v33 = cocos2d::CCFadeTo::create(0.2, 0); cocos2d::CCNode::runAction(v7, v33); } cocos2d::CCParticleSystem::stopSystem(a1->m_dashParticles); if ( !a1->m_isShip && !a1->m_isBird && !a1->m_isDart && !a1->m_isSwing && !a1->m_isRobot && !a1->m_isSpider ) { v34 = ((float (__fastcall *)(cocos2d::CCSprite *))a1->m_iconSprite->getRotation)(a1->m_iconSprite); ((void (__fastcall *)(cocos2d::CCSprite *, float))a1->m_iconSprite->setScale)(a1->m_iconSprite, 1.0); cocos2d::CCNode::stopAllActions(a1->m_iconSprite); ((void (__fastcall *)(cocos2d::CCSprite *, float))a1->m_iconSprite->setRotation)(a1->m_iconSprite, 0.0); ((void (__fastcall *)(cocos2d::CCSprite *, float))a1->m_iconGlow->setScale)(a1->m_iconGlow, 1.0); cocos2d::CCNode::stopAllActions(a1->m_iconGlow); ((void (__fastcall *)(cocos2d::CCSprite *, float))a1->m_iconGlow->setRotation)(a1->m_iconGlow, 0.0); ((void (__fastcall *)(PlayerObject *, float))a1->setRotation)(a1, v34); if ( a1->m_isPlatformer ) { v35.n128_u64[0] = *(_QWORD *)&a1->m_dashX; v35.n128_f32[0] = v35.n128_f64[0]; v36.n128_u64[0] = *(_QWORD *)&a1->m_dashY; v36.n128_f32[0] = v36.n128_f64[0]; sub_100022980(v35, v36, &v46); v37 = sqrtf((float)(*((float *)&v46 + 1) * *((float *)&v46 + 1)) + (float)(*(float *)&v46 * *(float *)&v46)); v38 = 2.0; if ( v37 <= 17.31 ) v38 = (float)((float)(v37 / 17.31) * 1.5) + 0.5; if ( a1->m_isUpsideDown ) v39 = -180; else v39 = 180; if ( a1->m_isGoingLeft ) v39 = -v39; v40 = (float)v39; if ( a1->m_isSideways ) v40 = -(float)v39; a1->m_rotationSpeed = (float)(v38 * (float)(a1->m_gravityMod * v40)) / flt_10063A7F0[a1->m_vehicleSize == 1.0]; a1->m_isRotating = 1; } } if ( a1->m_isBall ) { if ( a1->m_isPlatformer ) { *(_WORD *)&a1->m_isRotating = 0; a1->m_isBallRotating = 0; a1->m_rotationSpeed = 0.0; } PlayerObject::runBallRotation(a1, 1.0); } if ( a1->m_isOnGround2 ) { if ( a1->m_isRobot ) { m_robotSprite = a1->m_robotSprite; if ( a1->m_currentRobotAnimation.m_data.m_short.shortStorage.__elems_[22] < 0 ) { sub_1000097D0( __p, (void *)a1->m_currentRobotAnimation.m_data.m_long.capacitym1, a1->m_currentRobotAnimation.m_data.m_long.size); } else { *(_OWORD *)__p = *(_OWORD *)&a1->m_currentRobotAnimation.m_data.m_short.sizex2; longStorage = a1->m_currentRobotAnimation.m_data.m_long.longStorage; } CCAnimatedSprite::runAnimation(m_robotSprite, __p); if ( SHIBYTE(longStorage) < 0 ) operator delete(__p[0]); } else if ( a1->m_isSpider ) { PlayerObject::playDynamicSpiderRun(a1); } } m_gameLayer = a1->m_gameLayer; if ( m_gameLayer ) GJBaseGameLayer::gameEventTriggered(m_gameLayer, DashStop, 0, a1->m_uniqueID); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source