//
// GJBaseGameLayer::checkpointActivated from 0x479730 to 0x479826 (246 bytes)
//
// 2 xrefs:
// > PlayLayer::checkpointActivated @ 0x30e61e
// > LevelEditorLayer::checkpointActivated @ 0x36e660
//
// 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 GJBaseGameLayer::checkpointActivated(GJBaseGameLayer *a1, CheckpointGameObject *a2)
{
_BOOL4 m_hasNoEffects; // r8
cocos2d::CCDirector *v5; // r0
float v6; // r0
float y; // s17
float v8; // s16
float v9; // r10
float v10; // r0
const cocos2d::ccColor3B *v11; // r0
int v12; // [sp+18h] [bp-30h]
cocos2d::CCPoint v13; // [sp+1Ch] [bp-2Ch] BYREF
cocos2d::CCSize v14; // [sp+24h] [bp-24h] BYREF
cocos2d::CCPoint v15; // [sp+2Ch] [bp-1Ch] BYREF
cocos2d::CCPoint v16; // [sp+34h] [bp-14h] BYREF
cocos2d::CCPoint v17; // [sp+3Ch] [bp-Ch] BYREF
m_hasNoEffects = a2->m_hasNoEffects;
if ( !a2->m_hasNoEffects )
{
((void (__fastcall *)(cocos2d::CCPoint *))a2->getRealPosition)(&v13);
v5 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::getWinSize(&v14, v5);
v6 = randRange(v13.x - 50.0, v13.x + 100.0);
y = a1->m_gameState.m_cameraPosition.y;
v8 = v14.height + 50.0;
v9 = v6;
v10 = a1->m_objectLayer->getScale(a1->m_objectLayer);
cocos2d::CCPoint::CCPoint(&v15, v9, y + (float)(v8 / v10));
v11 = a2->m_colorSprite->getColor(a2->m_colorSprite);
LOWORD(v12) = *(_WORD *)&v11->r;
BYTE2(v12) = v11->b;
cocos2d::CCPoint::CCPoint(&v16, &v15);
cocos2d::CCPoint::CCPoint(&v17, &v13);
GJBaseGameLayer::lightningFlash((int)a1, &v16, (int)&v17, v12, 5.0, 1056964608, m_hasNoEffects, m_hasNoEffects, 1.0);
}
}