// // EffectGameObject::triggerObject from 0x1404a5f30 to 0x1404a84cc (9628 bytes) // // 31 xrefs: // > RandTriggerGameObject::triggerObject @ 0x1404b4210 // > CountTriggerGameObject::triggerObject @ 0x1404bb268 // > TransformTriggerGameObject::triggerObject @ 0x1404bc18d // > CameraTriggerGameObject::triggerObject @ 0x1404bda70 // > TimerTriggerGameObject::triggerObject @ 0x1404bf229 // > ItemTriggerGameObject::triggerObject @ 0x1404bfd3c // > @ 0x14060e8d8 // > @ 0x14060f110 // > @ 0x14060f7b8 // > @ 0x14060fe88 // > @ 0x140610c88 // > @ 0x1406114e8 // > @ 0x140612ab0 // > @ 0x140613158 // > @ 0x1406138c8 // > @ 0x140613f70 // > @ 0x140615d80 // > @ 0x140616c88 // > @ 0x1406179d8 // > @ 0x1406187f0 // > @ 0x1406199d8 // > @ 0x14061a728 // > @ 0x14061b4f0 // > @ 0x14061bc38 // > @ 0x14061c3d0 // > @ 0x14061ca78 // > @ 0x14061d7c8 // > @ 0x14061de70 // > @ 0x14061e518 // > @ 0x14061fb68 // > @ 0x1406dc8a8 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=31 void EffectGameObject::triggerObject(EffectGameObject *a1, GJBaseGameLayer *a2, int a3, std::vector *const a4) { __int64 v5; // r9 GJBaseGameLayer *v6; // r15 unsigned int v8; // r13d int m_itemID; // eax GJEffectManager *m_effectManager; // rdi int v11; // r8d int v12; // eax int v13; // r11d const std::vector *v14; // r9 char v15; // bl void *v16; // rcx int m_collectiblePoints; // eax __int64 m_objectID; // r8 __int64 v19; // rax __int64 v20; // rdi __int64 v21; // rbx __int64 v22; // rbx char v23; // bl void *v24; // rcx float v25; // xmm6_4 int v26; // edx GameObject *v27; // r13 GameObject *v28; // rax GameObject *m_player2; // r12 GameObject *v30; // rsi GameObject *v31; // rdi GameObject *v32; // rbx GameObject *v33; // rax float v34; // xmm0_4 int v35; // r8d int v36; // r8d int v37; // r8d bool m_hasNoEffects; // al float m_duration; // xmm1_4 float m_shakeStrength; // xmm2_4 char **v41; // r8 __int16 v42; // bx int v43; // r9d int v44; // r10d bool m_isDualMode; // r11 TouchTriggerControl m_touchPlayerMode; // esi TouchTriggerType m_touchToggleMode; // r12d bool m_touchHoldMode; // al int v49; // r14d void **v50; // rdi _QWORD *v51; // rdx int v52; // edx int m_animationID; // edi cocos2d::CCArray *v54; // rbx struct cocos2d::CCObject *v55; // rax char **v56; // rsi char v57; // bl int v58; // r15d int v59; // r12d char m_activateGroup; // r8 int v61; // r14d __int64 v62; // rax _QWORD *v63; // rdi __int64 v64; // rdx __int64 v65; // rcx __int64 v66; // rcx __int64 v67; // rcx __int64 v68; // rcx std::vector *v69; // rcx int v70; // ebx void *v71; // rcx int v72; // esi std::vector *v73; // rcx int v74; // edi std::vector *v75; // rcx int v76; // edi void *v77; // rcx unsigned int v78; // edi int v79; // ebx int m_centerGroupID; // ebx char v81; // r8 std::vector *p_m_advanceFollowInstances; // r10 std::_Vector_val>::pointer Mylast; // rdx std::_Vector_val>::pointer Myfirst; // rcx int m_controlID; // r8d int v86; // r11d int *p_m_targetGroupID; // r9 std::_Vector_val>::pointer v88; // rdx int v89; // eax std::vector *v90; // rax char v91; // bl bool m_lockToPlayerX; // cl bool m_lockToPlayerY; // cl std::_Simple_types::value_type v94; // ebx int v95; // ecx int v96; // ecx int v97; // ecx int v98; // ecx int v99; // eax int v100; // eax int m_targetGroupID; // r8d int v102; // ecx int v103; // ecx int v104; // ecx int v105; // ecx __int64 v106; // rax __int64 *v107; // r14 int v108; // r12d __int64 v109; // rdi __int64 v110; // rcx __int64 v111; // r15 __int64 i; // rbx __int64 v113; // rbx int v114; // eax float v115; // xmm6_4 int v116; // eax float v117; // xmm7_4 int v118; // edx GameObject *Object; // rax GameObject *v120; // rbx __int64 v121; // rax int v122; // eax int v123; // eax int v124; // ebx cocos2d::CCPoint v125; // rax GJEffectManager *v126; // rcx std::_Vector_val>>>>>::pointer v127; // r9 std::_List_unchecked_const_iterator>>, std::_Iterator_base0>::_Nodeptr Ptr; // rdx bool v129; // di bool m_targetPlayer1; // r12 int v131; // esi __int64 v132; // r10 void *v133; // rax __int16 v134; // bx __int16 v135; // bx __int64 v136; // rdx __int16 v137; // bx int *p_m_uniqueID; // rdi void *v139; // rcx cocos2d::CCArray *Group; // rax cocos2d::CCArray *v141; // rbx cocos2d::ccArray *data; // rdi __int64 num; // rax int **arr; // rdi int **v145; // rsi int *v146; // rbx int m_uniqueID; // r8d float m_moveModY; // xmm1_4 float m_moveModX; // xmm2_4 float v150; // xmm1_4 float v151; // xmm2_4 int v152; // [rsp+20h] [rbp-E0h] bool v153; // [rsp+40h] [rbp-C0h] int v154; // [rsp+40h] [rbp-C0h] bool v155; // [rsp+48h] [rbp-B8h] char v156[8]; // [rsp+88h] [rbp-78h] BYREF void *Block[2]; // [rsp+90h] [rbp-70h] BYREF __int64 v158; // [rsp+A0h] [rbp-60h] char v159[8]; // [rsp+B0h] [rbp-50h] BYREF int v160; // [rsp+B8h] [rbp-48h] BYREF __int128 v161; // [rsp+C0h] [rbp-40h] BYREF __int64 v162; // [rsp+D0h] [rbp-30h] EffectGameObject *v163; // [rsp+D8h] [rbp-28h] BYREF _QWORD v164[3]; // [rsp+E0h] [rbp-20h] BYREF int v165; // [rsp+F8h] [rbp-8h] BYREF void *v166; // [rsp+100h] [rbp+0h] BYREF _QWORD v167[11]; // [rsp+108h] [rbp+8h] BYREF GameObject *v168; // [rsp+1A0h] [rbp+A0h] BYREF GJBaseGameLayer *v169; // [rsp+1A8h] [rbp+A8h] v169 = a2; v5 = (unsigned int)a3; v6 = a2; v8 = 0; if ( a1->m_objectType == Collectible ) { if ( a1->m_collectibleIsPickupItem ) { m_itemID = a1->m_itemID; m_effectManager = a2->m_effectManager; if ( a1->m_subtractCount ) { if ( m_itemID < 0 ) m_itemID = 0; if ( m_itemID > 9999 ) m_itemID = 9999; LODWORD(v168) = m_itemID; v11 = *(_DWORD *)(*(_QWORD *)sub_140060B20( &m_effectManager->m_itemCountMap._Traitsobj._Mypair._Myval2._Myval2, (__int64)Block, (unsigned __int8 *)&v168) + 20LL) - 1; } else { if ( m_itemID < 0 ) m_itemID = 0; if ( m_itemID > 9999 ) m_itemID = 9999; LODWORD(v168) = m_itemID; v11 = *(_DWORD *)(*(_QWORD *)sub_140060B20( &m_effectManager->m_itemCountMap._Traitsobj._Mypair._Myval2._Myval2, (__int64)Block, (unsigned __int8 *)&v168) + 20LL) + 1; } GJEffectManager::updateCountForItem(m_effectManager, (int)v168, v11); v12 = GJEffectManager::countForItem(v6->m_effectManager, a1->m_itemID); GJBaseGameLayer::updateCounters(v6, v13, v12); } if ( a1->m_collectibleIsToggleTrigger ) { if ( a4 ) { v14 = (const std::vector *)sub_14024B270(&v161, (__int64)a4); v15 = 1; } else { *(_OWORD *)Block = 0; v158 = 0; v14 = (const std::vector *)Block; v15 = 2; } v6->toggleGroupTriggered( &v6->TriggerEffectDelegate, a1->m_targetGroupID, a1->m_activateGroup, v14, a1->m_uniqueID, a1->m_controlID); if ( (v15 & 2) != 0 ) { v15 &= ~2u; v16 = Block[0]; if ( Block[0] ) { if ( (unsigned __int64)(4 * ((signed __int64)(v158 - (unsigned __int64)Block[0]) >> 2)) >= 0x1000 ) { v16 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v16 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v16); *(_OWORD *)Block = 0; v158 = 0; } } if ( (v15 & 1) != 0 ) sub_14005E430((__int64)&v161); } m_collectiblePoints = a1->m_collectiblePoints; if ( m_collectiblePoints ) { v6->m_gameState.m_unkBool32 = 1; v6->m_gameState.m_points += m_collectiblePoints; } return; } m_objectID = (unsigned int)a1->m_objectID; if ( (int)m_objectID <= 744 ) { if ( (_DWORD)m_objectID == 744 ) { LABEL_49: ((void (__fastcall *)(GJBaseGameLayer *, cocos2d::ccColor3B *, GJBaseGameLayer_vtbl *, _QWORD, bool, _DWORD, cocos2d::ccHSVValue *, int, bool, EffectGameObject *, int, int))a2->updateColor)( a2, &a1->m_triggerTargetColor, a2->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable, (unsigned int)a1->m_targetColor, a1->m_usesBlending, LODWORD(a1->m_opacity), &a1->m_hsvValue, a1->m_copyColorID, a1->m_copyOpacity, a1, a1->m_uniqueID, a1->m_controlID); if ( a1->m_objectID == 29 && a1->m_tintGround ) { LOBYTE(v154) = a1->m_copyOpacity; LOBYTE(v152) = 0; ((void (__fastcall *)(GJBaseGameLayer *, cocos2d::ccColor3B *, GJBaseGameLayer_vtbl *, __int64, int, int, cocos2d::ccHSVValue *, int, int, EffectGameObject *, int, int))v6->updateColor)( v6, &a1->m_triggerTargetColor, v6->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable, 1001, v152, 1065353216, &a1->m_hsvValue, a1->m_copyColorID, v154, a1, a1->m_uniqueID, a1->m_controlID); } } else { switch ( (int)m_objectID ) { case 22: case 23: case 24: case 25: case 26: case 27: case 28: case 55: case 56: case 57: case 58: case 59: goto LABEL_256; case 29: case 30: case 105: goto LABEL_49; case 32: if ( !a1->m_editorEnabled ) { v19 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v168 = (GameObject *)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v168); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v19 = qword_1406C2ED8; } v20 = *(_QWORD *)(v19 + 520); PlayerObject::toggleGhostEffect(*(PlayerObject **)(v20 + 3488), Enabled); if ( *(_BYTE *)(v20 + 1058) ) PlayerObject::toggleGhostEffect(*(PlayerObject **)(v20 + 3496), Enabled); } break; case 33: if ( !a1->m_editorEnabled ) { v21 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v168 = (GameObject *)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v168); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v21 = qword_1406C2ED8; } v22 = *(_QWORD *)(v21 + 520); PlayerObject::toggleGhostEffect(*(PlayerObject **)(v22 + 3488), (GhostType)0); if ( *(_BYTE *)(v22 + 1058) ) PlayerObject::toggleGhostEffect(*(PlayerObject **)(v22 + 3496), (GhostType)0); } break; case 142: goto LABEL_56; case 200: case 201: case 202: case 203: goto LABEL_94; default: return; } } return; } if ( (int)m_objectID > 2899 ) { if ( (int)m_objectID <= 3602 ) { if ( (_DWORD)m_objectID == 3602 ) { GJBaseGameLayer::activateSFXTrigger(a2, (SFXTriggerGameObject *)a1); } else { switch ( (int)m_objectID ) { case 2900: ((void (__fastcall *)(GJBaseGameLayer *, EffectGameObject *, __int64, __int64))a2->rotateGameplay)( a2, a1, m_objectID, v5); return; case 2901: if ( a1->m_moveTargetMode != YOnly ) { m_lockToPlayerX = a1->m_lockToPlayerX; a2->m_gameState.m_unkInt1 = (int)a1->m_moveOffset.x; a2->m_gameState.m_unkBool2 = m_lockToPlayerX; } if ( a1->m_moveTargetMode != XOnly ) { m_lockToPlayerY = a1->m_lockToPlayerY; a2->m_gameState.m_unkInt2 = (int)a1->m_moveOffset.y; a2->m_gameState.m_unkBool3 = m_lockToPlayerY; } return; case 2903: GJBaseGameLayer::triggerGradientCommand(a2, (GradientTriggerObject *)a1); return; case 2904: case 2905: case 2907: case 2909: case 2910: case 2911: case 2912: case 2913: case 2914: case 2915: case 2916: case 2917: case 2919: case 2920: case 2921: case 2922: case 2923: case 2924: GJBaseGameLayer::triggerShaderCommand(a2, (ShaderGameObject *)a1); return; case 2999: GJBaseGameLayer::updateMGOffsetY( a2, a1->m_moveOffset.y, a1->m_duration, a1->m_easingType, a1->m_easingRate, a1->m_uniqueID, a1->m_controlID); return; case 3006: case 3007: case 3008: case 3009: case 3010: case 3011: case 3012: case 3013: case 3014: case 3015: GJBaseGameLayer::triggerAreaEffect(a2, (EnterEffectObject *)a1); return; case 3016: v163 = a1; m_centerGroupID = a1->m_centerGroupID; if ( a1->m_targetPlayer1 ) { m_centerGroupID = -1; } else if ( a1->m_targetPlayer2 ) { m_centerGroupID = -2; } else if ( a1->m_followCPP ) { m_centerGroupID = -3; } LODWORD(v168) = m_centerGroupID; v81 = 0; p_m_advanceFollowInstances = &a2->m_gameState.m_advanceFollowInstances; Mylast = a2->m_gameState.m_advanceFollowInstances._Mypair._Myval2._Mylast; Myfirst = v6->m_gameState.m_advanceFollowInstances._Mypair._Myval2._Myfirst; if ( Myfirst == Mylast ) goto LABEL_237; do { if ( Myfirst->m_gameObject == a1 && Myfirst->m_group == a1->m_targetGroupID && Myfirst->m_objectKey == m_centerGroupID && Myfirst->m_controlId == a1->m_controlID ) { *(_WORD *)&Myfirst->m_finished = 0; Myfirst->m_relatedToGJGameStateUnkUint7 = ++v6->m_gameState.m_unkUint8; v81 = 1; } ++Myfirst; } while ( Myfirst != Mylast ); if ( v81 ) goto LABEL_240; p_m_advanceFollowInstances = &v6->m_gameState.m_advanceFollowInstances; LABEL_237: m_controlID = a1->m_controlID; LODWORD(Block[0]) = m_controlID; v86 = v6->m_gameState.m_unkUint8 + 1; v6->m_gameState.m_unkUint8 = v86; v160 = 0; p_m_targetGroupID = &a1->m_targetGroupID; v88 = p_m_advanceFollowInstances->_Mypair._Myval2._Mylast; if ( v88 == p_m_advanceFollowInstances->_Mypair._Myval2._Myend ) { sub_140251CB0( p_m_advanceFollowInstances, v88, (__int64 *)&v163, p_m_targetGroupID, (int *)&v168, &v160, (unsigned int *)&v6->m_gameState.m_unkUint8, (int *)Block); LABEL_240: v6->m_gameState.m_unkBool27 = 1; } else { v89 = *p_m_targetGroupID; v88->m_gameObject = (AdvancedFollowTriggerObject *)a1; v88->m_group = v89; v88->m_objectKey = m_centerGroupID; v88->m_controlId = m_controlID; v88->m_otherObjectKey = 0; v88->m_relatedToGJGameStateUnkUint7 = v86; *(_DWORD *)&v88->m_finished = 0; ++p_m_advanceFollowInstances->_Mypair._Myval2._Mylast; v6->m_gameState.m_unkBool27 = 1; } break; case 3017: case 3018: case 3019: case 3020: case 3021: LABEL_256: v94 = -2; v95 = a1->m_objectID; if ( v95 > 1915 ) { v96 = v95 - 3017; if ( !v96 || (v97 = v96 - 1) == 0 || (v98 = v97 - 1) == 0 || (unsigned int)(v98 - 1) <= 1 ) v94 = -15; } else if ( v95 == 1915 ) { v94 = -14; } else { switch ( v95 ) { case 23: v94 = -6; break; case 24: v94 = -5; break; case 25: v94 = -7; break; case 26: v94 = -8; break; case 27: v94 = -3; break; case 28: v94 = -4; break; case 55: v94 = -11; break; case 56: v94 = -10; break; case 57: v94 = -9; break; case 58: v94 = -12; break; case 59: v94 = -13; break; default: break; } } if ( LODWORD(a1[1].EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable) <= 1 ) { a2->m_gameState.m_enterChannelMap._Mypair._Myval2._Myfirst[SLODWORD(a1[1].m_pCamera)] = v94; if ( v94 == -15 ) { GJBaseGameLayer::addCustomEnterEffect(a2, (EnterEffectObject *)a1, 1); } else { LODWORD(v168) = a1[1].m_pCamera; if ( (unsigned int)v168 <= 0x64 ) sub_14024A470( &a2->m_gameState.m_enterEffectInstanceVectors._Traitsobj._Mypair._Myval2._Myval2, (unsigned __int8 *)&v168); } } v99 = (int)a1[1].EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; if ( v99 == 2 || !v99 ) { v6->m_gameState.m_exitChannelMap._Mypair._Myval2._Myfirst[SLODWORD(a1[1].m_pCamera)] = v94; if ( v94 == -15 ) { GJBaseGameLayer::addCustomEnterEffect(v6, (EnterEffectObject *)a1, 0); } else { LODWORD(v168) = a1[1].m_pCamera; if ( (unsigned int)v168 <= 0x64 ) sub_14024A470( &v6->m_gameState.m_exitEffectInstanceVectors._Traitsobj._Mypair._Myval2._Myval2, (unsigned __int8 *)&v168); } } return; case 3022: GJBaseGameLayer::teleportPlayer(a2, (TeleportPortalObject *)a1, nullptr); return; case 3023: if ( LODWORD(a1[1].EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable) <= 1 ) GJBaseGameLayer::stopCustomEnterEffect(a2, (EnterEffectObject *)a1, 1); v100 = (int)a1[1].EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; if ( v100 == 2 || !v100 ) GJBaseGameLayer::stopCustomEnterEffect(v6, (EnterEffectObject *)a1, 0); return; case 3024: m_targetGroupID = a1->m_targetGroupID; LODWORD(Block[0]) = m_targetGroupID; v102 = 0; LODWORD(v168) = 0; do { if ( v102 ) { v103 = v102 - 1; if ( v103 ) { v104 = v103 - 1; if ( v104 ) { v105 = v104 - 1; if ( v105 ) { if ( v105 != 1 ) goto LABEL_315; v106 = 1720; } else { v106 = 1696; } } else { v106 = 1672; } } else { v106 = 1648; } } else { v106 = 1624; } v107 = (__int64 *)((char *)v6 + v106); if ( (char *)v6 + v106 ) { v108 = 0; v109 = v107[1]; v110 = *v107; if ( (v109 - *v107) / 232 ) { v111 = 0; while ( 1 ) { if ( *(_DWORD *)(*(_QWORD *)(v111 + v110 + 160) + 2008LL) == m_targetGroupID ) { for ( i = v110 + 232LL * v108 + 232; i != v109; i += 232 ) sub_140250C90(i - 232, i); v113 = v107[1]; sub_14005E430(v113 - 32); sub_1402508A0((void **)(v113 - 232), v113 - 232); v109 = v107[1] - 232; v107[1] = v109; m_targetGroupID = (int)Block[0]; if ( SLODWORD(Block[0]) > 0 ) { LABEL_314: v6 = v169; break; } } else { ++v108; v111 += 232; } v110 = *v107; if ( v108 >= (unsigned __int64)((v109 - *v107) / 232) ) goto LABEL_314; } } } LABEL_315: v102 = (_DWORD)v168 + 1; LODWORD(v168) = v102; } while ( v102 < 5 ); return; case 3033: if ( a4 ) { v90 = (std::vector *)sub_14024B270(v164, (__int64)a4); v91 = 64; } else { v161 = 0; v162 = 0; v90 = (std::vector *)&v161; v91 = 0x80; } GJBaseGameLayer::playKeyframeAnimation(v6, (KeyframeAnimTriggerObject *)a1, v90); if ( v91 < 0 ) { v91 &= ~0x80u; sub_14005E430((__int64)&v161); } if ( (v91 & 0x40) != 0 ) LABEL_212: sub_14005E430((__int64)v164); return; default: return; } } return; } switch ( (int)m_objectID ) { case 3603: GJBaseGameLayer::activateSFXEditTrigger(a2, (SFXTriggerGameObject *)a1); return; case 3605: GJBaseGameLayer::activateSongEditTrigger(a2, (SongTriggerGameObject *)a1); return; case 3606: m_moveModY = a1->m_moveModY; m_moveModX = a1->m_moveModX; if ( fabs(m_moveModX) > 999.0 ) m_moveModX = 0.1; if ( fabs(m_moveModY) > 999.0 ) m_moveModY = 0.1; a2->m_gameState.m_unkFloat5 = m_moveModX; a2->m_gameState.m_unkFloat6 = m_moveModY; return; case 3608: v114 = rand(); v115 = (float)((float)((float)((float)((float)v114 / 32767.0) + (float)((float)v114 / 32767.0)) - 1.0) * *(float *)&a1[1].m_uAutoReleaseCount) + *(float *)&a1[1].m_uReference; v116 = rand(); v117 = (float)((float)((float)((float)((float)v116 / 32767.0) + (float)((float)v116 / 32767.0)) - 1.0) * *(float *)&a1[1].m_uIndexInArray) + *(float *)&a1[1].m_eObjType; a1->getPosition_0(a1); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v168); v118 = a1->m_centerGroupID; if ( v118 > 0 ) { Object = GJBaseGameLayer::tryGetObject(v6, v118); v120 = Object; if ( Object ) { v121 = (__int64)Object->getPosition_0(Object); cocos2d::CCPoint::operator=(&v168, v121); if ( LOBYTE(a1[1].m_nTag) ) v115 = v115 + v120->getRotation(v120); } } v122 = rand(); *(float *)&v168 = *(float *)&v168 + (float)((float)((float)((float)((float)((float)v122 / 32767.0) + (float)((float)v122 / 32767.0)) - 1.0) * *(float *)&a1[1].m_uID) + *(float *)&a1[1].EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable); v123 = rand(); *((float *)&v168 + 1) = *((float *)&v168 + 1) + (float)((float)((float)((float)((float)((float)v123 / 32767.0) + (float)((float)v123 / 32767.0)) - 1.0) * *(float *)&a1[1].m_nLuaID) + *((float *)&a1[1].EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + 1)); v124 = a1->m_targetGroupID; cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)Block); GJBaseGameLayer::spawnParticleTrigger(v6, v124, v125, v115, v117); return; case 3609: if ( !a1->m_followCPP ) { m_targetPlayer1 = a1->m_targetPlayer1; if ( m_targetPlayer1 ) { v131 = 10000; } else { v131 = 10001; if ( !a1->m_targetPlayer2 ) v131 = a1->m_itemID; } v129 = GJBaseGameLayer::checkCollision(a2, v131, a1->m_itemID2); if ( !v129 && m_targetPlayer1 && *((_BYTE *)&a1->EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable + v132) ) { v129 = GJBaseGameLayer::checkCollision(v6, 10001, a1->m_itemID2); } LABEL_341: if ( *(&a1->m_unk6f5 + 1) ) { if ( a4 ) { v133 = sub_14024B270(v167, (__int64)a4); v134 = 1024; } else { *(_OWORD *)Block = 0; v158 = 0; v133 = Block; v134 = 2048; } sub_14024B270(v164, (__int64)v133); v135 = v134 | 0x1000; } else { v161 = 0; v162 = 0; v135 = 0x2000; } if ( v129 ) v136 = (unsigned int)a1->m_targetGroupID; else v136 = (unsigned int)a1->m_centerGroupID; ((void (__fastcall *)(TriggerEffectDelegate *, __int64, _QWORD))v6->spawnGroup)( &v6->TriggerEffectDelegate, v136, 0); if ( (v135 & 0x2000) != 0 ) { v135 &= ~0x2000u; sub_14005E430((__int64)&v161); } if ( (v135 & 0x1000) != 0 ) { v135 &= ~0x1000u; sub_14005E430((__int64)v164); } if ( (v135 & 0x800) != 0 ) { v135 &= ~0x800u; sub_14005E430((__int64)Block); } if ( (v135 & 0x400) != 0 ) sub_14005E430((__int64)v167); return; } v126 = a2->m_effectManager; v127 = v126->m_unkMap288._Vec._Mypair._Myval2._Myfirst; Ptr = v127[2 * (v126->m_unkMap288._Mask & 0x9ED7C49C29D3DA32uLL) + 1]._Ptr; if ( Ptr == v126->m_unkMap288._List._Mypair._Myval2._Myhead ) goto LABEL_331; if ( *((_DWORD *)Ptr + 4) != 110020000 ) { while ( Ptr != v127[2 * (v126->m_unkMap288._Mask & 0x9ED7C49C29D3DA32uLL)]._Ptr ) { Ptr = *((std::_List_unchecked_const_iterator>>, std::_Iterator_base0>::_Nodeptr *)Ptr + 1); if ( *((_DWORD *)Ptr + 4) == 110020000 ) { v129 = Ptr != nullptr; goto LABEL_341; } } LABEL_331: Ptr = nullptr; } v129 = Ptr != nullptr; goto LABEL_341; case 3612: v150 = a1->m_moveModY; v151 = a1->m_moveModX; if ( fabs(v151) > 999.0 ) v151 = 0.30000001; if ( fabs(v150) > 999.0 ) v150 = 0.5; a2->m_gameState.m_unkFloat7 = v151; a2->m_gameState.m_unkFloat8 = v150; return; case 3618: Group = GJBaseGameLayer::getGroup(a2, a1->m_targetGroupID); v141 = Group; if ( !Group ) return; if ( !cocos2d::CCArray::count(Group) ) return; data = v141->data; num = data->num; if ( !(_DWORD)num ) return; arr = (int **)data->arr; v145 = &arr[num - 1]; if ( arr > v145 ) return; break; case 3640: if ( a4 ) { sub_14024B270(v167, (__int64)a4); v137 = 0x4000; } else { *(_OWORD *)Block = 0; v158 = 0; v137 = 0x8000; } ((void (__fastcall *)(TriggerEffectDelegate *, _QWORD, _QWORD))v6->spawnGroup)( &v6->TriggerEffectDelegate, (unsigned int)a1->m_targetGroupID, 0); p_m_uniqueID = &a1->m_uniqueID; if ( v137 < 0 ) { v137 &= ~0x8000u; p_m_uniqueID = &a1->m_uniqueID; v139 = Block[0]; if ( Block[0] ) { p_m_uniqueID = &a1->m_uniqueID; if ( (unsigned __int64)(4 * ((signed __int64)(v158 - (unsigned __int64)Block[0]) >> 2)) >= 0x1000 ) { v139 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v139 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); p_m_uniqueID = &a1->m_uniqueID; } j_j_free(v139); *(_OWORD *)Block = 0; v158 = 0; } } if ( (v137 & 0x4000) != 0 ) sub_14005E430((__int64)v167); LODWORD(v168) = *p_m_uniqueID; *(_QWORD *)(*(_QWORD *)sub_1402505B0( &v6->m_gameState.m_stateObjects._Traitsobj._Mypair._Myval2._Myval2, (__int64)Block, (unsigned __int8 *)&v168) + 24LL) = a1; return; case 3660: case 3661: GJBaseGameLayer::triggerAdvancedFollowEditCommand(a2, (AdvancedFollowEditObject *)a1); return; default: return; } while ( 1 ) { v146 = *arr; if ( !*arr ) return; if ( v146[259] == 2063 ) { GJEffectManager::removeTriggeredID(v6->m_effectManager, v146[231], v6->m_player1->m_uniqueID); m_uniqueID = v6->m_player2->m_uniqueID; } else { if ( (*(unsigned int (__fastcall **)(int *))(*(_QWORD *)v146 + 1632LL))(*arr) != 30 && (*(unsigned int (__fastcall **)(int *))(*(_QWORD *)v146 + 1632LL))(v146) != 21 ) { goto LABEL_382; } m_uniqueID = 0; } GJEffectManager::removeTriggeredID(v6->m_effectManager, v146[231], m_uniqueID); (*(void (__fastcall **)(int *))(*(_QWORD *)v146 + 1344LL))(v146); LABEL_382: if ( ++arr > v145 ) return; } } if ( (_DWORD)m_objectID == 2899 ) { GJBaseGameLayer::processOptionsTrigger(a2, (GameOptionsTrigger *)a1); return; } if ( (int)m_objectID <= 1612 ) { if ( (_DWORD)m_objectID == 1612 ) { PlayerObject::toggleVisibility(a2->m_player1, 0); if ( v6->m_gameState.m_isDualMode ) PlayerObject::toggleVisibility(v6->m_player2, 0); return; } if ( (int)m_objectID <= 1329 ) { if ( (_DWORD)m_objectID == 1329 ) { LABEL_56: if ( a1->m_targetGroupID > 0 ) { if ( a4 ) { sub_14024B270(&v161, (__int64)a4); v23 = 4; } else { *(_OWORD *)Block = 0; v158 = 0; v23 = 8; } ((void (__fastcall *)(TriggerEffectDelegate *, _QWORD, _QWORD))v6->spawnGroup)( &v6->TriggerEffectDelegate, (unsigned int)a1->m_targetGroupID, 0); if ( (v23 & 8) != 0 ) { v23 &= ~8u; v24 = Block[0]; if ( Block[0] ) { if ( (unsigned __int64)(4 * ((signed __int64)(v158 - (unsigned __int64)Block[0]) >> 2)) >= 0x1000 ) { v24 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v24 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v24); *(_OWORD *)Block = 0; v158 = 0; } } if ( (v23 & 4) != 0 ) sub_14005E430((__int64)&v161); } } else { switch ( (int)m_objectID ) { case 899: case 900: case 915: goto LABEL_49; case 901: GJBaseGameLayer::triggerMoveCommand(a2, a1); break; case 1006: *(cocos2d::ccHSVValue *)Block = a1->m_hsvValue; *(cocos2d::ccColor3B *)&v168 = a1->m_triggerTargetColor; GJEffectManager::runPulseEffect( a2->m_effectManager, a1->m_targetGroupID, a1->m_pulseTargetType == 1, a1->m_fadeInDuration, a1->m_holdDuration, a1->m_fadeOutDuration, (PulseEffectType)(2 - (a1->m_pulseMode != 0)), (cocos2d::ccColor3B *)&v168, (cocos2d::ccHSVValue *)Block, a1->m_copyColorID, a1->m_pulseMainOnly, a1->m_pulseDetailOnly, a1->m_pulseExclusive, a1->m_legacyHSV, a1->m_uniqueID, a1->m_controlID); break; case 1007: GJEffectManager::runOpacityActionOnGroup( a2->m_effectManager, a1->m_targetGroupID, a1->m_duration, a1->m_opacity, a1->m_uniqueID, a1->m_controlID); break; case 1049: GJBaseGameLayer::toggleGroup(a2, a1->m_targetGroupID, a1->m_activateGroup); break; default: return; } } return; } if ( (int)m_objectID <= 1520 ) { if ( (_DWORD)m_objectID != 1520 ) { if ( (_DWORD)m_objectID == 1334 ) { LABEL_94: v34 = 0.89999998; v35 = m_objectID - 200; if ( v35 ) { v36 = v35 - 2; if ( v36 ) { v37 = v36 - 1; if ( v37 ) { if ( v37 == 1131 ) v34 = 1.6; } else { v34 = 1.3; } } else { v34 = 1.1; } } else { v34 = 0.69999999; } m_hasNoEffects = a1->m_hasNoEffects; a2->m_gameState.m_timeModRelated = v34; a2->m_gameState.m_timeModRelated2 = m_hasNoEffects; GameObject::playShineEffect(a1); v6->addToSpeedObjects(v6, a1); return; } if ( (_DWORD)m_objectID != 1346 ) { if ( (_DWORD)m_objectID == 1347 ) GJEffectManager::createFollowCommand( a2->m_effectManager, a1->m_followXMod, a1->m_followYMod, a1->m_duration, a1->m_targetGroupID, a1->m_centerGroupID, a1->m_uniqueID, a1->m_controlID); return; } v25 = (float)((float)a1->m_times360 * 360.0) + a1->m_rotationDegrees; if ( a1->m_isDynamicMode && a1->m_duration != 0.0 && (a1->m_useMoveTarget || a1->m_isDirectionFollowSnap360) ) { GJBaseGameLayer::triggerDynamicRotateCommand(a2, (EnhancedTriggerObject *)a1); return; } if ( !a1->m_useMoveTarget && !a1->m_isDirectionFollowSnap360 ) { LABEL_93: GJEffectManager::createRotateCommand( v6->m_effectManager, v25, a1->m_duration, a1->m_targetGroupID, a1->m_centerGroupID, a1->m_easingType, a1->m_easingRate, a1->m_lockObjectRotation, v153, v155, a1->m_uniqueID, a1->m_controlID); return; } v26 = a1->m_centerGroupID; if ( !v26 ) v26 = a1->m_targetGroupID; v27 = GJBaseGameLayer::tryGetObject(v6, v26); v28 = GJBaseGameLayer::tryGetObject(v6, a1->m_targetGroupID); v168 = v28; if ( !a1->m_targetPlayer1 ) { if ( !a1->m_targetPlayer2 ) { m_player2 = GJBaseGameLayer::tryGetObject(v6, a1->m_rotationTargetID); v28 = v168; LABEL_89: if ( v27 && m_player2 && v28 ) { v30 = GJBaseGameLayer::tryGetObject(v6, a1[1].m_nLuaID); v31 = GJBaseGameLayer::tryGetObject(v6, a1[1].m_uID); v32 = GJBaseGameLayer::tryGetObject( v6, HIDWORD(a1[1].EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable)); v33 = GJBaseGameLayer::tryGetObject( v6, (int)a1[1].EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable); v25 = sub_14021EFB0( (__int64)a1, (__int64)v27, (__int64)v168, (__int64)m_player2, (__int64)v33, (__int64)v32, (__int64)v31, (__int64)v30); } goto LABEL_93; } if ( v6->m_gameState.m_isDualMode ) { m_player2 = v6->m_player2; goto LABEL_89; } } m_player2 = v6->m_player1; goto LABEL_89; } m_duration = a1->m_duration; if ( m_duration > 0.0 ) { m_shakeStrength = a1->m_shakeStrength; if ( m_shakeStrength > 0.0 ) GJBaseGameLayer::shakeCamera(a2, m_duration, m_shakeStrength, a1->m_shakeInterval); } return; } if ( (_DWORD)m_objectID == 1585 ) { v52 = a1->m_targetGroupID; m_animationID = a1->m_animationID; if ( v52 > 0 ) { v54 = GJBaseGameLayer::getGroup(v6, v52); if ( cocos2d::CCArray::count(v54) ) { do { v55 = cocos2d::CCArray::objectAtIndex(v54, v8); if ( v55[22].m_uAutoReleaseCount == 2 ) AnimatedGameObject::playAnimation((AnimatedGameObject *)v55, m_animationID); else v55->__vftable[18].getTag(v55); ++v8; } while ( v8 < cocos2d::CCArray::count(v54) ); } } return; } if ( (_DWORD)m_objectID != 1595 ) return; if ( a4 ) { v41 = (char **)sub_14024B270(v164, (__int64)a4); v42 = 256; } else { v161 = 0; v162 = 0; v41 = (char **)&v161; v42 = 512; } v43 = a1->m_controlID; v165 = v43; v44 = a1->m_uniqueID; LODWORD(v166) = v44; m_isDualMode = a1->m_isDualMode; v159[0] = m_isDualMode; m_touchPlayerMode = a1->m_touchPlayerMode; LODWORD(v163) = m_touchPlayerMode; m_touchToggleMode = a1->m_touchToggleMode; v160 = m_touchToggleMode; m_touchHoldMode = a1->m_touchHoldMode; LOBYTE(v168) = m_touchHoldMode; v156[0] = m_touchHoldMode; v49 = a1->m_targetGroupID; LODWORD(Block[0]) = v49; v50 = (void **)&v6->m_effectManager->__vftable; v51 = v50[63]; if ( v51 == v50[64] ) { sub_14026C2B0(v50 + 62, v51, (int *)Block, v156, &v160, (int *)&v163, v159, v41, (int *)&v166, &v165); } else { Block[0] = v50[63]; *(_BYTE *)v51 = 0; v51[4] = 0; v51[5] = 0; v51[6] = 0; *((_DWORD *)v51 + 1) = v49; *((_BYTE *)v51 + 8) = m_touchHoldMode; *((_DWORD *)v51 + 3) = m_touchToggleMode; *((_DWORD *)v51 + 4) = m_touchPlayerMode; *((_BYTE *)v51 + 28) = m_isDualMode; *((_DWORD *)v51 + 5) = v44; *((_DWORD *)v51 + 6) = v43; sub_1400846D0((void **)v51 + 4, v41); v50[63] = (char *)v50[63] + 56; } if ( (v42 & 0x200) != 0 ) { v42 &= ~0x200u; sub_14005E430((__int64)&v161); } if ( (v42 & 0x100) == 0 ) return; LABEL_117: sub_14005E430((__int64)v164); return; } if ( (int)m_objectID > 1812 ) { switch ( (int)m_objectID ) { case 1814: GJEffectManager::createPlayerFollowCommand( a2->m_effectManager, a1->m_followYSpeed, a1->m_followYDelay, a1->m_followYOffset, a1->m_followYMaxSpeed, a1->m_duration, a1->m_targetGroupID, a1->m_uniqueID, a1->m_controlID); return; case 1815: if ( a1->m_followCPP ) { if ( a4 ) { v69 = (std::vector *)sub_14024B270(v164, (__int64)a4); v70 = 0x10000; } else { *(_OWORD *)Block = 0; v158 = 0; v69 = (std::vector *)Block; v70 = 0x20000; } GJEffectManager::registerCollisionTrigger( v6->m_effectManager, a1->m_targetGroupID, 10000, 10001, a1->m_triggerOnExit, a1->m_activateGroup, v69, a1->m_uniqueID, a1->m_controlID); if ( (v70 & 0x20000) != 0 ) { v70 &= ~0x20000u; v71 = Block[0]; if ( Block[0] ) { if ( (unsigned __int64)(4 * ((signed __int64)(v158 - (unsigned __int64)Block[0]) >> 2)) >= 0x1000 ) { v71 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v71 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v71); } } if ( (v70 & 0x10000) == 0 ) return; } else { if ( a1->m_targetPlayer1 ) { v72 = 10000; } else { v72 = 10001; if ( !a1->m_targetPlayer2 ) v72 = a1->m_itemID; } if ( a4 ) { v73 = (std::vector *)sub_14024B270(v164, (__int64)a4); v74 = 0x40000; } else { v161 = 0; v162 = 0; v73 = (std::vector *)&v161; v74 = 0x80000; } GJEffectManager::registerCollisionTrigger( v6->m_effectManager, a1->m_targetGroupID, v72, a1->m_itemID2, a1->m_triggerOnExit, a1->m_activateGroup, v73, a1->m_uniqueID, a1->m_controlID); if ( (v74 & 0x80000) != 0 ) { v74 &= ~0x80000u; sub_14005E430((__int64)&v161); } if ( (v74 & 0x40000) != 0 ) { v74 &= ~0x40000u; sub_14005E430((__int64)v164); } if ( !a1->m_targetPlayer1 || !a1->m_targetPlayer2 ) return; if ( a4 ) { v75 = (std::vector *)sub_14024B270(v164, (__int64)a4); v76 = v74 | 0x100000; } else { *(_OWORD *)Block = 0; v158 = 0; v75 = (std::vector *)Block; v76 = v74 | 0x200000; } GJEffectManager::registerCollisionTrigger( v6->m_effectManager, a1->m_targetGroupID, 10001, a1->m_itemID2, a1->m_triggerOnExit, a1->m_activateGroup, v75, a1->m_uniqueID, a1->m_controlID); if ( (v76 & 0x200000) != 0 ) { v76 &= ~0x200000u; v77 = Block[0]; if ( Block[0] ) { if ( (unsigned __int64)(4 * ((signed __int64)(v158 - (unsigned __int64)Block[0]) >> 2)) >= 0x1000 ) { v77 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v77 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v77); } } if ( (v76 & 0x100000) == 0 ) return; } sub_14005E430((__int64)v164); return; case 1818: if ( !a1->m_editorEnabled ) { v65 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v168 = (GameObject *)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v168); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v65 = qword_1406C2ED8; } v66 = *(_QWORD *)(v65 + 520); *(_BYTE *)(v66 + 14829) = 0; if ( *(_BYTE *)(v66 + 14828) ) cocos2d::CCParticleSystem::resumeSystem(*(cocos2d::CCParticleSystem **)(v66 + 12864)); } return; case 1819: if ( !a1->m_editorEnabled ) { v67 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v168 = (GameObject *)operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v168); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v67 = qword_1406C2ED8; } v68 = *(_QWORD *)(v67 + 520); *(_BYTE *)(v68 + 14829) = 1; cocos2d::CCParticleSystem::stopSystem(*(cocos2d::CCParticleSystem **)(v68 + 12864)); } return; case 1912: qword_1406C2E90 = 214013 * qword_1406C2E90 + 2531011; if ( a1->m_duration < (float)((float)((float)(((unsigned __int64)qword_1406C2E90 >> 16) & 0x7FFF) / 32767.0) * 100.0) ) v78 = a1->m_centerGroupID; else v78 = a1->m_targetGroupID; if ( a4 ) { sub_14024B270(v164, (__int64)a4); v79 = 0x400000; } else { v161 = 0; v162 = 0; v79 = 0x800000; } ((void (__fastcall *)(TriggerEffectDelegate *, _QWORD, _QWORD))v6->spawnGroup)( &v6->TriggerEffectDelegate, v78, 0); if ( (v79 & 0x800000) != 0 ) { v79 &= ~0x800000u; sub_14005E430((__int64)&v161); } if ( (v79 & 0x400000) != 0 ) goto LABEL_212; return; case 1913: GJBaseGameLayer::updateZoom( a2, a1->m_zoomValue, a1->m_duration, a1->m_easingType, a1->m_easingRate, a1->m_uniqueID, a1->m_controlID); return; case 1915: goto LABEL_256; case 1917: ((void (__fastcall *)(GJBaseGameLayer *, EffectGameObject *, __int64, __int64))a2->reverseDirection)( a2, a1, m_objectID, v5); return; case 1931: a2->activateEndTrigger(a2, a1->m_targetGroupID, a1->m_endReversed, a1->m_lockToPlayerY); return; case 1932: GJBaseGameLayer::activatePlayerControlTrigger(a2, (PlayerControlGameObject *)a1); return; case 1934: GJBaseGameLayer::activateSongTrigger(a2, (SongTriggerGameObject *)a1); return; case 1935: a2->m_gameState.m_queuedTimeWarp = a1->m_timeWarpTimeMod; return; case 2066: if ( a1->m_followCPP ) { if ( (_DWORD)v5 == 1 ) { a2->m_player1->m_gravityMod = a1->m_gravityValue; } else if ( (_DWORD)v5 == 2 ) { a2->m_player2->m_gravityMod = a1->m_gravityValue; } } else { if ( !a1->m_targetPlayer2 ) a2->m_player1->m_gravityMod = a1->m_gravityValue; if ( !a1->m_targetPlayer1 ) a2->m_player2->m_gravityMod = a1->m_gravityValue; } return; default: return; } } if ( (_DWORD)m_objectID != 1812 ) { if ( (_DWORD)m_objectID == 1613 ) { PlayerObject::toggleVisibility(a2->m_player1, 1); if ( v6->m_gameState.m_isDualMode ) PlayerObject::toggleVisibility(v6->m_player2, 1); } return; } if ( !a1->m_editorEnabled ) { if ( a4 ) { v56 = (char **)sub_14024B270(v164, (__int64)a4); v57 = 16; } else { v161 = 0; v162 = 0; v56 = (char **)&v161; v57 = 32; } v58 = a1->m_controlID; LODWORD(Block[0]) = v58; v59 = a1->m_uniqueID; v160 = v59; m_activateGroup = a1->m_activateGroup; LOBYTE(v168) = m_activateGroup; v156[0] = m_activateGroup; v61 = a1->m_targetGroupID; LODWORD(v163) = v61; v62 = qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v166 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00((__int64)v166); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v62 = qword_1406C2ED8; m_activateGroup = (char)v168; } v63 = *(_QWORD **)(*(_QWORD *)(v62 + 520) + 2384LL); v64 = v63[77]; if ( v64 == v63[78] ) { sub_14026C550(v63 + 76, (_QWORD *)v64, (int *)&v163, v156, v56, &v160, (int *)Block); } else { v168 = (GameObject *)v63[77]; *(_BYTE *)v64 = 0; *(_QWORD *)(v64 + 24) = 0; *(_QWORD *)(v64 + 32) = 0; *(_QWORD *)(v64 + 40) = 0; *(_DWORD *)(v64 + 4) = v61; *(_BYTE *)(v64 + 8) = m_activateGroup; *(_DWORD *)(v64 + 12) = v59; *(_DWORD *)(v64 + 16) = v58; sub_1400846D0((void **)(v64 + 24), v56); v63[77] += 48LL; } if ( (v57 & 0x20) != 0 ) { v57 &= ~0x20u; sub_14005E430((__int64)&v161); } if ( (v57 & 0x10) != 0 ) goto LABEL_117; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source