// // PlayerObject::togglePlayerScale from 0x43f444 to 0x43f6ca (646 bytes) // // 9 xrefs: // > PlayerObject::copyAttributes @ 0x43f9b0 // > PlayerObject::resetObject @ 0x440448 // > PlayerObject::loadFromCheckpoint @ 0x44b0de // > MenuGameLayer::resetPlayer @ 0x4924c4 // > MenuGameLayer::resetPlayer @ 0x49267a // > GJBaseGameLayer::setupLevelStart @ 0x5b9ea8 // > GJBaseGameLayer::setupLevelStart @ 0x5b9ebc // > GJBaseGameLayer::collisionCheckObjects @ 0x5ba73e // > GJBaseGameLayer::collisionCheckObjects @ 0x5ba794 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:48:25 +0000 // int *__fastcall PlayerObject::togglePlayerScale(int *this, int a2, int a3) { float *v3; // r5 unsigned __int8 *v5; // r4 int v6; // r1 const char *v7; // r1 int v8; // r0 int v9; // r1 int v10; // r3 float v11; // r1 cocos2d::CCParticleSystem *v12; // r0 float v13; // s15 int v14; // r3 cocos2d::CCMotionStreak *v15; // r0 GameManager *v16; // r0 float v17; // r8 int v18; // r1 int v19; // r2 int v20; // r3 cocos2d::CCEaseElasticOut *v21; // r0 cocos2d::CCActionInterval *v22; // r1 cocos2d::CCAction *v23; // r8 GameManager *v24; // r0 int v25; // r7 int v26; // r1 int v27; // r2 bool v28; // r3 int v29; // [sp+0h] [bp-14h] _BYTE v30[8]; // [sp+4h] [bp-10h] BYREF v3 = (float *)(this + 502); v5 = (unsigned __int8 *)this; if ( *((float *)this + 502) == 1.0 ) { if ( !a2 ) return this; *v3 = 0.6; if ( !*((_BYTE *)this + 2152) ) goto LABEL_24; if ( *((_BYTE *)this + 1955) ) { v6 = 0; LABEL_18: PlayerObject::updatePlayerRollFrame((PlayerObject *)this, v6); goto LABEL_24; } if ( *((_BYTE *)this + 1957) ) goto LABEL_24; if ( *((_BYTE *)this + 1956) ) goto LABEL_24; v7 = (const char *)*((unsigned __int8 *)this + 1964); if ( *((_BYTE *)this + 1964) ) goto LABEL_24; goto LABEL_23; } if ( a2 ) return this; if ( *((_BYTE *)this + 2320) ) *(this + 549) = 2; *v3 = 1.0; if ( *((_BYTE *)this + 2152) ) { if ( *((_BYTE *)this + 1955) ) { v8 = GameManager::sharedState((GameManager *)this); v9 = *(_DWORD *)(v8 + 540); v10 = *(_DWORD *)(v8 + 544); this = (int *)v5; v6 = v9 - v10; goto LABEL_18; } if ( *((_BYTE *)this + 1957) || *((_BYTE *)this + 1956) || *((_BYTE *)this + 1964) ) goto LABEL_24; v7 = (const char *)*(this + 330); LABEL_23: PlayerObject::updatePlayerFrame((PlayerObject *)this, v7); } LABEL_24: v11 = *v3; v12 = *((cocos2d::CCParticleSystem **)v5 + 446); *((float *)v5 + 193) = *v3; *((float *)v5 + 194) = v11; cocos2d::CCParticleSystem::loadScaledDefaults(v12, v11); cocos2d::CCParticleSystem::loadScaledDefaults(*((cocos2d::CCParticleSystem **)v5 + 447), *v3); cocos2d::CCParticleSystem::loadScaledDefaults(*((cocos2d::CCParticleSystem **)v5 + 436), *v3); cocos2d::CCParticleSystem::loadScaledDefaults(*((cocos2d::CCParticleSystem **)v5 + 439), *v3); cocos2d::CCParticleSystem::loadScaledDefaults(*((cocos2d::CCParticleSystem **)v5 + 437), *v3); cocos2d::CCParticleSystem::loadScaledDefaults(*((cocos2d::CCParticleSystem **)v5 + 438), *v3); cocos2d::CCParticleSystem::loadScaledDefaults(*((cocos2d::CCParticleSystem **)v5 + 440), *v3); cocos2d::CCParticleSystem::loadScaledDefaults(*((cocos2d::CCParticleSystem **)v5 + 441), *v3); cocos2d::CCParticleSystem::loadScaledDefaults(*((cocos2d::CCParticleSystem **)v5 + 442), *v3); cocos2d::CCParticleSystem::loadScaledDefaults(*((cocos2d::CCParticleSystem **)v5 + 443), *v3); cocos2d::CCParticleSystem::loadScaledDefaults(*((cocos2d::CCParticleSystem **)v5 + 444), *v3); v13 = 1.0; if ( v5[1956] ) v13 = 0.8; cocos2d::CCMotionStreak::setStroke(*((cocos2d::CCMotionStreak **)v5 + 386), (float)(*((float *)v5 + 451) * *v3) * v13); if ( v5[1604] || v5[1956] ) *(float *)(*((_DWORD *)v5 + 388) + 356) = *v3; v14 = *((_DWORD *)v5 + 372); if ( v14 ) *(float *)(v14 + 280) = *v3; v15 = *((cocos2d::CCMotionStreak **)v5 + 387); if ( v15 ) updateStreakSettings(v15, *((_DWORD *)v5 + 453), (int)v5); v16 = (GameManager *)GJActionManager::stopInternalAction(*((GJActionManager **)v5 + 612), 6); v17 = *v3; if ( !v5[1604] || v5[1601] || *(_BYTE *)(*(_DWORD *)(GameManager::sharedState(v16) + 404) + 10829) ) { (*(void (__fastcall **)(unsigned __int8 *, float))(*(_DWORD *)v5 + 64))(v5, COERCE_FLOAT(LODWORD(v17))); (*(void (__fastcall **)(unsigned __int8 *, float))(*(_DWORD *)v5 + 72))(v5, COERCE_FLOAT(LODWORD(v17))); } else { v21 = (cocos2d::CCEaseElasticOut *)cocos2d::CCScaleTo::create( (cocos2d::CCScaleTo *)0x3F000000, v17, v17, COERCE_FLOAT(10829)); v23 = (cocos2d::CCAction *)cocos2d::CCEaseElasticOut::create(v21, v22); (*(void (__fastcall **)(cocos2d::CCAction *, int))(*(_DWORD *)v23 + 36))(v23, 6); v24 = (GameManager *)GJActionManager::runInternalAction(*((GJActionManager **)v5 + 612), v23, (cocos2d::CCNode *)v5); v19 = 150; if ( *v3 == 1.0 ) LOWORD(v29) = -256; else LOWORD(v29) = 255; BYTE2(v29) = -106; if ( !a3 ) { v25 = *(_DWORD *)(GameManager::sharedState(v24) + 404); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v30, (const cocos2d::CCPoint *)(v5 + 2024)); GJBaseGameLayer::lightningFlash(v25, v30, v29); PlayerObject::spawnPortalCircle((int)v5, v29, (CCCircleWave *)0x42340000); PlayerObject::spawnScaleCircle((int)v5, v26, v27, v28); } } v20 = v5[1955]; if ( v5[1955] ) { v20 = v5[1480]; if ( v5[1480] ) PlayerObject::runRotateAction((PlayerObject *)v5, 0, 8); } PlayerObject::placeStreakPoint((PlayerObject *)v5, v18, v19, v20); return PlayerObject::updateRobotAnimationSpeed((PlayerObject *)v5); }
GD Web Decomp Icon

GD Web Decomp

Raw Source