// // PlayerObject::playDeathEffect from 0x1000579ec to 0x10005c6a4 (19640 bytes) // // 1 xrefs: // > PlayerObject::playerDestroyed @ 0x100227c5c // // 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::playDeathEffect(PlayerObject *a1) { GameManager *v2; // x0 int v3; // w22 cocos2d::CCLayer *m_parentLayer; // x20 cocos2d::ccColor3B *p_m_playerColor1; // x25 float m_vehicleSize; // s0 float v7; // s8 cocos2d::CCFadeTo *v8; // x21 cocos2d::CCSprite *v9; // x21 GameManager *v10; // x0 __int64 v11; // x0 unsigned int v12; // w0 float v13; // s0 unsigned int v14; // w0 __int64 v15; // x0 int v16; // w26 cocos2d::CCArray *v17; // x22 cocos2d::CCSpriteFrameCache *v18; // x24 cocos2d::CCString *v19; // x0 const char *CString; // x0 cocos2d::CCSpriteFrame *v21; // x0 float v22; // s9 cocos2d::CCAnimation *v23; // x0 cocos2d::CCAnimate *v24; // x22 cocos2d::CCAction *v25; // x0 float v26; // s9 cocos2d::CCDelayTime *v27; // x22 cocos2d::CCAction *v28; // x0 cocos2d::CCParticleSystemQuad *v29; // x21 __int64 v30; // x0 float v31; // s0 CCCircleWave *v32; // x21 __int64 v33; // x0 float v34; // s1 float v35; // s0 cocos2d::CCSprite *v36; // x21 GameManager *v37; // x0 float v38; // s9 __int64 v39; // x0 unsigned int v40; // w0 __int64 v41; // x0 int v42; // w26 cocos2d::CCArray *v43; // x22 cocos2d::CCSpriteFrameCache *v44; // x24 cocos2d::CCString *v45; // x0 const char *v46; // x0 cocos2d::CCSpriteFrame *v47; // x0 float v48; // s9 cocos2d::CCAnimation *v49; // x0 cocos2d::CCAnimate *v50; // x22 cocos2d::CCAction *v51; // x0 cocos2d::CCDelayTime *v52; // x22 cocos2d::CCAction *v53; // x0 cocos2d::CCParticleSystemQuad *v54; // x21 __int64 v55; // x0 float v61; // s0 float v62; // s0 float v63; // s0 CCCircleWave *v64; // x21 __int64 v65; // x0 CCCircleWave *v66; // x21 __int64 v67; // x0 cocos2d::CCSprite *v68; // x21 GameManager *v69; // x0 float v70; // s9 float32x2_t *v71; // x22 __n128 v72; // q0 __n128 v73; // q1 double v74; // d0 unsigned int v75; // w0 __int64 v76; // x0 int v77; // w26 cocos2d::CCArray *v78; // x22 cocos2d::CCSpriteFrameCache *v79; // x24 cocos2d::CCString *v80; // x0 const char *v81; // x0 cocos2d::CCSpriteFrame *v82; // x0 float v83; // s11 float v84; // s9 cocos2d::CCAnimation *v85; // x0 cocos2d::CCAnimate *v86; // x22 cocos2d::CCAction *v87; // x0 cocos2d::CCParticleSystemQuad *v88; // x21 __int64 v89; // x0 float32x2_t *v90; // x0 double v91; // d0 float v92; // s0 float v93; // s0 CCCircleWave *v94; // x21 __int64 v95; // x0 __int64 v96; // x0 cocos2d::CCSprite *v97; // x21 GameManager *v98; // x0 float v99; // s9 float32x2_t *v100; // x22 __n128 v101; // q0 __n128 v102; // q1 double v103; // d0 unsigned int v104; // w0 __int64 v105; // x0 int v106; // w26 cocos2d::CCArray *v107; // x22 cocos2d::CCSpriteFrameCache *v108; // x24 cocos2d::CCString *v109; // x0 const char *v110; // x0 cocos2d::CCSpriteFrame *v111; // x0 float v112; // s10 cocos2d::CCAnimation *v113; // x0 cocos2d::CCAnimate *v114; // x22 cocos2d::CCAction *v115; // x0 cocos2d::CCDelayTime *v116; // x21 cocos2d::CCParticleSystemQuad *v117; // x21 __int64 v118; // x0 float v119; // s0 float32x2_t *v120; // x0 double v121; // d0 float v122; // s0 float v123; // s0 CCCircleWave *v124; // x21 __int64 v125; // x0 float v126; // s1 float v127; // s0 cocos2d::CCSprite *v128; // x21 GameManager *v129; // x0 __int64 v130; // x0 unsigned int v131; // w0 float v132; // s0 unsigned int v133; // w0 __int64 v134; // x0 cocos2d::CCArray *v135; // x22 int v136; // w26 cocos2d::CCSpriteFrameCache *v137; // x24 cocos2d::CCString *v138; // x0 const char *v139; // x0 cocos2d::CCSpriteFrame *v140; // x0 float v141; // s9 cocos2d::CCAnimation *v142; // x0 cocos2d::CCAnimate *v143; // x22 cocos2d::CCAction *v144; // x0 float v145; // s9 cocos2d::CCDelayTime *v146; // x22 cocos2d::CCAction *v147; // x0 cocos2d::CCParticleSystemQuad *v148; // x21 __int64 v149; // x0 float v150; // s0 float v151; // s0 float v152; // s0 CCCircleWave *v153; // x21 __int64 v154; // x0 CCCircleWave *v155; // x0 __int16 v156; // w8 cocos2d::CCSprite *v157; // x21 GameManager *v158; // x0 float v159; // s10 float32x2_t *v160; // x22 __n128 v161; // q0 __n128 v162; // q1 double v163; // d0 float v164; // w8 cocos2d::CCSprite *v165; // x21 GameManager *v166; // x0 float v167; // s9 __int64 v168; // x0 __int64 v169; // x0 int v170; // w26 cocos2d::CCArray *v171; // x22 cocos2d::CCSpriteFrameCache *v172; // x24 cocos2d::CCString *v173; // x0 const char *v174; // x0 cocos2d::CCSpriteFrame *v175; // x0 float v176; // s10 cocos2d::CCAnimation *v177; // x0 cocos2d::CCAnimate *v178; // x22 cocos2d::CCAction *v179; // x0 cocos2d::CCDelayTime *v180; // x22 cocos2d::CCAction *v181; // x0 cocos2d::CCTintTo *v182; // x22 cocos2d::CCAction *v183; // x0 cocos2d::CCParticleSystemQuad *v184; // x21 __int64 v185; // x0 float32x2_t v186; // d10 unsigned int v187; // s0 int8x8_t v188; // d1 unsigned int v189; // s0 int8x8_t v190; // d1 float v191; // s0 float v192; // s0 CCCircleWave *v193; // x21 __int16 v194; // w8 __int64 v195; // x0 cocos2d::CCSprite *v196; // x21 GameManager *v197; // x0 __int64 v198; // x0 unsigned int v199; // w0 float v200; // s0 unsigned int v201; // w0 __int64 v202; // x0 int v203; // w26 cocos2d::CCArray *v204; // x22 cocos2d::CCSpriteFrameCache *v205; // x24 cocos2d::CCString *v206; // x0 const char *v207; // x0 cocos2d::CCSpriteFrame *v208; // x0 float v209; // s9 cocos2d::CCAnimation *v210; // x0 cocos2d::CCAnimate *v211; // x22 cocos2d::CCAction *v212; // x0 cocos2d::CCDelayTime *v213; // x22 cocos2d::CCAction *v214; // x0 cocos2d::CCParticleSystemQuad *v215; // x21 __int64 v216; // x0 float v217; // s0 CCCircleWave *v218; // x21 __int64 v219; // x0 cocos2d::CCSprite *v220; // x21 GameManager *v221; // x0 float v222; // s9 __int64 v223; // x0 __int64 v224; // x0 int v225; // w26 cocos2d::CCArray *v226; // x22 cocos2d::CCSpriteFrameCache *v227; // x24 cocos2d::CCString *v228; // x0 const char *v229; // x0 cocos2d::CCSpriteFrame *v230; // x0 float v231; // s10 cocos2d::CCAnimation *v232; // x0 cocos2d::CCAnimate *v233; // x22 cocos2d::CCAction *v234; // x0 cocos2d::CCDelayTime *v235; // x22 float v236; // s0 cocos2d::CCSprite *v237; // x21 GameManager *v238; // x0 __int64 v239; // x0 unsigned int v240; // w0 float v241; // s0 unsigned int v242; // w0 __int64 v243; // x0 int v244; // w26 cocos2d::CCArray *v245; // x22 cocos2d::CCSpriteFrameCache *v246; // x24 cocos2d::CCString *v247; // x0 const char *v248; // x0 cocos2d::CCSpriteFrame *v249; // x0 float v250; // s9 cocos2d::CCAnimation *v251; // x0 cocos2d::CCAnimate *v252; // x22 cocos2d::CCAction *v253; // x0 cocos2d::CCDelayTime *v254; // x22 cocos2d::CCAction *v255; // x0 cocos2d::CCParticleSystemQuad *v256; // x21 __int64 v257; // x0 CCCircleWave *v258; // x21 __int64 v259; // x0 CCCircleWave *v260; // x0 cocos2d::CCSprite *v261; // x21 GameManager *v262; // x0 float v263; // s9 float32x2_t *v264; // x22 __n128 v265; // q0 __n128 v266; // q1 double v267; // d0 int v268; // w0 __int64 v269; // x0 cocos2d::CCArray *v270; // x22 int i; // w26 cocos2d::CCSpriteFrameCache *v272; // x24 cocos2d::CCString *v273; // x0 const char *v274; // x0 cocos2d::CCSpriteFrame *v275; // x0 float v276; // s10 cocos2d::CCAnimation *v277; // x0 cocos2d::CCAnimate *v278; // x22 cocos2d::CCAction *v279; // x0 cocos2d::CCDelayTime *v280; // x22 cocos2d::CCAction *v281; // x0 cocos2d::CCParticleSystemQuad *v282; // x21 __int64 v283; // x0 float v284; // s0 float32x2_t *v285; // x0 double v286; // d0 float v287; // s0 float v288; // s0 CCCircleWave *v289; // x21 __int64 v290; // x0 float v291; // s1 float v292; // s0 cocos2d::CCSprite *v293; // x21 GameManager *v294; // x0 __int64 v295; // x0 unsigned int v296; // w0 float v297; // s0 unsigned int v298; // w0 __int64 v299; // x0 int v300; // w26 cocos2d::CCArray *v301; // x22 cocos2d::CCSpriteFrameCache *v302; // x24 cocos2d::CCString *v303; // x0 const char *v304; // x0 cocos2d::CCSpriteFrame *v305; // x0 float v306; // s9 cocos2d::CCAnimation *v307; // x0 cocos2d::CCAnimate *v308; // x22 cocos2d::CCAction *v309; // x0 float v310; // s9 cocos2d::CCDelayTime *v311; // x22 cocos2d::CCAction *v312; // x0 cocos2d::CCParticleSystemQuad *v313; // x21 __int64 v314; // x0 float v315; // s0 float v316; // s0 float v317; // s0 float v318; // s9 CCCircleWave *v319; // x21 __int64 v320; // x0 float v321; // w8 GameManager *v322; // x0 unsigned int v323; // w0 __int64 v324; // x0 __int64 v325; // x0 int v326; // w26 cocos2d::CCArray *v327; // x22 cocos2d::CCSpriteFrameCache *v328; // x24 cocos2d::CCString *v329; // x0 const char *v330; // x0 cocos2d::CCSpriteFrame *v331; // x0 cocos2d::CCAnimation *v332; // x0 cocos2d::CCAnimate *v333; // x22 cocos2d::CCAction *v334; // x0 cocos2d::CCAction *v335; // x0 cocos2d::CCParticleSystemQuad *v336; // x21 __int64 v337; // x0 float v338; // s10 CCCircleWave *v339; // x21 __int64 v340; // x0 cocos2d::CCSprite *v341; // x21 GameManager *v342; // x0 __int64 v343; // x0 __int64 v344; // x0 int v345; // w26 cocos2d::CCArray *v346; // x22 cocos2d::CCSpriteFrameCache *v347; // x24 cocos2d::CCString *v348; // x0 const char *v349; // x0 cocos2d::CCSpriteFrame *v350; // x0 cocos2d::CCAnimation *v351; // x0 cocos2d::CCAnimate *v352; // x22 cocos2d::CCAction *v353; // x0 cocos2d::CCDelayTime *v354; // x22 cocos2d::CCAction *v355; // x0 cocos2d::CCParticleSystemQuad *v356; // x21 __int64 v357; // x0 CCCircleWave *v358; // x21 __int64 v359; // x0 cocos2d::CCSprite *v360; // x21 GameManager *v361; // x0 float v362; // s9 float32x2_t *v363; // x22 __n128 v364; // q0 __n128 v365; // q1 double v366; // d0 unsigned int v367; // w0 __int64 v368; // x0 int v369; // w26 cocos2d::CCArray *v370; // x22 cocos2d::CCSpriteFrameCache *v371; // x24 cocos2d::CCString *v372; // x0 const char *v373; // x0 cocos2d::CCSpriteFrame *v374; // x0 float v375; // s12 float v376; // s9 cocos2d::CCAnimation *v377; // x0 cocos2d::CCAnimate *v378; // x22 cocos2d::CCAction *v379; // x0 cocos2d::CCDelayTime *v380; // x21 cocos2d::CCParticleSystemQuad *v381; // x21 __int64 v382; // x0 float32x2_t *v383; // x0 double v384; // d0 float v385; // s0 float v386; // s0 CCCircleWave *v387; // x21 __int64 v388; // x0 float v389; // s1 float v390; // s0 cocos2d::CCSprite *v391; // x21 GameManager *v392; // x0 float v393; // s9 __int64 v394; // x0 unsigned int v395; // w0 __int64 v396; // x0 cocos2d::CCArray *v397; // x22 int v398; // w26 cocos2d::CCSpriteFrameCache *v399; // x24 cocos2d::CCString *v400; // x0 const char *v401; // x0 cocos2d::CCSpriteFrame *v402; // x0 float v403; // s10 cocos2d::CCAnimation *v404; // x0 cocos2d::CCAnimate *v405; // x22 cocos2d::CCAction *v406; // x0 float v407; // s10 cocos2d::CCDelayTime *v408; // x22 cocos2d::CCAction *v409; // x0 cocos2d::CCParticleSystemQuad *v410; // x21 __int64 v411; // x0 float v412; // s0 float v413; // s0 float v414; // s0 CCCircleWave *v415; // x21 __int64 v416; // x0 cocos2d::CCSprite *v417; // x21 GameManager *v418; // x0 float v419; // s9 __int64 v420; // x0 unsigned int v421; // w0 __int64 v422; // x0 int v423; // w26 cocos2d::CCArray *v424; // x22 cocos2d::CCSpriteFrameCache *v425; // x24 cocos2d::CCString *v426; // x0 const char *v427; // x0 cocos2d::CCSpriteFrame *v428; // x0 unsigned int v429; // w0 cocos2d::CCAnimation *v430; // x0 cocos2d::CCAnimate *v431; // x22 cocos2d::CCAction *v432; // x0 cocos2d::CCParticleSystemQuad *v433; // x21 __int64 v434; // x0 CCCircleWave *v435; // x21 __int64 v436; // x0 CCCircleWave *v437; // x21 __int64 v438; // x0 cocos2d::CCSprite *v439; // x21 GameManager *v440; // x0 float v441; // s9 __int64 v442; // x0 unsigned int v443; // w0 __int64 v444; // x0 int v445; // w26 cocos2d::CCArray *v446; // x22 cocos2d::CCSpriteFrameCache *v447; // x24 cocos2d::CCString *v448; // x0 const char *v449; // x0 cocos2d::CCSpriteFrame *v450; // x0 float v451; // s10 cocos2d::CCAnimation *v452; // x0 cocos2d::CCAnimate *v453; // x22 cocos2d::CCAction *v454; // x0 cocos2d::CCDelayTime *v455; // x21 cocos2d::CCParticleSystemQuad *v456; // x21 __int64 v457; // x0 float v458; // s0 float v459; // s0 CCCircleWave *v460; // x21 __int64 v461; // x0 cocos2d::CCSprite *v462; // x21 GameManager *v463; // x0 __int64 v464; // x0 unsigned int v465; // w0 float v466; // s0 unsigned int v467; // w0 __int64 v468; // x0 int v469; // w26 cocos2d::CCArray *v470; // x22 cocos2d::CCSpriteFrameCache *v471; // x24 cocos2d::CCString *v472; // x0 const char *v473; // x0 cocos2d::CCSpriteFrame *v474; // x0 float v475; // s9 cocos2d::CCAnimation *v476; // x0 cocos2d::CCAnimate *v477; // x22 cocos2d::CCAction *v478; // x0 cocos2d::CCDelayTime *v479; // x22 cocos2d::CCAction *v480; // x0 cocos2d::CCParticleSystemQuad *v481; // x22 __int64 v482; // x0 float v483; // s0 float v484; // s0 float v485; // s0 CCCircleWave *v486; // x21 __int64 v487; // x0 cocos2d::CCParticleSystemQuad *v488; // x21 __int64 v489; // x0 unsigned int v490; // s0 int8x8_t v491; // d2 CCCircleWave *v492; // x21 __int16 v493; // w8 __int64 v494; // x0 __int64 v495; // x0 int v496; // w26 cocos2d::CCArray *v497; // x22 cocos2d::CCSpriteFrameCache *v498; // x24 cocos2d::CCString *v499; // x0 const char *v500; // x0 cocos2d::CCSpriteFrame *v501; // x0 float v502; // s12 float v503; // s10 cocos2d::CCAnimation *v504; // x0 cocos2d::CCAnimate *v505; // x22 cocos2d::CCAction *v506; // x0 cocos2d::CCDelayTime *v507; // x21 cocos2d::CCParticleSystemQuad *v508; // x21 __int64 v509; // x0 float v510; // s0 float32x2_t *v511; // x0 double v512; // d0 float v513; // s0 float v514; // s0 CCCircleWave *v515; // x21 __int64 v516; // x0 __int64 v517; // x0 GameManager *v518; // x0 float v519; // s8 cocos2d::CCRenderTexture *v520; // x21 __int64 *v521; // x0 __n128 v522; // q0 __n128 v523; // q1 ExplodeItemNode *v524; // x21 float v525; // s10 float v526; // s11 float v527; // s12 float v528; // s8 unsigned int v529; // w20 float v530; // s0 int v531; // w19 bool v532; // w5 float v533; // s0 int v534; // w1 float v535; // s1 cocos2d::ccColor4F v536; // [xsp+0h] [xbp-D0h] float32x2_t v537; // [xsp+38h] [xbp-98h] BYREF __int128 v538; // [xsp+40h] [xbp-90h] BYREF cocos2d::SEL_CallFunc v539; // 0:x1.16 cocos2d::SEL_CallFunc v540; // 0:x1.16 cocos2d::SEL_CallFunc v541; // 0:x1.16 cocos2d::SEL_CallFunc v542; // 0:x1.16 cocos2d::SEL_CallFunc v543; // 0:x1.16 cocos2d::SEL_CallFunc v544; // 0:x1.16 cocos2d::SEL_CallFunc v545; // 0:x1.16 cocos2d::SEL_CallFunc v546; // 0:x1.16 cocos2d::SEL_CallFunc v547; // 0:x1.16 cocos2d::SEL_CallFunc v548; // 0:x1.16 cocos2d::SEL_CallFunc v549; // 0:x1.16 cocos2d::SEL_CallFunc v550; // 0:x1.16 cocos2d::SEL_CallFunc v551; // 0:x1.16 cocos2d::SEL_CallFunc v552; // 0:x1.16 cocos2d::SEL_CallFunc v553; // 0:x1.16 cocos2d::SEL_CallFunc v554; // 0:x1.16 cocos2d::SEL_CallFunc v555; // 0:x1.16 cocos2d::SEL_CallFunc v556; // 0:x1.16 cocos2d::SEL_CallFunc v557; // 0:x1.16 cocos2d::ccColor4F v558; // 0:x3.16 v2 = GameManager::sharedState(); v3 = v2->m_playerDeathEffect.random - v2->m_playerDeathEffect.seed; if ( GameManager::sharedState()->m_playLayer && GameManager::sharedState()->m_playLayer->m_isPracticeMode && !a1->m_practiceDeathEffect ) { v3 = 1; } if ( ((__int64 (__fastcall *)(PlayerObject *))a1->getParent)(a1) ) m_parentLayer = (cocos2d::CCLayer *)((__int64 (__fastcall *)(PlayerObject *))a1->getParent)(a1); else m_parentLayer = a1->m_parentLayer; p_m_playerColor1 = &a1->m_playerColor1; m_vehicleSize = a1->m_vehicleSize; if ( m_vehicleSize >= 1.0 ) v7 = m_vehicleSize * 0.9; else v7 = a1->m_vehicleSize; v8 = cocos2d::CCFadeTo::create(0.05, 0); ((void (__fastcall *)(cocos2d::CCFadeTo *, __int64))v8->setTag)(v8, 4); cocos2d::CCNode::runAction(a1, v8); switch ( v3 ) { case 2: v9 = cocos2d::CCSprite::createWithSpriteFrameName("playerExplosion_01_001.png"); v10 = GameManager::sharedState(); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v10->m_playLayer->m_objectLayer->addChild_0)( v10->m_playLayer->m_objectLayer, v9, 10000); v11 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v9->setPosition)(v9, v11); v12 = rand(); ((void (__fastcall *)(cocos2d::CCSprite *, float))v9->setScale)( v9, (float)((float)((float)(vcvts_n_f32_s32(v12, 0x1Fu) * 2.0) + -1.0) * 0.2) + 1.5); v13 = ((float (__fastcall *)(cocos2d::CCSprite *))v9->getScale)(v9); ((void (__fastcall *)(cocos2d::CCSprite *, float))v9->setScale)(v9, v7 * v13); v14 = rand(); ((void (__fastcall *)(cocos2d::CCSprite *, float))v9->setRotation)( v9, (float)((float)(vcvts_n_f32_s32(v14, 0x1Fu) * 2.0) + -1.0) * 45.0); v15 = rand(); if ( vcvts_n_f32_s32(v15, 0x1Fu) > 0.5 ) v16 = 1; else v16 = 2; v17 = (cocos2d::CCArray *)sub_10024A15C(v15); do { v18 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v19 = (cocos2d::CCString *)sub_100268F4C("playerExplosion_01_%03d.png", v16); CString = cocos2d::CCString::getCString(v19); v21 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v18, CString); sub_10024A2D0(v17, v21); ++v16; } while ( v16 != 12 ); v22 = (float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 0.01) + 0.05; v23 = cocos2d::CCAnimation::createWithSpriteFrames(v17, v22); v24 = cocos2d::CCAnimate::create(v23); v539.ptr = (void (*)(void))520; v539.adj = 1; cocos2d::CCCallFunc::create(v9, v539); v25 = (cocos2d::CCAction *)sub_10018A494(v24); cocos2d::CCNode::runAction(v9, v25); v26 = v22 * 6.0; v27 = cocos2d::CCDelayTime::create(v26); cocos2d::CCFadeOut::create(v26); v28 = (cocos2d::CCAction *)sub_10018A494(v27); cocos2d::CCNode::runAction(v9, v28); v29 = cocos2d::CCParticleSystemQuad::create("explodeEffect.plist", 0); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v29->setPositionType)(v29, 2); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v29, 99); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v29->setAutoRemoveOnFinish)(v29, 1); v30 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v29->setPosition)(v29, v30); v538 = xmmword_100635DF0; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v29->setStartColor)(v29, &v538); v538 = xmmword_1006356D0; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v29->setEndColor)(v29, &v538); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v29->setStartColorVar)(v29, &v538); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v29->setEndColorVar)(v29, &v538); v31 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v29->getSpeed)(v29); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v29->setSpeed)(v29, v31 * 0.8); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v29->setScale)(v29, v7); cocos2d::CCParticleSystem::resetSystem(v29); v32 = CCCircleWave::create_1(v7 * 10.0, v7 * 110.0, 0.6, 0); v32->m_color.b = 0; *(_WORD *)&v32->m_color.r = -1; v33 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(CCCircleWave *, __int64))v32->setPosition)(v32, v33); v32->m_opacityMod = 0.6; ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v32, 1000); v34 = v7 * 115.0; v35 = v7 * 10.0; goto LABEL_64; case 3: v293 = cocos2d::CCSprite::createWithSpriteFrameName("playerExplosion_02_001.png"); v294 = GameManager::sharedState(); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v294->m_playLayer->m_objectLayer->addChild_0)( v294->m_playLayer->m_objectLayer, v293, 10000); v295 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v293->setPosition)(v293, v295); v296 = rand(); ((void (__fastcall *)(cocos2d::CCSprite *, float))v293->setScale)( v293, (float)((float)((float)(vcvts_n_f32_s32(v296, 0x1Fu) * 2.0) + -1.0) * 0.2) + 1.2); v297 = ((float (__fastcall *)(cocos2d::CCSprite *))v293->getScale)(v293); ((void (__fastcall *)(cocos2d::CCSprite *, float))v293->setScale)(v293, v7 * v297); v298 = rand(); v299 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, float))v293->setRotation)( v293, (float)((float)(vcvts_n_f32_s32(v298, 0x1Fu) * 2.0) + -1.0) * 45.0); v300 = 2; v301 = (cocos2d::CCArray *)sub_10024A15C(v299); do { v302 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v303 = (cocos2d::CCString *)sub_100268F4C("playerExplosion_02_%03d.png", v300); v304 = cocos2d::CCString::getCString(v303); v305 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v302, v304); sub_10024A2D0(v301, v305); ++v300; } while ( v300 != 11 ); v306 = (float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 0.01) + 0.05; v307 = cocos2d::CCAnimation::createWithSpriteFrames(v301, v306); v308 = cocos2d::CCAnimate::create(v307); v549.ptr = (void (*)(void))520; v549.adj = 1; cocos2d::CCCallFunc::create(v293, v549); v309 = (cocos2d::CCAction *)sub_10018A494(v308); cocos2d::CCNode::runAction(v293, v309); v310 = v306 * 6.0; v311 = cocos2d::CCDelayTime::create(v310); cocos2d::CCFadeOut::create(v310); v312 = (cocos2d::CCAction *)sub_10018A494(v311); cocos2d::CCNode::runAction(v293, v312); v313 = cocos2d::CCParticleSystemQuad::create("explodeEffect.plist", 0); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v313->setPositionType)(v313, 2); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v313, 99); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v313->setAutoRemoveOnFinish)(v313, 1); v314 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v313->setPosition)(v313, v314); v538 = xmmword_100635E80; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v313->setStartColor)(v313, &v538); v538 = xmmword_100635DC0; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v313->setEndColor)(v313, &v538); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v313->setStartColorVar)(v313, &v538); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v313->setEndColorVar)(v313, &v538); v315 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v313->getSpeed)(v313); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v313->setSpeed)(v313, v315 * 0.8); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v313->setScale)(v313, v7 * 0.8); v316 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v313->getStartSize)(v313); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v313->setStartSize)(v313, v316 * 0.5); v317 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v313->getEndSize)(v313); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v313->setEndSize)(v313, v317 * 0.1); cocos2d::CCParticleSystem::resetSystem(v313); v318 = v7 * 10.0; v319 = CCCircleWave::create_1(v7 * 10.0, v7 * 110.0, 0.5, 0); v319->m_color.b = -1; *(_WORD *)&v319->m_color.r = -131; v320 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(CCCircleWave *, __int64))v319->setPosition)(v319, v320); v319->m_opacityMod = 1.0; ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v319, 1000); v321 = 115.0; goto LABEL_83; case 4: v196 = cocos2d::CCSprite::createWithSpriteFrameName("playerExplosion_03_001.png"); v197 = GameManager::sharedState(); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v197->m_playLayer->m_objectLayer->addChild_0)( v197->m_playLayer->m_objectLayer, v196, 10000); v198 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v196->setPosition)(v196, v198); v199 = rand(); ((void (__fastcall *)(cocos2d::CCSprite *, float))v196->setScale)( v196, (float)((float)((float)(vcvts_n_f32_s32(v199, 0x1Fu) * 2.0) + -1.0) * 0.2) + 1.4); v200 = ((float (__fastcall *)(cocos2d::CCSprite *))v196->getScale)(v196); ((void (__fastcall *)(cocos2d::CCSprite *, float))v196->setScale)(v196, v7 * v200); v201 = rand(); v202 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, float))v196->setRotation)( v196, (float)((float)(vcvts_n_f32_s32(v201, 0x1Fu) * 2.0) + -1.0) * 45.0); v203 = 1; v204 = (cocos2d::CCArray *)sub_10024A15C(v202); do { v205 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v206 = (cocos2d::CCString *)sub_100268F4C("playerExplosion_03_%03d.png", v203); v207 = cocos2d::CCString::getCString(v206); v208 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v205, v207); sub_10024A2D0(v204, v208); ++v203; } while ( v203 != 11 ); v209 = (float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 0.005) + 0.04; v210 = cocos2d::CCAnimation::createWithSpriteFrames(v204, v209); v211 = cocos2d::CCAnimate::create(v210); v545.ptr = (void (*)(void))520; v545.adj = 1; cocos2d::CCCallFunc::create(v196, v545); v212 = (cocos2d::CCAction *)sub_10018A494(v211); cocos2d::CCNode::runAction(v196, v212); v213 = cocos2d::CCDelayTime::create(v209 * 5.0); cocos2d::CCFadeOut::create(v209 * 10.0); v214 = (cocos2d::CCAction *)sub_10018A494(v213); cocos2d::CCNode::runAction(v196, v214); v215 = cocos2d::CCParticleSystemQuad::create("explodeEffectGrav.plist", 0); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v215->setPositionType)(v215, 2); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v215, 99); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v215->setAutoRemoveOnFinish)(v215, 1); v216 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v215->setPosition)(v215, v216); v538 = xmmword_100635E00; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v215->setStartColor)(v215, &v538); v538 = xmmword_100635E00; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v215->setEndColor)(v215, &v538); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _QWORD))v215->setBlendAdditive)(v215, 0); v538 = xmmword_100635E70; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v215->setStartColorVar)(v215, &v538); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v215->setEndColorVar)(v215, &v538); v217 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v215->getSpeed)(v215); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v215->setSpeed)(v215, v217 * 0.9); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v215->setScale)(v215, v7); cocos2d::CCParticleSystem::resetSystem(v215); v218 = CCCircleWave::create_1(v7 * 10.0, v7 * 100.0, 0.5, 0); v218->m_color.b = 0; *(_WORD *)&v218->m_color.r = -106; v219 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(CCCircleWave *, __int64))v218->setPosition)(v218, v219); *(_QWORD *)&v218->m_lineWidth = 0x3F8000000000000ALL; ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v218, 1000); v126 = v7 * 115.0; v127 = v7 * 10.0; goto LABEL_40; case 5: v237 = cocos2d::CCSprite::createWithSpriteFrameName("playerExplosion_04_001.png"); v238 = GameManager::sharedState(); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v238->m_playLayer->m_objectLayer->addChild_0)( v238->m_playLayer->m_objectLayer, v237, 10000); v239 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v237->setPosition)(v237, v239); v240 = rand(); ((void (__fastcall *)(cocos2d::CCSprite *, float))v237->setScale)( v237, (float)((float)((float)(vcvts_n_f32_s32(v240, 0x1Fu) * 2.0) + -1.0) * 0.1) + 1.2); v241 = ((float (__fastcall *)(cocos2d::CCSprite *))v237->getScale)(v237); ((void (__fastcall *)(cocos2d::CCSprite *, float))v237->setScale)(v237, v7 * v241); v242 = rand(); ((void (__fastcall *)(cocos2d::CCSprite *, float))v237->setRotation)( v237, (float)((float)(vcvts_n_f32_s32(v242, 0x1Fu) * 2.0) + -1.0) * 45.0); v243 = rand(); if ( vcvts_n_f32_s32(v243, 0x1Fu) > 0.5 ) v244 = 1; else v244 = 2; v245 = (cocos2d::CCArray *)sub_10024A15C(v243); do { v246 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v247 = (cocos2d::CCString *)sub_100268F4C("playerExplosion_04_%03d.png", v244); v248 = cocos2d::CCString::getCString(v247); v249 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v246, v248); sub_10024A2D0(v245, v249); ++v244; } while ( v244 != 10 ); v250 = (float)((float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 2.0) + -1.0) * 0.005) + 0.05; v251 = cocos2d::CCAnimation::createWithSpriteFrames(v245, v250); v252 = cocos2d::CCAnimate::create(v251); v547.ptr = (void (*)(void))520; v547.adj = 1; cocos2d::CCCallFunc::create(v237, v547); v253 = (cocos2d::CCAction *)sub_10018A494(v252); cocos2d::CCNode::runAction(v237, v253); v254 = cocos2d::CCDelayTime::create(v250 * 8.0); cocos2d::CCFadeOut::create(v250 * 6.0); v255 = (cocos2d::CCAction *)sub_10018A494(v254); cocos2d::CCNode::runAction(v237, v255); v256 = cocos2d::CCParticleSystemQuad::create("explodeEffectVortex.plist", 0); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v256->setPositionType)(v256, 2); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v256, 101); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v256->setAutoRemoveOnFinish)(v256, 1); v257 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v256->setPosition)(v256, v257); v538 = xmmword_100635E50; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v256->setStartColor)(v256, &v538); v538 = xmmword_100635E60; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v256->setEndColor)(v256, &v538); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v256->setStartColorVar)(v256, &v538); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v256->setEndColorVar)(v256, &v538); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))v256->getSpeed)(v256); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))v256->setSpeed)(v256); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v256->setScale)(v256, v7); cocos2d::CCParticleSystem::resetSystem(v256); v258 = CCCircleWave::create_1(v7 * 10.0, v7 * 110.0, 0.5, 0); v258->m_color.b = -1; *(_WORD *)&v258->m_color.r = 25855; v259 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(CCCircleWave *, __int64))v258->setPosition)(v258, v259); v258->m_opacityMod = 1.0; ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v258, 1000); v260 = CCCircleWave::create_1(v7 * 10.0, v7 * 115.0, 0.4, 0); v66 = v260; v260->m_color.b = -1; goto LABEL_73; case 6: v128 = cocos2d::CCSprite::createWithSpriteFrameName("playerExplosion_05_001.png"); v129 = GameManager::sharedState(); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v129->m_playLayer->m_objectLayer->addChild_0)( v129->m_playLayer->m_objectLayer, v128, 10000); v130 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v128->setPosition)(v128, v130); v131 = rand(); ((void (__fastcall *)(cocos2d::CCSprite *, float))v128->setScale)( v128, (float)((float)((float)(vcvts_n_f32_s32(v131, 0x1Fu) * 2.0) + -1.0) * 0.15) + 1.25); v132 = ((float (__fastcall *)(cocos2d::CCSprite *))v128->getScale)(v128); ((void (__fastcall *)(cocos2d::CCSprite *, float))v128->setScale)(v128, v7 * v132); v133 = rand(); v134 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, float))v128->setRotation)( v128, (float)((float)(vcvts_n_f32_s32(v133, 0x1Fu) * 2.0) + -1.0) * 45.0); v135 = (cocos2d::CCArray *)sub_10024A15C(v134); if ( vcvts_n_f32_s32(rand(), 0x1Fu) <= 0.5 ) v136 = 3; else v136 = 2; do { v137 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v138 = (cocos2d::CCString *)sub_100268F4C("playerExplosion_05_%03d.png", v136); v139 = cocos2d::CCString::getCString(v138); v140 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v137, v139); sub_10024A2D0(v135, v140); ++v136; } while ( v136 != 11 ); v141 = (float)((float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 2.0) + -1.0) * 0.005) + 0.05; v142 = cocos2d::CCAnimation::createWithSpriteFrames(v135, v141); v143 = cocos2d::CCAnimate::create(v142); v543.ptr = (void (*)(void))520; v543.adj = 1; cocos2d::CCCallFunc::create(v128, v543); v144 = (cocos2d::CCAction *)sub_10018A494(v143); cocos2d::CCNode::runAction(v128, v144); v145 = v141 * 6.0; v146 = cocos2d::CCDelayTime::create(v145); cocos2d::CCFadeOut::create(v145); v147 = (cocos2d::CCAction *)sub_10018A494(v146); cocos2d::CCNode::runAction(v128, v147); v148 = cocos2d::CCParticleSystemQuad::create("explodeEffect.plist", 0); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v148->setPositionType)(v148, 2); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v148, 99); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v148->setAutoRemoveOnFinish)(v148, 1); v149 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v148->setPosition)(v148, v149); v538 = xmmword_100635D60; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v148->setStartColor)(v148, &v538); v538 = xmmword_100635E40; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v148->setEndColor)(v148, &v538); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v148->setStartColorVar)(v148, &v538); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v148->setEndColorVar)(v148, &v538); v150 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v148->getSpeed)(v148); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v148->setSpeed)(v148, v150 * 0.8); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v148->setScale)(v148, v7 * 0.8); v151 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v148->getStartSize)(v148); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v148->setStartSize)(v148, v151 * 0.5); v152 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v148->getEndSize)(v148); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v148->setEndSize)(v148, v152 * 0.1); cocos2d::CCParticleSystem::resetSystem(v148); v153 = CCCircleWave::create_1(v7 * 10.0, v7 * 110.0, 0.5, 0); v153->m_color.b = 0; *(_WORD *)&v153->m_color.r = -14081; v154 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(CCCircleWave *, __int64))v153->setPosition)(v153, v154); v153->m_opacityMod = 1.0; ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v153, 1000); v155 = CCCircleWave::create_1(v7 * 10.0, v7 * 115.0, 0.4, 0); v66 = v155; v155->m_color.b = 0; v156 = -1; goto LABEL_96; case 7: v341 = cocos2d::CCSprite::createWithSpriteFrameName("playerExplosion_06_001.png"); v342 = GameManager::sharedState(); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v342->m_playLayer->m_objectLayer->addChild_0)( v342->m_playLayer->m_objectLayer, v341, 10000); v222 = v7 * (float)((float)((float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 2.0) + -1.0) * 0.15) + 1.3); v343 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v341->setPosition)(v341, v343); v344 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, float))v341->setScale)(v341, v222); v345 = 1; v346 = (cocos2d::CCArray *)sub_10024A15C(v344); do { v347 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v348 = (cocos2d::CCString *)sub_100268F4C("playerExplosion_06_%03d.png", v345); v349 = cocos2d::CCString::getCString(v348); v350 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v347, v349); sub_10024A2D0(v346, v350); ++v345; } while ( v345 != 14 ); v351 = cocos2d::CCAnimation::createWithSpriteFrames(v346, 0.055); v352 = cocos2d::CCAnimate::create(v351); v551.ptr = (void (*)(void))520; v551.adj = 1; cocos2d::CCCallFunc::create(v341, v551); v353 = (cocos2d::CCAction *)sub_10018A494(v352); cocos2d::CCNode::runAction(v341, v353); v354 = cocos2d::CCDelayTime::create(0.44); cocos2d::CCFadeOut::create(0.33); v355 = (cocos2d::CCAction *)sub_10018A494(v354); cocos2d::CCNode::runAction(v341, v355); v356 = cocos2d::CCParticleSystemQuad::create("explodeEffectGrav.plist", 0); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v356->setPositionType)(v356, 2); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v356, 99); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v356->setAutoRemoveOnFinish)(v356, 1); v357 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v356->setPosition)(v356, v357); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v356->setAngleVar)(v356, 30.0); v538 = xmmword_100635D60; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v356->setStartColor)(v356, &v538); v538 = xmmword_100635D70; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v356->setEndColor)(v356, &v538); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _QWORD))v356->setBlendAdditive)(v356, 0); v538 = xmmword_100635D80; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v356->setStartColorVar)(v356, &v538); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v356->setEndColorVar)(v356, &v538); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))v356->getSpeed)(v356); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))v356->setSpeed)(v356); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v356->setScale)(v356, v222); cocos2d::CCParticleSystem::resetSystem(v356); v338 = v222 * 10.0; v358 = CCCircleWave::create_1(v222 * 10.0, v222 * 110.0, 0.6, 0); v358->m_color.b = 0; *(_WORD *)&v358->m_color.r = -14081; v359 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(CCCircleWave *, __int64))v358->setPosition)(v358, v359); v358->m_opacityMod = 1.0; ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *))a1->m_parentLayer->addChild_0)(a1->m_parentLayer, v358); goto LABEL_63; case 8: v391 = cocos2d::CCSprite::createWithSpriteFrameName("playerExplosion_07_001.png"); v392 = GameManager::sharedState(); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v392->m_playLayer->m_objectLayer->addChild_0)( v392->m_playLayer->m_objectLayer, v391, 10000); v393 = v7 * (float)((float)((float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 2.0) + -1.0) * 0.2) + 1.3); v394 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v391->setPosition)(v391, v394); ((void (__fastcall *)(cocos2d::CCSprite *, float))v391->setScale)(v391, v393); v395 = rand(); v396 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, float))v391->setRotation)( v391, (float)((float)(vcvts_n_f32_s32(v395, 0x1Fu) * 2.0) + -1.0) * 90.0); v397 = (cocos2d::CCArray *)sub_10024A15C(v396); if ( vcvts_n_f32_s32(rand(), 0x1Fu) > 0.5 ) v398 = 1; else v398 = 2; do { v399 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v400 = (cocos2d::CCString *)sub_100268F4C("playerExplosion_07_%03d.png", v398); v401 = cocos2d::CCString::getCString(v400); v402 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v399, v401); sub_10024A2D0(v397, v402); ++v398; } while ( v398 != 12 ); v403 = (float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 0.005) + 0.04; v404 = cocos2d::CCAnimation::createWithSpriteFrames(v397, v403); v405 = cocos2d::CCAnimate::create(v404); v553.ptr = (void (*)(void))520; v553.adj = 1; cocos2d::CCCallFunc::create(v391, v553); v406 = (cocos2d::CCAction *)sub_10018A494(v405); cocos2d::CCNode::runAction(v391, v406); v407 = v403 * 6.0; v408 = cocos2d::CCDelayTime::create(v407); cocos2d::CCFadeOut::create(v407); v409 = (cocos2d::CCAction *)sub_10018A494(v408); cocos2d::CCNode::runAction(v391, v409); v410 = cocos2d::CCParticleSystemQuad::create("explodeEffect.plist", 0); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v410->setPositionType)(v410, 2); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v410, 99); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v410->setAutoRemoveOnFinish)(v410, 1); v411 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v410->setPosition)(v410, v411); v538 = xmmword_100635DE0; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v410->setStartColor)(v410, &v538); v538 = xmmword_100635E30; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v410->setEndColor)(v410, &v538); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v410->setStartColorVar)(v410, &v538); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v410->setEndColorVar)(v410, &v538); v412 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v410->getSpeed)(v410); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v410->setSpeed)(v410, v412 * 0.8); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v410->setScale)(v410, v393 * 0.8); v413 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v410->getStartSize)(v410); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v410->setStartSize)(v410, v413 * 0.5); v414 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v410->getEndSize)(v410); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v410->setEndSize)(v410, v414 * 0.1); cocos2d::CCParticleSystem::resetSystem(v410); v415 = CCCircleWave::create_1(v393 * 10.0, v393 * 85.0, 0.5, 0); v415->m_color.b = -1; *(_WORD *)&v415->m_color.r = 255; v416 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(CCCircleWave *, __int64))v415->setPosition)(v415, v416); ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v415, 1000); v260 = CCCircleWave::create_1(v393 * 10.0, v393 * 90.0, 0.4, 0); v66 = v260; v260->m_color.b = -56; LABEL_73: *(_WORD *)&v260->m_color.r = 255; goto LABEL_97; case 9: v261 = cocos2d::CCSprite::createWithSpriteFrameName("playerExplosion_08_001.png"); v262 = GameManager::sharedState(); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v262->m_playLayer->m_objectLayer->addChild_0)( v262->m_playLayer->m_objectLayer, v261, 10000); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v261->setBlendFunc)(v261, 0x100000302LL); v263 = v7 * (float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 0.1) + 0.8); v264 = (float32x2_t *)((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); v265.n128_u32[0] = 0; v266.n128_u32[0] = 6.0; sub_100022980(v265, v266, &v537); *(float32x2_t *)&v267 = sub_1000229DC(v264, &v537, (float32x2_t *)&v538); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *, double))v261->setPosition)(v261, &v538, v267); ((void (__fastcall *)(cocos2d::CCSprite *, float))v261->setScale)(v261, v263); v268 = rand(); v269 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, float))v261->setRotation)( v261, (float)((float)v268 * -4.6566e-10) * 45.0); v270 = (cocos2d::CCArray *)sub_10024A15C(v269); rand(); for ( i = 2; i != 12; ++i ) { v272 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v273 = (cocos2d::CCString *)sub_100268F4C("playerExplosion_08_%03d.png", i); v274 = cocos2d::CCString::getCString(v273); v275 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v272, v274); sub_10024A2D0(v270, v275); } v276 = (float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 0.01) + 0.045; v277 = cocos2d::CCAnimation::createWithSpriteFrames(v270, v276); v278 = cocos2d::CCAnimate::create(v277); v548.ptr = (void (*)(void))520; v548.adj = 1; cocos2d::CCCallFunc::create(v261, v548); v279 = (cocos2d::CCAction *)sub_10018A494(v278); cocos2d::CCNode::runAction(v261, v279); v280 = cocos2d::CCDelayTime::create(v276 * 5.0); cocos2d::CCFadeOut::create(v276 * 8.0); v281 = (cocos2d::CCAction *)sub_10018A494(v280); cocos2d::CCNode::runAction(v261, v281); v282 = cocos2d::CCParticleSystemQuad::create("explodeEffectVortex.plist", 0); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v282->setPositionType)(v282, 2); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v282, 99); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v282->setAutoRemoveOnFinish)(v282, 1); v283 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v282->setPosition)(v282, v283); v538 = xmmword_100635DC0; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v282->setStartColor)(v282, &v538); v538 = xmmword_100635E20; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v282->setEndColor)(v282, &v538); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v282->setBlendAdditive)(v282, 1); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v282->setStartColorVar)(v282, &v538); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v282->setEndColorVar)(v282, &v538); v284 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v282->getSpeed)(v282); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v282->setSpeed)(v282, v284 * 0.9); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v282->setScale)(v282, v263 * 1.4); v285 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))v282->getPosVar)(v282); *(float32x2_t *)&v286 = sub_100022A14(v285, (float32x2_t *)&v538, 1.2); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *, double))v282->setPosVar)(v282, &v538, v286); v287 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v282->getStartSize)(v282); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v282->setStartSize)(v282, v287 * 0.8); v288 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v282->getEndSize)(v282); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v282->setEndSize)(v282, v288 * 0.4); cocos2d::CCParticleSystem::resetSystem(v282); v289 = CCCircleWave::create_1(v263 * 10.0, v263 * 120.0, v276 * 10.0, 0); v289->m_color.b = -1; *(_WORD *)&v289->m_color.r = -181; v290 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(CCCircleWave *, __int64))v289->setPosition)(v289, v290); v289->m_opacityMod = 0.8; ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v289, 1000); v291 = v263 * 115.0; v292 = v263 * 10.0; goto LABEL_84; case 10: v462 = cocos2d::CCSprite::createWithSpriteFrameName("playerExplosion_09_001.png"); v463 = GameManager::sharedState(); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v463->m_playLayer->m_objectLayer->addChild_0)( v463->m_playLayer->m_objectLayer, v462, 10000); v464 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v462->setPosition)(v462, v464); v465 = rand(); ((void (__fastcall *)(cocos2d::CCSprite *, float))v462->setScale)( v462, (float)((float)((float)(vcvts_n_f32_s32(v465, 0x1Fu) * 2.0) + -1.0) * 0.1) + 1.0); v466 = ((float (__fastcall *)(cocos2d::CCSprite *))v462->getScale)(v462); ((void (__fastcall *)(cocos2d::CCSprite *, float))v462->setScale)(v462, v7 * v466); v467 = rand(); v468 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, float))v462->setRotation)( v462, (float)((float)(vcvts_n_f32_s32(v467, 0x1Fu) * 2.0) + -1.0) * 45.0); v469 = 2; v470 = (cocos2d::CCArray *)sub_10024A15C(v468); do { v471 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v472 = (cocos2d::CCString *)sub_100268F4C("playerExplosion_09_%03d.png", v469); v473 = cocos2d::CCString::getCString(v472); v474 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v471, v473); sub_10024A2D0(v470, v474); ++v469; } while ( v469 != 14 ); v475 = (float)((float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 2.0) + -1.0) * 0.005) + 0.045; v476 = cocos2d::CCAnimation::createWithSpriteFrames(v470, v475); v477 = cocos2d::CCAnimate::create(v476); v556.ptr = (void (*)(void))520; v556.adj = 1; cocos2d::CCCallFunc::create(v462, v556); v478 = (cocos2d::CCAction *)sub_10018A494(v477); cocos2d::CCNode::runAction(v462, v478); v479 = cocos2d::CCDelayTime::create(v475 * 10.0); cocos2d::CCFadeOut::create(v475 * 3.0); v480 = (cocos2d::CCAction *)sub_10018A494(v479); cocos2d::CCNode::runAction(v462, v480); v481 = cocos2d::CCParticleSystemQuad::create("explodeEffectVortex.plist", 0); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v481->setPositionType)(v481, 2); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v481, 101); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v481->setAutoRemoveOnFinish)(v481, 1); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v481->setBlendAdditive)(v481, 1); v482 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v481->setPosition)(v481, v482); v538 = xmmword_100635E10; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v481->setStartColor)(v481, &v538); v538 = xmmword_100635D90; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v481->setEndColor)(v481, &v538); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v481->setStartColorVar)(v481, &v538); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v481->setEndColorVar)(v481, &v538); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))v481->getSpeed)(v481); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))v481->setSpeed)(v481); v483 = ((float (__fastcall *)(cocos2d::CCSprite *))v462->getScale)(v462); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v481->setScale)(v481, (float)(v7 * 1.2) * v483); v484 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v481->getStartSize)(v481); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v481->setStartSize)(v481, v484 * 1.2); v485 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v481->getEndSize)(v481); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v481->setEndSize)(v481, v485 * 0.5); cocos2d::CCParticleSystem::resetSystem(v481); v318 = v7 * 10.0; v486 = CCCircleWave::create_1(v7 * 10.0, v7 * 120.0, 0.5, 0); v486->m_color.b = -1; *(_WORD *)&v486->m_color.r = -14336; v487 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(CCCircleWave *, __int64))v486->setPosition)(v486, v487); v486->m_opacityMod = 1.0; ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v486, 1000); v321 = 125.0; LABEL_83: v291 = v7 * v321; v292 = v318; LABEL_84: v155 = CCCircleWave::create_1(v292, v291, 0.4, 0); v66 = v155; v155->m_color.b = -1; goto LABEL_85; case 11: v165 = cocos2d::CCSprite::createWithSpriteFrameName("playerExplosion_10_001.png"); v166 = GameManager::sharedState(); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v166->m_playLayer->m_objectLayer->addChild_0)( v166->m_playLayer->m_objectLayer, v165, 10000); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v165->setBlendFunc)(v165, 0x100000302LL); v167 = v7 * (float)((float)((float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 2.0) + -1.0) * 0.3) + 1.5); v168 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v165->setPosition)(v165, v168); v169 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, float))v165->setScale)(v165, v167); v170 = 1; v171 = (cocos2d::CCArray *)sub_10024A15C(v169); do { v172 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v173 = (cocos2d::CCString *)sub_100268F4C("playerExplosion_10_%03d.png", v170); v174 = cocos2d::CCString::getCString(v173); v175 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v172, v174); sub_10024A2D0(v171, v175); ++v170; } while ( v170 != 13 ); v176 = (float)((float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 2.0) + -1.0) * 0.005) + 0.035; v177 = cocos2d::CCAnimation::createWithSpriteFrames(v171, v176); v178 = cocos2d::CCAnimate::create(v177); v544.ptr = (void (*)(void))520; v544.adj = 1; cocos2d::CCCallFunc::create(v165, v544); v179 = (cocos2d::CCAction *)sub_10018A494(v178); cocos2d::CCNode::runAction(v165, v179); v180 = cocos2d::CCDelayTime::create(v176 * 7.0); cocos2d::CCFadeOut::create(v176 * 6.0); v181 = (cocos2d::CCAction *)sub_10018A494(v180); cocos2d::CCNode::runAction(v165, v181); v182 = cocos2d::CCTintTo::create(v176 + v176, a1->m_playerColor1.r, a1->m_playerColor1.g, a1->m_playerColor1.b); cocos2d::CCTintTo::create(v176 * 8.0, a1->m_playerColor2.r, a1->m_playerColor2.g, a1->m_playerColor2.b); v183 = (cocos2d::CCAction *)sub_10018A494(v182); cocos2d::CCNode::runAction(v165, v183); v184 = cocos2d::CCParticleSystemQuad::create("explodeEffectVortex.plist", 0); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v184->setPositionType)(v184, 2); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v184, 101); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v184->setAutoRemoveOnFinish)(v184, 1); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v184->setBlendAdditive)(v184, 1); v185 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v184->setPosition)(v184, v185); v186 = (float32x2_t)vdup_n_s32(0x437F0000u); *(float *)&v187 = (float)a1->m_playerColor1.b / 255.0; v188.i16[0] = *(_WORD *)&a1->m_playerColor1.r; v188.i8[2] = a1->m_playerColor1.b; v188.i32[1] = (unsigned __int32)v188.i32[0] >> 8; *(float32x2_t *)&v538 = vdiv_f32(vcvt_f32_u32((uint32x2_t)vand_s8(v188, (int8x8_t)0xFF000000FFLL)), v186); *((_QWORD *)&v538 + 1) = v187 | 0x3F80000000000000LL; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v184->setStartColor)(v184, &v538); *(float *)&v189 = (float)a1->m_playerColor2.b / 255.0; v190.i16[0] = *(_WORD *)&a1->m_playerColor2.r; v190.i8[2] = a1->m_playerColor2.b; v190.i32[1] = (unsigned __int32)v190.i32[0] >> 8; *(float32x2_t *)&v538 = vdiv_f32(vcvt_f32_u32((uint32x2_t)vand_s8(v190, (int8x8_t)0xFF000000FFLL)), v186); *((_QWORD *)&v538 + 1) = v189 | 0x3F80000000000000LL; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v184->setEndColor)(v184, &v538); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v184->setStartColorVar)(v184, &v538); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v184->setEndColorVar)(v184, &v538); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))v184->getSpeed)(v184); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))v184->setSpeed)(v184); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v184->setScale)(v184, v167 * 1.1); v191 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v184->getStartSize)(v184); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v184->setStartSize)(v184, v191 * 1.2); v192 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v184->getEndSize)(v184); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v184->setEndSize)(v184, v192 * 0.5); cocos2d::CCParticleSystem::resetSystem(v184); v193 = CCCircleWave::create_1(v167 * 10.0, v167 * 80.0, 0.5, 0); v194 = *(_WORD *)&p_m_playerColor1->r; v193->m_color.b = a1->m_playerColor1.b; *(_WORD *)&v193->m_color.r = v194; v195 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(CCCircleWave *, __int64))v193->setPosition)(v193, v195); v193->m_opacityMod = 1.0; ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v193, 1000); v155 = CCCircleWave::create_1(v167 * 10.0, v167 * 90.0, 0.4, 0); v66 = v155; v156 = *(_WORD *)&p_m_playerColor1->r; v155->m_color.b = a1->m_playerColor1.b; goto LABEL_96; case 12: v439 = cocos2d::CCSprite::createWithSpriteFrameName("playerExplosion_11_001.png"); v440 = GameManager::sharedState(); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v440->m_playLayer->m_objectLayer->addChild_0)( v440->m_playLayer->m_objectLayer, v439, 10000); v441 = v7 * (float)((float)((float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 2.0) + -1.0) * 0.1) + 1.25); v442 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v439->setPosition)(v439, v442); ((void (__fastcall *)(cocos2d::CCSprite *, float))v439->setScale)(v439, v441); v443 = rand(); v444 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, float))v439->setRotation)( v439, (float)((float)(vcvts_n_f32_s32(v443, 0x1Fu) * 2.0) + -1.0) * 45.0); v445 = 1; v446 = (cocos2d::CCArray *)sub_10024A15C(v444); do { v447 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v448 = (cocos2d::CCString *)sub_100268F4C("playerExplosion_11_%03d.png", v445); v449 = cocos2d::CCString::getCString(v448); v450 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v447, v449); sub_10024A2D0(v446, v450); ++v445; } while ( v445 != 13 ); v451 = (float)((float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 2.0) + -1.0) * 0.005) + 0.04; v452 = cocos2d::CCAnimation::createWithSpriteFrames(v446, v451); v453 = cocos2d::CCAnimate::create(v452); v555.ptr = (void (*)(void))520; v555.adj = 1; cocos2d::CCCallFunc::create(v439, v555); v454 = (cocos2d::CCAction *)sub_10018A494(v453); cocos2d::CCNode::runAction(v439, v454); v455 = cocos2d::CCDelayTime::create(v451 * 7.0); cocos2d::CCFadeOut::create(v451 * 6.0); sub_10018A494(v455); v456 = cocos2d::CCParticleSystemQuad::create("explodeEffectVortex.plist", 0); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v456->setPositionType)(v456, 2); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v456, 101); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v456->setAutoRemoveOnFinish)(v456, 1); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v456->setBlendAdditive)(v456, 1); v457 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v456->setPosition)(v456, v457); v538 = xmmword_100635DF0; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v456->setStartColor)(v456, &v538); v538 = xmmword_1006356D0; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v456->setEndColor)(v456, &v538); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v456->setStartColorVar)(v456, &v538); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v456->setEndColorVar)(v456, &v538); v458 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v456->getSpeed)(v456); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v456->setSpeed)(v456, v458 * 1.2); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v456->setScale)(v456, v441 * 1.2); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))v456->getStartSize)(v456); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))v456->setStartSize)(v456); v459 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v456->getEndSize)(v456); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v456->setEndSize)(v456, v459 * 0.5); cocos2d::CCParticleSystem::resetSystem(v456); v460 = CCCircleWave::create_1(v441 * 10.0, v441 * 125.0, 0.5, 0); v460->m_color.b = 0; *(_WORD *)&v460->m_color.r = 25855; v461 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(CCCircleWave *, __int64))v460->setPosition)(v460, v461); v460->m_opacityMod = 0.8; ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v460, 1000); v155 = CCCircleWave::create_1(v441 * 10.0, v441 * 135.0, 0.4, 0); v66 = v155; v155->m_color.b = 0; v156 = -20481; goto LABEL_96; case 13: v97 = cocos2d::CCSprite::createWithSpriteFrameName("playerExplosion_12_001.png"); v98 = GameManager::sharedState(); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v98->m_playLayer->m_objectLayer->addChild_0)( v98->m_playLayer->m_objectLayer, v97, 10000); v99 = v7 * (float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 0.2) + 0.9); v100 = (float32x2_t *)((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); v101.n128_u32[0] = 0; v102.n128_u32[0] = 6.0; sub_100022980(v101, v102, &v537); *(float32x2_t *)&v103 = sub_1000229DC(v100, &v537, (float32x2_t *)&v538); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *, double))v97->setPosition)(v97, &v538, v103); ((void (__fastcall *)(cocos2d::CCSprite *, float))v97->setScale)(v97, v99); v104 = rand(); v105 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, float))v97->setRotation)( v97, (float)((float)(vcvts_n_f32_s32(v104, 0x1Fu) * 2.0) + -1.0) * 45.0); v106 = 1; v107 = (cocos2d::CCArray *)sub_10024A15C(v105); do { v108 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v109 = (cocos2d::CCString *)sub_100268F4C("playerExplosion_12_%03d.png", v106); v110 = cocos2d::CCString::getCString(v109); v111 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v108, v110); sub_10024A2D0(v107, v111); ++v106; } while ( v106 != 13 ); v112 = (float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 0.005) + 0.04; v113 = cocos2d::CCAnimation::createWithSpriteFrames(v107, v112); v114 = cocos2d::CCAnimate::create(v113); v542.ptr = (void (*)(void))520; v542.adj = 1; cocos2d::CCCallFunc::create(v97, v542); v115 = (cocos2d::CCAction *)sub_10018A494(v114); cocos2d::CCNode::runAction(v97, v115); v116 = cocos2d::CCDelayTime::create(v112 * 5.0); cocos2d::CCFadeOut::create(v112 * 8.0); sub_10018A494(v116); v117 = cocos2d::CCParticleSystemQuad::create("explodeEffectVortex.plist", 0); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v117->setPositionType)(v117, 2); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v117, 1000); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v117->setAutoRemoveOnFinish)(v117, 1); v118 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v117->setPosition)(v117, v118); v538 = xmmword_100635DF0; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v117->setStartColor)(v117, &v538); v538 = xmmword_100635E00; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v117->setEndColor)(v117, &v538); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v117->setBlendAdditive)(v117, 1); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v117->setStartColorVar)(v117, &v538); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v117->setEndColorVar)(v117, &v538); v119 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v117->getSpeed)(v117); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v117->setSpeed)(v117, v119 * 0.9); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v117->setScale)(v117, v99 * 1.5); v120 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))v117->getPosVar)(v117); *(float32x2_t *)&v121 = sub_100022A14(v120, (float32x2_t *)&v538, 1.2); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *, double))v117->setPosVar)(v117, &v538, v121); v122 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v117->getStartSize)(v117); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v117->setStartSize)(v117, v122 * 0.8); v123 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v117->getEndSize)(v117); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v117->setEndSize)(v117, v123 * 0.4); cocos2d::CCParticleSystem::resetSystem(v117); v124 = CCCircleWave::create_1(v99 * 10.0, v99 * 120.0, v112 * 10.0, 0); v124->m_color.b = 50; *(_WORD *)&v124->m_color.r = -206; v125 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(CCCircleWave *, __int64))v124->setPosition)(v124, v125); v124->m_opacityMod = 1.0; ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v124, 1000); v126 = v99 * 115.0; v127 = v99 * 10.0; LABEL_40: v155 = CCCircleWave::create_1(v127, v126, 0.4, 0); v66 = v155; v155->m_color.b = 0; LABEL_85: v156 = -256; goto LABEL_96; case 14: v157 = cocos2d::CCSprite::createWithSpriteFrameName("playerExplosion_13_001.png"); v158 = GameManager::sharedState(); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v158->m_playLayer->m_objectLayer->addChild_0)( v158->m_playLayer->m_objectLayer, v157, 10000); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v157->setBlendFunc)(v157, 0x100000302LL); v159 = v7 * (float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 0.4) + 1.0); v160 = (float32x2_t *)((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); v161.n128_u32[0] = 0; v162.n128_u32[0] = 6.0; sub_100022980(v161, v162, &v537); *(float32x2_t *)&v163 = sub_1000229DC(v160, &v537, (float32x2_t *)&v538); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *, double))v157->setPosition)(v157, &v538, v163); ((void (__fastcall *)(cocos2d::CCSprite *, float))v157->setScale)(v157, v159); if ( vcvts_n_f32_s32(rand(), 0x1Fu) >= 0.25 ) { if ( vcvts_n_f32_s32(rand(), 0x1Fu) >= 0.25 ) { v495 = rand(); if ( vcvts_n_f32_s32(v495, 0x1Fu) >= 0.25 ) goto LABEL_92; v164 = 270.0; } else { v164 = 180.0; } } else { v164 = 90.0; } v495 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, float))v157->setRotation)(v157, v164); LABEL_92: v496 = 3; v497 = (cocos2d::CCArray *)sub_10024A15C(v495); do { v498 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v499 = (cocos2d::CCString *)sub_100268F4C("playerExplosion_13_%03d.png", v496); v500 = cocos2d::CCString::getCString(v499); v501 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v498, v500); sub_10024A2D0(v497, v501); ++v496; } while ( v496 != 13 ); v502 = v159 * 0.8; v503 = (float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 0.005) + 0.045; v504 = cocos2d::CCAnimation::createWithSpriteFrames(v497, v503); v505 = cocos2d::CCAnimate::create(v504); v557.ptr = (void (*)(void))520; v557.adj = 1; cocos2d::CCCallFunc::create(v157, v557); v506 = (cocos2d::CCAction *)sub_10018A494(v505); cocos2d::CCNode::runAction(v157, v506); v507 = cocos2d::CCDelayTime::create(v503 * 5.0); cocos2d::CCFadeOut::create(v503 * 8.0); sub_10018A494(v507); v508 = cocos2d::CCParticleSystemQuad::create("explodeEffect.plist", 0); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v508->setPositionType)(v508, 2); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v508, 99); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v508->setAutoRemoveOnFinish)(v508, 1); v509 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v508->setPosition)(v508, v509); v538 = xmmword_100635DE0; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v508->setStartColor)(v508, &v538); v538 = xmmword_100635DB0; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v508->setEndColor)(v508, &v538); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v508->setBlendAdditive)(v508, 1); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v508->setStartColorVar)(v508, &v538); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v508->setEndColorVar)(v508, &v538); v510 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v508->getSpeed)(v508); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v508->setSpeed)(v508, v510 * 0.9); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v508->setScale)(v508, v502 * 1.4); v511 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))v508->getPosVar)(v508); *(float32x2_t *)&v512 = sub_100022A14(v511, (float32x2_t *)&v538, 1.2); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *, double))v508->setPosVar)(v508, &v538, v512); v513 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v508->getStartSize)(v508); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v508->setStartSize)(v508, v513 * 0.8); v514 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v508->getEndSize)(v508); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v508->setEndSize)(v508, v514 * 0.4); cocos2d::CCParticleSystem::resetSystem(v508); v515 = CCCircleWave::create_1(v502 * 10.0, v502 * 120.0, v503 * 10.0, 0); v515->m_color.b = -1; *(_WORD *)&v515->m_color.r = -14336; v516 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(CCCircleWave *, __int64))v515->setPosition)(v515, v516); v515->m_opacityMod = 0.8; ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v515, 1000); v389 = v502 * 115.0; v390 = v502 * 10.0; LABEL_95: v155 = CCCircleWave::create_1(v390, v389, 0.4, 0); v66 = v155; v155->m_color.b = -1; v156 = -27136; LABEL_96: *(_WORD *)&v155->m_color.r = v156; LABEL_97: v517 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(CCCircleWave *, __int64))v66->setPosition)(v66, v517); *(_QWORD *)&v66->m_circleMode = 0xA00000001LL; LABEL_98: ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *))a1->m_parentLayer->addChild_0)(a1->m_parentLayer, v66); LABEL_99: v518 = GameManager::sharedState(); if ( !GameManager::getGameVariable(v518, "0153") ) { v519 = v7 * 40.0; v520 = cocos2d::CCRenderTexture::create_1((int)v519, (int)v519); v521 = (__int64 *)((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); sub_1000229B8((__int64 *)&v538, v521); v522.n128_f32[0] = v519 * 0.5; v523.n128_f32[0] = v519 * 0.5; sub_100022980(v522, v523, &v537); ((void (__fastcall *)(PlayerObject *, float32x2_t *))a1->setPosition)(a1, &v537); cocos2d::CCRenderTexture::beginWithClear_1(v520, 0.0, 0.0, 0.0, 0.0); ((void (__fastcall *)(cocos2d::CCSprite *))a1->m_dashSpritesContainer->visit)(a1->m_dashSpritesContainer); ((void (__fastcall *)(PlayerObject *))a1->visit)(a1); cocos2d::CCRenderTexture::end(v520); ((void (__fastcall *)(PlayerObject *, __int128 *))a1->setPosition)(a1, &v538); v524 = ExplodeItemNode::create(v520); ((void (__fastcall *)(cocos2d::CCLayer *, ExplodeItemNode *, __int64))m_parentLayer->addChild_0)( m_parentLayer, v524, 101); ((void (__fastcall *)(ExplodeItemNode *, __int128 *))v524->setPosition)(v524, &v538); v525 = (float)(unsigned __int8)*(_WORD *)&p_m_playerColor1->r / 255.0; v526 = (float)HIBYTE(*(unsigned __int16 *)&p_m_playerColor1->r) / 255.0; v527 = (float)a1->m_playerColor1.b / 255.0; v528 = PlayerObject::getCurrentXVelocity(a1) * 0.899999976 * 0.800000012; v529 = rand(); v530 = vcvts_n_f32_s32(rand(), 0x1Fu); v531 = (int)(float)(roundf(v530 + v530) + 2.0); v533 = vcvts_n_f32_s32(rand(), 0x1Fu); if ( v533 <= 0.95 ) { v535 = vcvts_n_f32_s32(v529, 0x1Fu); v534 = (int)(float)(roundf(v535 + v535) + 2.0); if ( v533 > 0.9 ) v531 = 1; } else { v534 = 1; } *(_QWORD *)&v536.b = LODWORD(v527) | 0x3F80000000000000LL; *(_QWORD *)&v536.r = __PAIR64__(LODWORD(v526), LODWORD(v525)); *(_QWORD *)&v558.r = 0; ExplodeItemNode::createSprites(v524, v534, v531, v528 * 0.5, v528, 6.0, 3.0, 1.4, 0.0, v536, v558, v532); } return; case 15: v360 = cocos2d::CCSprite::createWithSpriteFrameName("playerExplosion_14_002.png"); v361 = GameManager::sharedState(); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v361->m_playLayer->m_objectLayer->addChild_0)( v361->m_playLayer->m_objectLayer, v360, 10000); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v360->setBlendFunc)(v360, 0x100000302LL); v362 = v7 * (float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 0.2) + 1.0); v363 = (float32x2_t *)((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); v364.n128_u32[0] = 0; v365.n128_u32[0] = 6.0; sub_100022980(v364, v365, &v537); *(float32x2_t *)&v366 = sub_1000229DC(v363, &v537, (float32x2_t *)&v538); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *, double))v360->setPosition)(v360, &v538, v366); ((void (__fastcall *)(cocos2d::CCSprite *, float))v360->setScale)(v360, v362); v367 = rand(); v368 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, float))v360->setRotation)( v360, (float)((float)(vcvts_n_f32_s32(v367, 0x1Fu) * 2.0) + -1.0) * 45.0); v369 = 3; v370 = (cocos2d::CCArray *)sub_10024A15C(v368); do { v371 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v372 = (cocos2d::CCString *)sub_100268F4C("playerExplosion_14_%03d.png", v369); v373 = cocos2d::CCString::getCString(v372); v374 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v371, v373); sub_10024A2D0(v370, v374); ++v369; } while ( v369 != 16 ); v375 = v362 * 0.8; v376 = (float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 0.004) + 0.033; v377 = cocos2d::CCAnimation::createWithSpriteFrames(v370, v376); v378 = cocos2d::CCAnimate::create(v377); v552.ptr = (void (*)(void))520; v552.adj = 1; cocos2d::CCCallFunc::create(v360, v552); v379 = (cocos2d::CCAction *)sub_10018A494(v378); cocos2d::CCNode::runAction(v360, v379); v380 = cocos2d::CCDelayTime::create(v376 * 5.0); cocos2d::CCFadeOut::create(v376 * 8.0); sub_10018A494(v380); v381 = cocos2d::CCParticleSystemQuad::create("explodeEffectVortex.plist", 0); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v381->setPositionType)(v381, 2); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v381, 99); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v381->setAutoRemoveOnFinish)(v381, 1); v382 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v381->setPosition)(v381, v382); v538 = xmmword_100635DC0; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v381->setStartColor)(v381, &v538); v538 = xmmword_100635DD0; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v381->setEndColor)(v381, &v538); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v381->setBlendAdditive)(v381, 1); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v381->setStartColorVar)(v381, &v538); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v381->setEndColorVar)(v381, &v538); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))v381->getSpeed)(v381); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))v381->setSpeed)(v381); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v381->setScale)(v381, v375 * 1.4); v383 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))v381->getPosVar)(v381); *(float32x2_t *)&v384 = sub_100022A14(v383, (float32x2_t *)&v538, 1.2); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *, double))v381->setPosVar)(v381, &v538, v384); v385 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v381->getStartSize)(v381); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v381->setStartSize)(v381, v385 * 0.8); v386 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v381->getEndSize)(v381); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v381->setEndSize)(v381, v386 * 0.4); cocos2d::CCParticleSystem::resetSystem(v381); v387 = CCCircleWave::create_1(v375 * 10.0, v375 * 120.0, v376 * 10.0, 0); v387->m_color.b = -1; *(_WORD *)&v387->m_color.r = -14336; v388 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(CCCircleWave *, __int64))v387->setPosition)(v387, v388); v387->m_opacityMod = 0.8; ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v387, 1000); v389 = v375 * 115.0; v390 = v375 * 10.0; goto LABEL_95; case 16: v68 = cocos2d::CCSprite::createWithSpriteFrameName("playerExplosion_15_001.png"); v69 = GameManager::sharedState(); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v69->m_playLayer->m_objectLayer->addChild_0)( v69->m_playLayer->m_objectLayer, v68, 10000); v70 = v7 * (float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 0.4) + 1.4); v71 = (float32x2_t *)((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); v72.n128_u32[0] = 0; v73.n128_u32[0] = 6.0; sub_100022980(v72, v73, &v537); *(float32x2_t *)&v74 = sub_1000229DC(v71, &v537, (float32x2_t *)&v538); ((void (__fastcall *)(cocos2d::CCSprite *, __int128 *, double))v68->setPosition)(v68, &v538, v74); ((void (__fastcall *)(cocos2d::CCSprite *, float))v68->setScale)(v68, v70); v75 = rand(); v76 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, float))v68->setRotation)( v68, vcvts_n_f32_s32(v75, 0x1Fu) * 360.0); v77 = 2; v78 = (cocos2d::CCArray *)sub_10024A15C(v76); do { v79 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v80 = (cocos2d::CCString *)sub_100268F4C("playerExplosion_15_%03d.png", v77); v81 = cocos2d::CCString::getCString(v80); v82 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v79, v81); sub_10024A2D0(v78, v82); ++v77; } while ( v77 != 17 ); v83 = v70 * 0.8; v84 = (float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 0.004) + 0.04; v85 = cocos2d::CCAnimation::createWithSpriteFrames(v78, v84); v86 = cocos2d::CCAnimate::create(v85); v541.ptr = (void (*)(void))520; v541.adj = 1; cocos2d::CCCallFunc::create(v68, v541); v87 = (cocos2d::CCAction *)sub_10018A494(v86); cocos2d::CCNode::runAction(v68, v87); v88 = cocos2d::CCParticleSystemQuad::create("explodeEffectVortex.plist", 0); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v88->setPositionType)(v88, 2); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v88, 99); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v88->setAutoRemoveOnFinish)(v88, 1); v89 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v88->setPosition)(v88, v89); v538 = xmmword_100635DA0; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v88->setStartColor)(v88, &v538); v538 = xmmword_100635DB0; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v88->setEndColor)(v88, &v538); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v88->setBlendAdditive)(v88, 1); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v88->setStartColorVar)(v88, &v538); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v88->setEndColorVar)(v88, &v538); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))v88->getSpeed)(v88); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))v88->setSpeed)(v88); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v88->setScale)(v88, v83 * 1.4); v90 = (float32x2_t *)((__int64 (__fastcall *)(cocos2d::CCParticleSystemQuad *))v88->getPosVar)(v88); *(float32x2_t *)&v91 = sub_100022A14(v90, (float32x2_t *)&v538, 1.2); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *, double))v88->setPosVar)(v88, &v538, v91); v92 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v88->getStartSize)(v88); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v88->setStartSize)(v88, v92 * 0.8); v93 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v88->getEndSize)(v88); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v88->setEndSize)(v88, v93 * 0.4); cocos2d::CCParticleSystem::resetSystem(v88); v94 = CCCircleWave::create_1(v83 * 10.0, v83 * 90.0, v84 * 10.0, 0); v94->m_color.b = -1; *(_WORD *)&v94->m_color.r = 25600; v95 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(CCCircleWave *, __int64))v94->setPosition)(v94, v95); v94->m_opacityMod = 1.0; ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v94, 1000); v66 = CCCircleWave::create_1(v83 * 10.0, v83 * 80.0, v84 * 14.0, 0); v66->m_color.b = -1; *(_WORD *)&v66->m_color.r = 25600; v96 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(CCCircleWave *, __int64))v66->setPosition)(v66, v96); v66->m_opacityMod = 1.0; goto LABEL_98; case 17: v220 = cocos2d::CCSprite::createWithSpriteFrameName("playerExplosion_16_002.png"); v221 = GameManager::sharedState(); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v221->m_playLayer->m_objectLayer->addChild_0)( v221->m_playLayer->m_objectLayer, v220, 10000); v222 = v7 * (float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 0.3) + 1.0); v223 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v220->setPosition)(v220, v223); v224 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, float))v220->setScale)(v220, v222); v225 = 2; v226 = (cocos2d::CCArray *)sub_10024A15C(v224); do { v227 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v228 = (cocos2d::CCString *)sub_100268F4C("playerExplosion_16_%03d.png", v225); v229 = cocos2d::CCString::getCString(v228); v230 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v227, v229); sub_10024A2D0(v226, v230); ++v225; } while ( v225 != 20 ); v231 = (float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 0.005) + 0.04; v232 = cocos2d::CCAnimation::createWithSpriteFrames(v226, v231); v233 = cocos2d::CCAnimate::create(v232); v546.ptr = (void (*)(void))520; v546.adj = 1; cocos2d::CCCallFunc::create(v220, v546); v234 = (cocos2d::CCAction *)sub_10018A494(v233); cocos2d::CCNode::runAction(v220, v234); v235 = cocos2d::CCDelayTime::create(v231 * 12.0); v236 = 6.0; goto LABEL_59; case 18: v36 = cocos2d::CCSprite::createWithSpriteFrameName("playerExplosion_17_002.png"); v37 = GameManager::sharedState(); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v37->m_playLayer->m_objectLayer->addChild_0)( v37->m_playLayer->m_objectLayer, v36, 10000); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v36->setBlendFunc)(v36, 0x100000302LL); v38 = v7 * (float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 0.2) + 1.0); v39 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v36->setPosition)(v36, v39); ((void (__fastcall *)(cocos2d::CCSprite *, float))v36->setScale)(v36, v38); v40 = rand(); v41 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, float))v36->setRotation)( v36, (float)((float)(vcvts_n_f32_s32(v40, 0x1Fu) * 2.0) + -1.0) * 180.0); v42 = 2; v43 = (cocos2d::CCArray *)sub_10024A15C(v41); do { v44 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v45 = (cocos2d::CCString *)sub_100268F4C("playerExplosion_17_%03d.png", v42); v46 = cocos2d::CCString::getCString(v45); v47 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v44, v46); sub_10024A2D0(v43, v47); ++v42; } while ( v42 != 16 ); v48 = (float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 0.005) + 0.035; v49 = cocos2d::CCAnimation::createWithSpriteFrames(v43, v48); v50 = cocos2d::CCAnimate::create(v49); v540.ptr = (void (*)(void))520; v540.adj = 1; cocos2d::CCCallFunc::create(v36, v540); v51 = (cocos2d::CCAction *)sub_10018A494(v50); cocos2d::CCNode::runAction(v36, v51); v52 = cocos2d::CCDelayTime::create(v48 * 12.0); cocos2d::CCFadeOut::create(v48 * 6.0); v53 = (cocos2d::CCAction *)sub_10018A494(v52); cocos2d::CCNode::runAction(v36, v53); v54 = cocos2d::CCParticleSystemQuad::create("explodeEffect.plist", 0); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v54->setPositionType)(v54, 2); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v54, 99); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v54->setAutoRemoveOnFinish)(v54, 1); v55 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v54->setPosition)(v54, v55); __asm { FMOV V0.4S, #1.0 } v538 = _Q0; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v54->setStartColor)(v54, &v538); v538 = xmmword_100635D90; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v54->setEndColor)(v54, &v538); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v54->setStartColorVar)(v54, &v538); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v54->setEndColorVar)(v54, &v538); v61 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v54->getSpeed)(v54); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v54->setSpeed)(v54, v61 * 0.8); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v54->setScale)(v54, v7 * 0.8); v62 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v54->getStartSize)(v54); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v54->setStartSize)(v54, v62 * 0.5); v63 = ((float (__fastcall *)(cocos2d::CCParticleSystemQuad *))v54->getEndSize)(v54); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v54->setEndSize)(v54, v63 * 0.1); cocos2d::CCParticleSystem::resetSystem(v54); v64 = CCCircleWave::create_1(v7 * 10.0, v7 * 90.0, 0.5, 0); v64->m_color.b = -1; *(_WORD *)&v64->m_color.r = -256; v65 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(CCCircleWave *, __int64))v64->setPosition)(v64, v65); v64->m_opacityMod = 1.0; *(_QWORD *)&v64->m_circleMode = 0xA00000001LL; ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v64, 1000); v66 = CCCircleWave::create_1(v7 * 10.0, v7 * 100.0, 0.4, 0); v66->m_color.b = -1; *(_WORD *)&v66->m_color.r = -256; v67 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(CCCircleWave *, __int64))v66->setPosition)(v66, v67); *(_QWORD *)&v66->m_circleMode = 0xA00000001LL; goto LABEL_98; case 19: v220 = cocos2d::CCSprite::createWithSpriteFrameName("playerExplosion_18_002.png"); v322 = GameManager::sharedState(); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v322->m_playLayer->m_objectLayer->addChild_0)( v322->m_playLayer->m_objectLayer, v220, 10000); v323 = rand(); ((void (__fastcall *)(cocos2d::CCSprite *, float))v220->setRotation)( v220, (float)((float)(vcvts_n_f32_s32(v323, 0x1Fu) * 2.0) + -1.0) * 180.0); v222 = v7 * (float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 0.3) + 1.0); v324 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v220->setPosition)(v220, v324); v325 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, float))v220->setScale)(v220, v222); v326 = 2; v327 = (cocos2d::CCArray *)sub_10024A15C(v325); do { v328 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v329 = (cocos2d::CCString *)sub_100268F4C("playerExplosion_18_%03d.png", v326); v330 = cocos2d::CCString::getCString(v329); v331 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v328, v330); sub_10024A2D0(v327, v331); ++v326; } while ( v326 != 24 ); v231 = (float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 0.005) + 0.035; v332 = cocos2d::CCAnimation::createWithSpriteFrames(v327, v231); v333 = cocos2d::CCAnimate::create(v332); v550.ptr = (void (*)(void))520; v550.adj = 1; cocos2d::CCCallFunc::create(v220, v550); v334 = (cocos2d::CCAction *)sub_10018A494(v333); cocos2d::CCNode::runAction(v220, v334); v235 = cocos2d::CCDelayTime::create(v231 * 18.0); v236 = 5.0; LABEL_59: cocos2d::CCFadeOut::create(v231 * v236); v335 = (cocos2d::CCAction *)sub_10018A494(v235); cocos2d::CCNode::runAction(v220, v335); v336 = cocos2d::CCParticleSystemQuad::create("explodeEffectGrav.plist", 0); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v336->setPositionType)(v336, 2); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v336, 99); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v336->setAutoRemoveOnFinish)(v336, 1); v337 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v336->setPosition)(v336, v337); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v336->setAngleVar)(v336, 30.0); v538 = xmmword_100635D60; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v336->setStartColor)(v336, &v538); v538 = xmmword_100635D70; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v336->setEndColor)(v336, &v538); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _QWORD))v336->setBlendAdditive)(v336, 0); v538 = xmmword_100635D80; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v336->setStartColorVar)(v336, &v538); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v336->setEndColorVar)(v336, &v538); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))v336->getSpeed)(v336); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))v336->setSpeed)(v336); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v336->setScale)(v336, v222); cocos2d::CCParticleSystem::resetSystem(v336); v338 = v222 * 10.0; v339 = CCCircleWave::create_1(v222 * 10.0, v222 * 110.0, 0.6, 0); v339->m_color.b = 0; *(_WORD *)&v339->m_color.r = -14081; v340 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(CCCircleWave *, __int64))v339->setPosition)(v339, v340); v339->m_opacityMod = 1.0; ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *))a1->m_parentLayer->addChild_0)(a1->m_parentLayer, v339); LABEL_63: v34 = v222 * 115.0; v35 = v338; LABEL_64: v155 = CCCircleWave::create_1(v35, v34, 0.4, 0); v66 = v155; v155->m_color.b = 0; v156 = -26881; goto LABEL_96; case 20: v417 = cocos2d::CCSprite::createWithSpriteFrameName("playerExplosion_19_002.png"); v418 = GameManager::sharedState(); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCSprite *, __int64))v418->m_playLayer->m_objectLayer->addChild_0)( v418->m_playLayer->m_objectLayer, v417, 10000); v419 = v7 * (float)((float)(vcvts_n_f32_s32(rand(), 0x1Fu) * 0.3) + 1.0); v420 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCSprite *, __int64))v417->setPosition)(v417, v420); ((void (__fastcall *)(cocos2d::CCSprite *, float))v417->setScale)(v417, v419); v421 = rand(); v422 = ((__int64 (__fastcall *)(cocos2d::CCSprite *, float))v417->setRotation)( v417, (float)((float)(vcvts_n_f32_s32(v421, 0x1Fu) * 2.0) + -1.0) * 45.0); v423 = 2; v424 = (cocos2d::CCArray *)sub_10024A15C(v422); do { v425 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v426 = (cocos2d::CCString *)sub_100268F4C("playerExplosion_19_%03d.png", v423); v427 = cocos2d::CCString::getCString(v426); v428 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v425, v427); sub_10024A2D0(v424, v428); ++v423; } while ( v423 != 14 ); v429 = rand(); v430 = cocos2d::CCAnimation::createWithSpriteFrames(v424, (float)(vcvts_n_f32_s32(v429, 0x1Fu) * 0.005) + 0.04); v431 = cocos2d::CCAnimate::create(v430); v554.ptr = (void (*)(void))520; v554.adj = 1; cocos2d::CCCallFunc::create(v417, v554); v432 = (cocos2d::CCAction *)sub_10018A494(v431); cocos2d::CCNode::runAction(v417, v432); v433 = cocos2d::CCParticleSystemQuad::create("explodeEffectGrav.plist", 0); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v433->setPositionType)(v433, 2); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCParticleSystemQuad *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v433, 99); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v433->setAutoRemoveOnFinish)(v433, 1); v434 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v433->setPosition)(v433, v434); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v433->setAngleVar)(v433, 30.0); v538 = xmmword_100635D60; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v433->setStartColor)(v433, &v538); v538 = xmmword_100635D70; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v433->setEndColor)(v433, &v538); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, _QWORD))v433->setBlendAdditive)(v433, 0); v538 = xmmword_100635D80; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v433->setStartColorVar)(v433, &v538); v538 = xmmword_100635900; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v433->setEndColorVar)(v433, &v538); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))v433->getSpeed)(v433); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *))v433->setSpeed)(v433); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v433->setScale)(v433, v419); cocos2d::CCParticleSystem::resetSystem(v433); v435 = CCCircleWave::create_1(v419 * 10.0, v419 * 110.0, 0.6, 0); v435->m_color.b = 0; *(_WORD *)&v435->m_color.r = -14081; v436 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(CCCircleWave *, __int64))v435->setPosition)(v435, v436); v435->m_opacityMod = 1.0; ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *, __int64))a1->m_parentLayer->addChild_0)( a1->m_parentLayer, v435, 99); v437 = CCCircleWave::create_1(v419 * 10.0, v419 * 115.0, 0.4, 0); v437->m_color.b = 0; *(_WORD *)&v437->m_color.r = -26881; v438 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(CCCircleWave *, __int64))v437->setPosition)(v437, v438); *(_QWORD *)&v437->m_circleMode = 0xA00000001LL; ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *))a1->m_parentLayer->addChild_0)(a1->m_parentLayer, v437); goto LABEL_99; default: v488 = cocos2d::CCParticleSystemQuad::create("explodeEffect.plist", 0); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v488->setPositionType)(v488, 2); ((void (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCParticleSystemQuad *, __int64))m_parentLayer->addChild_0)( m_parentLayer, v488, 100); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v488->setAutoRemoveOnFinish)(v488, 1); v489 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int64))v488->setPosition)(v488, v489); *(float *)&v490 = (float)a1->m_playerColor1.b / 255.0; v491.i16[0] = *(_WORD *)&a1->m_playerColor1.r; v491.i8[2] = a1->m_playerColor1.b; v491.i32[1] = (unsigned __int32)v491.i32[0] >> 8; *(float32x2_t *)&v538 = vdiv_f32( vcvt_f32_u32((uint32x2_t)vand_s8(v491, (int8x8_t)0xFF000000FFLL)), (float32x2_t)vdup_n_s32(0x437F0000u)); *((_QWORD *)&v538 + 1) = v490 | 0x3F80000000000000LL; ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, __int128 *))v488->setStartColor)(v488, &v538); ((void (__fastcall *)(cocos2d::CCParticleSystemQuad *, float))v488->setScale)(v488, v7); cocos2d::CCParticleSystem::resetSystem(v488); v492 = CCCircleWave::create_1(v7 * 10.0, v7 * 90.0, 0.5, 0); v493 = *(_WORD *)&p_m_playerColor1->r; v492->m_color.b = a1->m_playerColor1.b; *(_WORD *)&v492->m_color.r = v493; v494 = ((__int64 (__fastcall *)(PlayerObject *))a1->getPosition)(a1); ((void (__fastcall *)(CCCircleWave *, __int64))v492->setPosition)(v492, v494); ((void (__fastcall *)(cocos2d::CCLayer *, CCCircleWave *))m_parentLayer->addChild_0)(m_parentLayer, v492); goto LABEL_99; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source