// // cocos2d::CCParticleMeteor::initWithTotalParticles from 0x180064680 to 0x1800648a4 (548 bytes) // // 7 xrefs: // > cocos2d::CCParticleMeteor::createWithTotalParticles @ 0x180063647 // > cocos2d::CCParticleMeteor::createWithTotalParticles @ 0x180063636 // > @ 0x1800fcd68 // > @ 0x180139bf0 // > @ 0x180139c00 // > @ 0x1801438a8 // > @ 0x1801b3a50 // // 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 // char __fastcall cocos2d::CCParticleMeteor::initWithTotalParticles(cocos2d::CCParticleMeteor *this, unsigned int a2) { cocos2d::CCParticleMeteor_vtbl *v3; // rax cocos2d::CCParticleMeteor_vtbl *v4; // rbx float *v5; // rax cocos2d::CCDirector *v6; // rax cocos2d::CCParticleMeteor_vtbl *v7; // rbx float *v8; // rax signed int m_uTotalParticles; // eax struct cocos2d::CCTexture2D *v10; // rax __int64 v11; // rdx float v13; // [rsp+40h] [rbp+18h] float v14; // [rsp+44h] [rbp+1Ch] float v15; // [rsp+48h] [rbp+20h] BYREF if ( !cocos2d::CCParticleSystemQuad::initWithTotalParticles(this, a2, 0) ) return 0; v3 = this->cocos2d::CCParticleSystemQuad::cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; this->m_fDuration = -1.0; ((void (__fastcall *)(cocos2d::CCParticleMeteor *, _QWORD))v3->setEmitterMode)(this, 0); v4 = this->cocos2d::CCParticleSystemQuad::cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v5 = kmVec2Fill(&v15, -200.0, 200.0); ((void (__fastcall *)(cocos2d::CCParticleMeteor *, float *))v4->setGravity)(this, v5); ((void (__fastcall *)(cocos2d::CCParticleMeteor *))this->setSpeed)(this); ((void (__fastcall *)(cocos2d::CCParticleMeteor *))this->setSpeedVar)(this); ((void (__fastcall *)(cocos2d::CCParticleMeteor *))this->setRadialAccel)(this); ((void (__fastcall *)(cocos2d::CCParticleMeteor *))this->setRadialAccelVar)(this); ((void (__fastcall *)(cocos2d::CCParticleMeteor *))this->setTangentialAccel)(this); ((void (__fastcall *)(cocos2d::CCParticleMeteor *))this->setTangentialAccelVar)(this); this->m_fAngle = 90.0; this->m_fAngleVar = 360.0; v6 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(v6); v7 = this->cocos2d::CCParticleSystemQuad::cocos2d::CCParticleSystem::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v8 = kmVec2Fill(&v15, v13 * 0.5, v14 * 0.5); ((void (__fastcall *)(cocos2d::CCParticleMeteor *, float *))v7->setPosition_0)(this, v8); ((void (__fastcall *)(cocos2d::CCParticleMeteor *, void *))this->setPosVar)(this, &unk_1801A8408); m_uTotalParticles = this->m_uTotalParticles; this->m_fLife = 2.0; this->m_fLifeVar = 1.0; this->m_fStartSize = 60.0; this->m_fStartSizeVar = 10.0; this->m_fEndSize = -1.0; this->m_tStartColor.r = 0.2; this->m_tStartColor.g = 0.40000001; this->m_tStartColor.b = 0.69999999; *(_QWORD *)&this->m_tStartColor.a = 1065353216; this->m_tStartColorVar.g = 0.0; this->m_tStartColorVar.b = 0.2; *(_QWORD *)&this->m_tStartColorVar.a = 1036831949; this->m_fEmissionRate = (float)m_uTotalParticles * 0.5; *(_QWORD *)&this->m_tEndColor.g = 0; *(_QWORD *)&this->m_tEndColor.a = 1065353216; *(_QWORD *)&this->m_tEndColorVar.g = 0; this->m_tEndColorVar.a = 0.0; v10 = sub_180063AC0(); if ( v10 ) ((void (__fastcall *)(cocos2d::CCTextureProtocol *, struct cocos2d::CCTexture2D *))this->setTexture)( &this->cocos2d::CCTextureProtocol, v10); LOBYTE(v11) = 1; ((void (__fastcall *)(cocos2d::CCParticleMeteor *, __int64))this->setBlendAdditive)(this, v11); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source