// // PlayerObject::stopDashing from 0x140396650 to 0x140396d20 (1744 bytes) // // 19 xrefs: // > GJBaseGameLayer::collisionCheckObjects @ 0x140215a94 // > GJBaseGameLayer::toggleDualMode @ 0x140216aee // > GJBaseGameLayer::activatePlayerControlTrigger @ 0x14021759f // > GJBaseGameLayer::activatePlayerControlTrigger @ 0x14021774f // > MenuGameLayer::tryJump @ 0x140332227 // > MenuGameLayer::resetPlayer @ 0x140332b51 // > MenuGameLayer::resetPlayer @ 0x140332f06 // > MenuGameLayer::resetPlayer @ 0x140333034 // > PlayerObject::playCompleteEffect @ 0x140384061 // > PlayerObject::update @ 0x14038a059 // > PlayerObject::collidedWithObjectInternal @ 0x140393535 // > PlayerObject::collidedWithObjectInternal @ 0x1403935f4 // > PlayerObject::resetObject @ 0x1403971f9 // > PlayerObject::playerDestroyed @ 0x140397d69 // > PlayerObject::releaseButton @ 0x140398275 // > PlayerObject::releaseAllButtons @ 0x14039f1af // > PlayerObject::lockPlayer @ 0x14039f363 // > PlayerObject::disablePlayerControls @ 0x14039f3f6 // > @ 0x1406d63a4 // // 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 // // Hidden C++ exception states: #wind=2 void PlayerObject::stopDashing(PlayerObject *a1) { float v1; // xmm3_4 DashRingObject *m_dashRing; // rax float *v4; // rax CCLightFlash *v5; // r15 __int64 v6; // rax CCLightFlash *v7; // rsi float v8; // xmm0_4 CCLightFlash_vtbl *v9; // rbx const cocos2d::CCPoint *v10; // rax __int64 v11; // rdx const cocos2d::CCPoint *v12; // rax CCLightFlash_vtbl *v13; // rbx CCLightFlash_vtbl *v14; // rbx cocos2d::CCArray *m_lightStripArray; // rdi const cocos2d::ccColor3B *v16; // rax double v17; // xmm0_8 float v18; // xmm6_4 double v19; // xmm0_8 struct cocos2d::CCScaleTo *v20; // rbx __int64 v21; // rax struct cocos2d::CCSequence *v22; // rax cocos2d::ccColor3B *v23; // r8 const struct cocos2d::CCPoint *v24; // rax struct cocos2d::CCMoveBy *v25; // rax cocos2d::ccColor3B *v26; // r8 struct cocos2d::CCFadeTo *v27; // rax cocos2d::ccColor3B *v28; // r8 struct cocos2d::CCFadeTo *v29; // rax cocos2d::ccColor3B *v30; // r8 double v31; // xmm0_8 float *v32; // rax float v33; // xmm1_4 float v34; // xmm2_4 float v35; // xmm2_4 float v36; // xmm3_4 int v37; // eax int v38; // ecx float v39; // xmm1_4 int v40; // eax __int64 v41; // rax GJBaseGameLayer *m_gameLayer; // rcx float v43[8]; // [rsp+20h] [rbp-68h] BYREF __int64 v44; // [rsp+90h] [rbp+8h] BYREF cocos2d::CCPoint v45; // [rsp+98h] [rbp+10h] BYREF 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 ) { cocos2d::CCPoint::CCPoint( COERCE_FLOAT(COERCE_UNSIGNED_INT64(m_dashRing->m_endBoost * a1->m_dashY)), m_dashRing->m_endBoost * a1->m_dashX); cocos2d::CCPoint::CCPoint(&v45); a1->m_isAccelerating = 1; a1->m_yVelocity = v4[1]; if ( a1->m_isPlatformer ) { a1->m_platformerXVelocity = *v4; a1->m_affectedByForces = 1; } if ( a1->m_dashRing->m_stopSlide ) { a1->m_isAccelerating = 0; a1->m_affectedByForces = 0; } } } a1->m_dashRing = nullptr; a1->m_dashFireSprite->setVisible(a1->m_dashFireSprite, 0); if ( a1->m_playEffects && !a1->m_maybeReducedEffects ) { v5 = (CCLightFlash *)cocos2d::CCSprite::createWithSpriteFrameName("playerDash2_001.png"); v6 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v44 = (__int64)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(v44); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v6 = qword_1406C2ED8; } (*(void (__fastcall **)(_QWORD, CCLightFlash *, __int64))(**(_QWORD **)(*(_QWORD *)(v6 + 520) + 4072LL) + 440LL))( *(_QWORD *)(*(_QWORD *)(v6 + 520) + 4072LL), v5, 40); v44 = 0x100000302LL; ((void (__fastcall *)(cocos2d::CCNode **, __int64))v5->m_mainLayer->__vftable)(&v5->m_mainLayer, 0x100000302LL); v7 = (CCLightFlash *)cocos2d::CCSprite::createWithSpriteFrameName("playerDash2_outline_001.png"); v5->addChild_0(v5, v7, 1); v8 = ((float (__fastcall *)(CCLightFlash *, cocos2d::CCPoint *))v5->getScaledContentSize)(v5, &v45); v9 = v7->__vftable; cocos2d::CCPoint::CCPoint(v8, v45.x * 0.5); v9->setPosition_0(v7, v10); LOBYTE(v11) = -106; (*(void (__fastcall **)(cocos2d::CCArray **, __int64))&v7->m_lightStripArray->m_unknown2)( &v7->m_lightStripArray, v11); a1->m_dashFireSprite->getPosition_0(a1->m_dashFireSprite); v12 = a1->getPosition_0(a1); cocos2d::CCPoint::operator+(v12, &v44); v5->setPosition_0(v5, (const cocos2d::CCPoint *)&v44); v13 = v5->__vftable; a1->m_dashFireSprite->getScaleX(a1->m_dashFireSprite); ((void (__fastcall *)(CCLightFlash *))v13->setScaleX)(v5); v14 = v5->__vftable; a1->m_dashFireSprite->getScaleY(a1->m_dashFireSprite); ((void (__fastcall *)(CCLightFlash *))v14->setScaleY)(v5); m_lightStripArray = v5->m_lightStripArray; v16 = a1->m_dashFireSprite->getColor(&a1->m_dashFireSprite->cocos2d::CCRGBAProtocol); ((void (__fastcall *)(cocos2d::CCArray **, const cocos2d::ccColor3B *))m_lightStripArray->__vftable)( &v5->m_lightStripArray, v16); ((void (__fastcall *)(CCLightFlash *))v5->setRotation)(v5); v17 = ((double (__fastcall *)(CCLightFlash *))v5->getScaleY)(v5); v18 = *(float *)&v17 * 0.2; v19 = ((double (__fastcall *)(CCLightFlash *))v5->getScaleX)(v5); v20 = cocos2d::CCScaleTo::create(0.2, *(float *)&v19 * 0.2, v18); v21 = cocos2d::CCCallFunc::create(v5, sub_14003BE70); v22 = cocos2d::CCSequence::create(v20, v21, 0); cocos2d::CCNode::runAction(v5, (cocos2d::CCPoint)v22, v23, v1, v43[0]); cocos2d::CCPoint::CCPoint(0.2, -20.0); v25 = cocos2d::CCMoveBy::create(0.2, v24); cocos2d::CCNode::runAction(v5, (cocos2d::CCPoint)v25, v26, v1, v43[0]); v27 = cocos2d::CCFadeTo::create(0.2, 0); cocos2d::CCNode::runAction(v5, (cocos2d::CCPoint)v27, v28, v1, v43[0]); v29 = cocos2d::CCFadeTo::create(0.2, 0); cocos2d::CCNode::runAction(v7, (cocos2d::CCPoint)v29, v30, v1, v43[0]); } 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 ) { a1->m_iconSprite->getRotation(a1->m_iconSprite); ((void (__fastcall *)(cocos2d::CCSprite *))a1->m_iconSprite->setScale_0)(a1->m_iconSprite); cocos2d::CCNode::stopAllActions(a1->m_iconSprite); ((void (__fastcall *)(cocos2d::CCSprite *))a1->m_iconSprite->setRotation)(a1->m_iconSprite); ((void (__fastcall *)(cocos2d::CCSprite *))a1->m_iconGlow->setScale_0)(a1->m_iconGlow); cocos2d::CCNode::stopAllActions(a1->m_iconGlow); v31 = ((double (__fastcall *)(cocos2d::CCSprite *))a1->m_iconGlow->setRotation)(a1->m_iconGlow); ((void (__fastcall *)(PlayerObject *))a1->setRotation)(a1); if ( a1->m_isPlatformer ) { cocos2d::CCPoint::CCPoint(*(float *)&v31, a1->m_dashX); v33 = (float)(*v32 * *v32) + (float)(v32[1] * v32[1]); if ( v33 < 0.0 ) v34 = sqrtf(v33); else v34 = fsqrt(v33); if ( v34 <= 17.310005 ) v35 = (float)((float)(v34 / 17.310005) * 1.5) + 0.5; else v35 = 2.0; if ( a1->m_vehicleSize == 1.0 ) v36 = 0.43333334; else v36 = 0.33333334; v37 = 1; v38 = -1; if ( a1->m_isSideways ) v37 = -1; v39 = (float)v37; v40 = -180; if ( !a1->m_isUpsideDown ) v40 = 180; if ( !a1->m_isGoingLeft ) v38 = 1; a1->m_rotationSpeed = (float)((float)((float)((float)(v38 * v40) * v39) * a1->m_gravityMod) * v35) / v36; 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 ) { v41 = sub_14003BDB0((__int64)v43, (__int64)&a1->m_currentRobotAnimation); CCAnimatedSprite::runAnimation((__int64)a1->m_robotSprite, v41); } 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