//
// EffectGameObject::triggerObject from 0x1001b9550 to 0x1001ba5a4 (4180 bytes)
//
// 31 xrefs:
// > RandTriggerGameObject::triggerObject @ 0x1001c3358
// > CountTriggerGameObject::triggerObject @ 0x1001d6d28
// > TransformTriggerGameObject::triggerObject @ 0x1001d9650
// > CameraTriggerGameObject::triggerObject @ 0x1001de057
// > TimerTriggerGameObject::triggerObject @ 0x1001e2f32
// > ItemTriggerGameObject::triggerObject @ 0x1001e53ea
// > ??> @ 0x1008c4da0
// > ??> @ 0x1008c5598
// > ??> @ 0x1008c5d90
// > ??> @ 0x1008c6588
// > ??> @ 0x1008c95e0
// > ??> @ 0x1008c9df0
// > ??> @ 0x1008ca600
// > ??> @ 0x1008cae10
// > ??> @ 0x1008cb620
// > ??> @ 0x1008cbe30
// > ??> @ 0x1008cc640
// > ??> @ 0x1008cce50
// > ??> @ 0x1008cd660
// > ??> @ 0x1008cde70
// > ??> @ 0x1008ce698
// > ??> @ 0x1008cff40
// > ??> @ 0x1008d0768
// > ??> @ 0x1008d2fd0
// > ??> @ 0x1008d5010
// > ??> @ 0x1008d5820
// > ??> @ 0x1008d6840
// > ??> @ 0x1008d7050
// > ??> @ 0x1008d8070
// > ??> @ 0x1008d8880
// > ??> @ 0x1008d9090
//
// 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 EffectGameObject::triggerObject(
EffectGameObject *a1,
GJBaseGameLayer *a2,
int a3,
std::vector *const a4)
{
GJBaseGameLayer *v4; // r13
std::vector *v6; // r14
__int64 m_targetGroupID; // rsi
bool m_activateGroup; // dl
std::__vector_base::pointer begin; // r12
signed __int64 v11; // r13
int m_objectID; // eax
__int64 v13; // rdx
int m_collectiblePoints; // esi
__int64 v15; // rdx
std::vector *v16; // rsi
__int64 v17; // rdx
GJEffectManager *m_effectManager; // r14
int v19; // r15d
bool v20; // r12
int v21; // r15d
float v22; // xmm0_4
PlayLayer *v23; // rdi
PlayLayer *m_playLayer; // rdi
unsigned int v25; // r15d
__int64 v26; // rdx
std::vector *v27; // rsi
__int64 v28; // r15
float m_duration; // xmm0_4
float m_shakeStrength; // xmm1_4
std::vector *v31; // r14
__int64 v32; // rdx
int v33; // r15d
GJEffectManager *v34; // r14
int v35; // r15d
bool m_triggerOnExit; // r12
bool v37; // r13
PlayLayer *v38; // rdi
PlayLayer *v39; // rdi
GJEffectManager *v40; // rdi
int v41; // esi
bool m_touchHoldMode; // r12
TouchTriggerType m_touchToggleMode; // r14d
TouchTriggerControl m_touchPlayerMode; // r15d
bool m_isDualMode; // r13
std::vector *v46; // r14
int m_itemID; // esi
bool v48; // al
int v49; // r14d
GJEffectManager *v50; // rdi
int v51; // esi
int m_itemID2; // r13d
bool v53; // r15
bool v54; // r12
__int64 v55; // rdx
GJEffectManager *v56; // rdi
int v57; // r14d
int v58; // r15d
bool v59; // r12
bool v60; // r13
std::vector *v61; // [rsp+40h] [rbp-60h]
bool v62; // [rsp+50h] [rbp-50h]
std::vector __p[2]; // [rsp+60h] [rbp-40h] BYREF
v4 = a2;
if ( a1->m_objectType == Collectible )
{
if ( a1->m_collectibleIsPickupItem )
{
v6 = a4;
GJBaseGameLayer::collectedObject(a2, a1);
a4 = v6;
}
if ( a1->m_collectibleIsToggleTrigger )
{
m_targetGroupID = (unsigned int)a1->m_targetGroupID;
m_activateGroup = a1->m_activateGroup;
if ( a4 )
{
memset(__p, 0, 24);
begin = a4->__begin_;
v11 = (char *)a4->__end_ - (char *)a4->__begin_;
if ( v11 )
{
v62 = m_activateGroup;
if ( v11 < 0 )
sub_1000C40D0();
__p[0].__begin_ = (std::__vector_base::pointer)operator new(v11);
__p[0].__end_cap_.__value_ = (std::__vector_base::pointer)((char *)__p[0].__begin_ + v11);
memcpy(__p[0].__begin_, begin, v11);
__p[0].__end_ = (std::__vector_base::pointer)((char *)__p[0].__begin_ + v11);
m_targetGroupID = (unsigned int)m_targetGroupID;
m_activateGroup = v62;
}
}
else
{
memset(__p, 0, 24);
}
v4 = a2;
((void (__fastcall *)(GJBaseGameLayer *, __int64, bool, std::vector *, _QWORD, _QWORD, double))a2->toggleGroupTriggered)(
a2,
m_targetGroupID,
m_activateGroup,
__p,
(unsigned int)a1->m_uniqueID,
(unsigned int)a1->m_controlID,
0.0);
if ( __p[0].__begin_ )
{
__p[0].__end_ = __p[0].__begin_;
operator delete(__p[0].__begin_);
}
}
m_collectiblePoints = a1->m_collectiblePoints;
if ( m_collectiblePoints )
GJBaseGameLayer::addPoints(v4, m_collectiblePoints);
return;
}
m_objectID = a1->m_objectID;
if ( m_objectID > 2065 )
{
switch ( m_objectID )
{
case 2899:
GJBaseGameLayer::processOptionsTrigger(a2, (GameOptionsTrigger *)a1);
return;
case 2900:
((void (__fastcall *)(GJBaseGameLayer *, EffectGameObject *))a2->rotateGameplay)(a2, a1);
return;
case 2901:
if ( a1->m_moveTargetMode == YOnly
|| (GJBaseGameLayer::updateGameplayOffsetX(a2, (int)a1->m_moveOffset.x, a1->m_lockToPlayerX),
a1->m_moveTargetMode != XOnly) )
{
GJBaseGameLayer::updateGameplayOffsetY(a2, (int)a1->m_moveOffset.y, a1->m_lockToPlayerY);
}
return;
case 2902:
case 2906:
case 2908:
case 2918:
case 2925:
case 2926:
case 2927:
case 2928:
case 2929:
case 2930:
case 2931:
case 2932:
case 2933:
case 2934:
case 2935:
case 2936:
case 2937:
case 2938:
case 2939:
case 2940:
case 2941:
case 2942:
case 2943:
case 2944:
case 2945:
case 2946:
case 2947:
case 2948:
case 2949:
case 2950:
case 2951:
case 2952:
case 2953:
case 2954:
case 2955:
case 2956:
case 2957:
case 2958:
case 2959:
case 2960:
case 2961:
case 2962:
case 2963:
case 2964:
case 2965:
case 2966:
case 2967:
case 2968:
case 2969:
case 2970:
case 2971:
case 2972:
case 2973:
case 2974:
case 2975:
case 2976:
case 2977:
case 2978:
case 2979:
case 2980:
case 2981:
case 2982:
case 2983:
case 2984:
case 2985:
case 2986:
case 2987:
case 2988:
case 2989:
case 2990:
case 2991:
case 2992:
case 2993:
case 2994:
case 2995:
case 2996:
case 2997:
case 2998:
case 3000:
case 3001:
case 3002:
case 3003:
case 3004:
case 3005:
case 3025:
case 3026:
case 3027:
case 3028:
case 3029:
case 3030:
case 3031:
case 3032:
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:
GJBaseGameLayer::triggerAdvancedFollowCommand(a2, (AdvancedFollowTriggerObject *)a1);
return;
case 3017:
case 3018:
case 3019:
case 3020:
case 3021:
goto LABEL_15;
case 3022:
GJBaseGameLayer::teleportPlayer(a2, (TeleportPortalObject *)a1, nullptr);
return;
case 3023:
GJBaseGameLayer::stopCustomEnterEffect_1(a2, (EnterEffectObject *)a1);
return;
case 3024:
GJBaseGameLayer::controlAreaEffectWithID(a2, a1->m_targetGroupID, -1, Stop);
return;
case 3033:
if ( a4 )
sub_1001BAE70(__p, a4, a3);
else
memset(__p, 0, 24);
GJBaseGameLayer::playKeyframeAnimation(a2, (KeyframeAnimTriggerObject *)a1, __p);
goto LABEL_162;
default:
switch ( m_objectID )
{
case 3602:
GJBaseGameLayer::activateSFXTrigger(a2, (SFXTriggerGameObject *)a1);
return;
case 3603:
GJBaseGameLayer::activateSFXEditTrigger(a2, (SFXTriggerGameObject *)a1);
return;
case 3604:
case 3607:
case 3610:
case 3611:
case 3613:
case 3614:
case 3615:
case 3616:
case 3617:
case 3619:
case 3620:
case 3621:
case 3622:
case 3623:
case 3624:
case 3625:
case 3626:
case 3627:
case 3628:
case 3629:
case 3630:
case 3631:
case 3632:
case 3633:
case 3634:
case 3635:
case 3636:
case 3637:
case 3638:
case 3639:
case 3641:
case 3642:
case 3643:
case 3644:
case 3645:
case 3646:
case 3647:
case 3648:
case 3649:
case 3650:
case 3651:
case 3652:
case 3653:
case 3654:
case 3656:
case 3657:
case 3658:
case 3659:
return;
case 3605:
GJBaseGameLayer::activateSongEditTrigger(a2, (SongTriggerGameObject *)a1);
return;
case 3606:
GJBaseGameLayer::updateBGArtSpeed(a2, a1->m_moveModX, a1->m_moveModY);
return;
case 3608:
GJBaseGameLayer::spawnParticleTrigger_1(a2, (SpawnParticleGameObject *)a1);
return;
case 3609:
if ( a1->m_followCPP )
{
v27 = a4;
v28 = 1468;
if ( !GJBaseGameLayer::checkCollision(v4, 10000, 10001) )
goto LABEL_128;
}
else
{
v46 = a4;
m_itemID = 10000;
if ( !a1->m_targetPlayer1 )
{
m_itemID = 10001;
if ( !a1->m_targetPlayer2 )
m_itemID = a1->m_itemID;
}
v48 = GJBaseGameLayer::checkCollision(v4, m_itemID, a1->m_itemID2);
v27 = v46;
if ( !v48 )
{
v28 = 1468;
if ( !a1->m_targetPlayer1
|| !a1->m_targetPlayer2
|| (v27 = v46, !GJBaseGameLayer::checkCollision(v4, 10001, a1->m_itemID2)) )
{
LABEL_128:
v21 = *(_DWORD *)((char *)&a1->EnhancedGameObject::GameObject::CCSpritePlus::cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable
+ v28);
if ( *(&a1->m_unk6f5 + 1) && v27 )
{
sub_1001BAE70(__p, v27, v26);
goto LABEL_122;
}
goto LABEL_121;
}
}
}
v28 = 1464;
goto LABEL_128;
case 3612:
GJBaseGameLayer::updateMGArtSpeed(a2, a1->m_moveModX, a1->m_moveModY);
return;
case 3618:
GJBaseGameLayer::activateResetTrigger(a2, a1);
return;
case 3640:
v25 = a1->m_targetGroupID;
if ( a4 )
sub_1001BAE70(__p, a4, a3);
else
memset(__p, 0, 24);
((void (__fastcall *)(GJBaseGameLayer *, _QWORD, _QWORD, std::vector *, _QWORD, _QWORD, double))a2->spawnGroup)(
a2,
v25,
0,
__p,
(unsigned int)a1->m_uniqueID,
(unsigned int)a1->m_controlID,
0.0);
if ( __p[0].__begin_ )
{
__p[0].__end_ = __p[0].__begin_;
operator delete(__p[0].__begin_);
}
GJBaseGameLayer::registerStateObject(a2, a1);
return;
case 3655:
GJBaseGameLayer::activateObjectControlTrigger(a2, (ObjectControlGameObject *)a1);
return;
case 3660:
case 3661:
GJBaseGameLayer::triggerAdvancedFollowEditCommand(a2, (AdvancedFollowEditObject *)a1);
return;
default:
if ( m_objectID == 2066 )
GJBaseGameLayer::triggerGravityChange(a2, a1, a3);
return;
}
}
}
if ( m_objectID <= 914 )
{
if ( m_objectID <= 743 )
{
v13 = (unsigned int)(m_objectID - 22);
switch ( 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_15;
case 29:
case 30:
case 105:
goto LABEL_47;
case 32:
if ( !a1->m_editorEnabled )
{
m_playLayer = GameManager::sharedState()->m_playLayer;
PlayLayer::toggleGhostEffect(m_playLayer, 1);
}
break;
case 33:
if ( !a1->m_editorEnabled )
{
v23 = GameManager::sharedState()->m_playLayer;
PlayLayer::toggleGhostEffect(v23, 0);
}
break;
case 142:
goto LABEL_36;
case 200:
case 201:
case 202:
case 203:
goto LABEL_39;
default:
return;
}
return;
}
if ( (unsigned int)(m_objectID - 899) >= 2 && m_objectID != 744 )
{
if ( m_objectID == 901 )
GJBaseGameLayer::triggerMoveCommand(a2, a1);
return;
}
LABEL_47:
((void (__fastcall *)(GJBaseGameLayer *, cocos2d::ccColor3B *, _QWORD, bool, cocos2d::ccHSVValue *, _QWORD, float, float, bool, EffectGameObject *, int, int))a2->updateColor)(
a2,
&a1->m_triggerTargetColor,
(unsigned int)a1->m_targetColor,
a1->m_usesBlending,
&a1->m_hsvValue,
(unsigned int)a1->m_copyColorID,
a1->m_duration,
a1->m_opacity,
a1->m_copyOpacity,
a1,
a1->m_uniqueID,
a1->m_controlID);
if ( a1->m_objectID == 29 && a1->m_tintGround )
((void (__fastcall *)(GJBaseGameLayer *, cocos2d::ccColor3B *, __int64, _QWORD, cocos2d::ccHSVValue *, _QWORD, float, float, bool, EffectGameObject *, int, int))a2->updateColor)(
a2,
&a1->m_triggerTargetColor,
1001,
0,
&a1->m_hsvValue,
(unsigned int)a1->m_copyColorID,
a1->m_duration,
1.0,
a1->m_copyOpacity,
a1,
a1->m_uniqueID,
a1->m_controlID);
return;
}
if ( m_objectID > 1519 )
{
v15 = (unsigned int)(m_objectID - 1812);
switch ( m_objectID )
{
case 1812:
if ( !a1->m_editorEnabled )
{
v16 = a4;
m_effectManager = GameManager::sharedState()->m_playLayer->m_effectManager;
v19 = a1->m_targetGroupID;
v20 = a1->m_activateGroup;
if ( v16 )
sub_1001BAE70(__p, v16, v17);
else
memset(__p, 0, 24);
GJEffectManager::runDeathTrigger(m_effectManager, v19, v20, __p, a1->m_uniqueID, a1->m_controlID);
goto LABEL_162;
}
break;
case 1813:
case 1816:
case 1817:
case 1820:
case 1821:
case 1822:
case 1823:
case 1824:
case 1825:
case 1826:
case 1827:
case 1828:
case 1829:
case 1830:
case 1831:
case 1832:
case 1833:
case 1834:
case 1835:
case 1836:
case 1837:
case 1838:
case 1839:
case 1840:
case 1841:
case 1842:
case 1843:
case 1844:
case 1845:
case 1846:
case 1847:
case 1848:
case 1849:
case 1850:
case 1851:
case 1852:
case 1853:
case 1854:
case 1855:
case 1856:
case 1857:
case 1858:
case 1859:
case 1860:
case 1861:
case 1862:
case 1863:
case 1864:
case 1865:
case 1866:
case 1867:
case 1868:
case 1869:
case 1870:
case 1871:
case 1872:
case 1873:
case 1874:
case 1875:
case 1876:
case 1877:
case 1878:
case 1879:
case 1880:
case 1881:
case 1882:
case 1883:
case 1884:
case 1885:
case 1886:
case 1887:
case 1888:
case 1889:
case 1890:
case 1891:
case 1892:
case 1893:
case 1894:
case 1895:
case 1896:
case 1897:
case 1898:
case 1899:
case 1900:
case 1901:
case 1902:
case 1903:
case 1904:
case 1905:
case 1906:
case 1907:
case 1908:
case 1909:
case 1910:
case 1911:
case 1914:
case 1916:
case 1918:
case 1919:
case 1920:
case 1921:
case 1922:
case 1923:
case 1924:
case 1925:
case 1926:
case 1927:
case 1928:
case 1929:
case 1930:
case 1933:
return;
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);
break;
case 1815:
if ( a1->m_followCPP )
{
v34 = a2->m_effectManager;
v35 = a1->m_targetGroupID;
m_triggerOnExit = a1->m_triggerOnExit;
v37 = a1->m_activateGroup;
if ( a4 )
sub_1001BAE70(__p, a4, v15);
else
memset(__p, 0, 24);
GJEffectManager::registerCollisionTrigger(
v34,
v35,
10000,
10001,
m_triggerOnExit,
v37,
__p,
a1->m_uniqueID,
a1->m_controlID);
goto LABEL_162;
}
v49 = 10000;
if ( !a1->m_targetPlayer1 )
{
v49 = 10001;
if ( !a1->m_targetPlayer2 )
v49 = a1->m_itemID;
}
v50 = a2->m_effectManager;
v51 = a1->m_targetGroupID;
m_itemID2 = a1->m_itemID2;
v53 = a1->m_triggerOnExit;
v54 = a1->m_activateGroup;
v61 = a4;
if ( a4 )
sub_1001BAE70(__p, a4, v15);
else
memset(__p, 0, 24);
GJEffectManager::registerCollisionTrigger(
v50,
v51,
v49,
m_itemID2,
v53,
v54,
__p,
a1->m_uniqueID,
a1->m_controlID);
if ( __p[0].__begin_ )
{
__p[0].__end_ = __p[0].__begin_;
operator delete(__p[0].__begin_);
}
if ( a1->m_targetPlayer1 && a1->m_targetPlayer2 )
{
v56 = a2->m_effectManager;
v57 = a1->m_targetGroupID;
v58 = a1->m_itemID2;
v59 = a1->m_triggerOnExit;
v60 = a1->m_activateGroup;
if ( v61 )
sub_1001BAE70(__p, v61, v55);
else
memset(__p, 0, 24);
GJEffectManager::registerCollisionTrigger(
v56,
v57,
10001,
v58,
v59,
v60,
__p,
a1->m_uniqueID,
a1->m_controlID);
goto LABEL_162;
}
break;
case 1818:
if ( !a1->m_editorEnabled )
{
v39 = GameManager::sharedState()->m_playLayer;
PlayLayer::toggleBGEffectVisibility(v39, 1);
}
break;
case 1819:
if ( !a1->m_editorEnabled )
{
v38 = GameManager::sharedState()->m_playLayer;
PlayLayer::toggleBGEffectVisibility(v38, 0);
}
break;
case 1912:
v31 = a4;
v33 = *(&a1->m_targetGroupID + (a1->m_duration < (float)(GameToolbox::fast_rand_0_1() * 100.0)));
if ( v31 )
sub_1001BAE70(__p, v31, v32);
else
memset(__p, 0, 24);
GJBaseGameLayer::spawnGroupTriggered(a2, v33, 0.0, 0, __p, a1->m_uniqueID, a1->m_controlID);
LABEL_162:
if ( __p[0].__begin_ )
{
__p[0].__end_ = __p[0].__begin_;
operator delete(__p[0].__begin_);
}
break;
case 1913:
GJBaseGameLayer::updateZoom(
a2,
a1->m_zoomValue,
a1->m_duration,
a1->m_easingType,
a1->m_easingRate,
a1->m_uniqueID,
a1->m_controlID);
break;
case 1915:
LABEL_15:
GJBaseGameLayer::updateActiveEnterEffect(a2, (EnterEffectObject *)a1);
break;
case 1917:
((void (__fastcall *)(GJBaseGameLayer *, EffectGameObject *))a2->reverseDirection)(a2, a1);
break;
case 1931:
((void (__fastcall *)(GJBaseGameLayer *, _QWORD, bool, bool))a2->activateEndTrigger)(
a2,
(unsigned int)a1->m_targetGroupID,
a1->m_endReversed,
a1->m_lockToPlayerY);
break;
case 1932:
GJBaseGameLayer::activatePlayerControlTrigger(a2, (PlayerControlGameObject *)a1);
break;
case 1934:
GJBaseGameLayer::activateSongTrigger(a2, (SongTriggerGameObject *)a1);
break;
case 1935:
GJBaseGameLayer::queueTimeWarp(a2, a1->m_timeWarpTimeMod);
break;
default:
switch ( m_objectID )
{
case 1585:
GJBaseGameLayer::playAnimationCommand(a2, a1->m_animationID, a1->m_targetGroupID);
break;
case 1586:
case 1587:
case 1588:
case 1589:
case 1590:
case 1591:
case 1592:
case 1593:
case 1594:
case 1596:
case 1597:
case 1598:
case 1599:
case 1600:
case 1601:
case 1602:
case 1603:
case 1604:
case 1605:
case 1606:
case 1607:
case 1608:
case 1609:
case 1610:
case 1611:
return;
case 1595:
v40 = a2->m_effectManager;
v41 = a1->m_targetGroupID;
m_touchHoldMode = a1->m_touchHoldMode;
m_touchToggleMode = a1->m_touchToggleMode;
m_touchPlayerMode = a1->m_touchPlayerMode;
m_isDualMode = a1->m_isDualMode;
if ( a4 )
sub_1001BAE70(__p, a4, (unsigned int)(m_objectID - 1585));
else
memset(__p, 0, 24);
GJEffectManager::runTouchTriggerCommand(
v40,
v41,
m_touchHoldMode,
m_touchToggleMode,
m_touchPlayerMode,
m_isDualMode,
__p,
a1->m_uniqueID,
a1->m_controlID);
goto LABEL_162;
case 1612:
GJBaseGameLayer::togglePlayerVisibility_1(a2, 0);
break;
case 1613:
GJBaseGameLayer::togglePlayerVisibility_1(a2, 1);
break;
default:
if ( m_objectID == 1520 )
{
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);
}
}
break;
}
break;
}
}
else if ( m_objectID > 1048 )
{
v13 = (unsigned int)(m_objectID - 1329);
switch ( m_objectID )
{
case 1329:
LABEL_36:
v21 = a1->m_targetGroupID;
if ( v21 > 0 )
{
if ( a4 )
sub_1001BAE70(__p, a4, v13);
else
LABEL_121:
memset(__p, 0, 24);
LABEL_122:
((void (__fastcall *)(GJBaseGameLayer *, _QWORD, _QWORD, std::vector *, _QWORD, _QWORD, double))v4->spawnGroup)(
v4,
(unsigned int)v21,
0,
__p,
(unsigned int)a1->m_uniqueID,
(unsigned int)a1->m_controlID,
0.0);
goto LABEL_162;
}
break;
case 1330:
case 1331:
case 1332:
case 1333:
case 1335:
case 1336:
case 1337:
case 1338:
case 1339:
case 1340:
case 1341:
case 1342:
case 1343:
case 1344:
case 1345:
return;
case 1334:
LABEL_39:
v22 = 0.89999998;
if ( m_objectID > 202 )
{
if ( m_objectID == 203 )
{
v22 = 1.3;
}
else if ( m_objectID == 1334 )
{
v22 = 1.6;
}
}
else if ( m_objectID == 200 )
{
v22 = 0.69999999;
}
else if ( m_objectID == 202 )
{
v22 = 1.1;
}
GJBaseGameLayer::updateTimeMod(a2, v22, 0, a1->m_hasNoEffects);
GameObject::playShineEffect(a1);
((void (__fastcall *)(GJBaseGameLayer *, EffectGameObject *))a2->addToSpeedObjects)(a2, a1);
break;
case 1346:
GJBaseGameLayer::triggerRotateCommand(a2, (EnhancedTriggerObject *)a1);
break;
case 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);
break;
default:
if ( m_objectID == 1049 )
GJBaseGameLayer::toggleGroup(a2, a1->m_targetGroupID, a1->m_activateGroup);
break;
}
}
else
{
switch ( m_objectID )
{
case 915:
goto LABEL_47;
case 1006:
GJEffectManager::runPulseEffect(
a2->m_effectManager,
a1->m_targetGroupID,
a1->m_pulseTargetType == 1,
a1->m_fadeInDuration,
a1->m_holdDuration,
a1->m_fadeOutDuration,
(PulseEffectType)((a1->m_pulseMode == 0) + 1),
(cocos2d::ccColor3B)(*(unsigned __int16 *)&a1->m_triggerTargetColor.r | (a1->m_triggerTargetColor.b << 16)),
a1->m_hsvValue,
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;
}
}
}