//
// CameraTriggerGameObject::customObjectSetup from 0x3e4100 to 0x3e454a (1098 bytes)
//
// 0 xrefs:
//
// 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 CameraTriggerGameObject::customObjectSetup(
CameraTriggerGameObject *a1,
std::vector *a2,
std::vector *a3)
{
int m_objectID; // r3
float v7; // s16
float v8; // s15
void **v9; // r8
EasingType v10; // r0
int v11; // r0
MoveTargetType v12; // r0
void *v13; // r0
void *v14; // r0
void *v15; // r3
float v16; // s15
void **v17; // r8
void *v18; // r0
void *v19; // r3
float v20; // s15
int v21; // r0
void **v22; // r6
int v23; // r0
int v24; // r0
float v25; // s16
float v26; // s15
void **m_start; // r8
EasingType v28; // r0
float v29; // s15
void **v30; // r6
void *v31; // r0
void *v32; // r0
float v33; // s15
float v34; // s16
float v35; // s15
int v36; // r2
bool v37; // r3
float v38; // s15
float v39; // s18
float v40; // s17
float v41; // s16
int v42; // r2
bool v43; // r3
float v44; // s15
void **v45; // r6
EasingType v46; // r0
MoveTargetType v47; // r0
cocos2d::CCPoint v48; // [sp+4h] [bp-10h] BYREF
EffectGameObject::customObjectSetup(a1, a2, a3);
m_objectID = a1->m_objectID;
if ( m_objectID == 2015 )
{
if ( *((_DWORD *)a3->m_start + 85) )
{
v25 = atof((const char *)a2->m_start[85].m_data.m_data);
if ( v25 <= 0.0 )
v25 = 2.0;
}
else
{
v25 = 2.0;
}
if ( *((_DWORD *)a3->m_start + 10) )
v26 = atof((const char *)a2->m_start[10].m_data.m_data);
else
v26 = 0.0;
m_start = a3->m_start;
a1->m_duration = v26;
v28 = (EasingType)m_start[30];
if ( v28 )
v28 = atoi((const char *)a2->m_start[30].m_data.m_data);
a1->m_easingType = v28;
a1->m_easingRate = v25;
if ( m_start[68] )
v29 = atof((const char *)a2->m_start[68].m_data.m_data);
else
v29 = 0.0;
v30 = a3->m_start;
a1->m_rotationDegrees = v29;
v31 = v30[70];
if ( v31 )
LOBYTE(v31) = atoi((const char *)a2->m_start[70].m_data.m_data) != 0;
a1->m_lockObjectRotation = (char)v31;
v32 = v30[394];
if ( v32 )
LOBYTE(v32) = atoi((const char *)a2->m_start[394].m_data.m_data) != 0;
a1->m_isDirectionFollowSnap360 = (char)v32;
}
else if ( m_objectID >= 2016 )
{
if ( m_objectID == 2016 )
{
if ( *((_DWORD *)a3->m_start + 371) )
v33 = atof((const char *)a2->m_start[371].m_data.m_data);
else
v33 = 0.0;
a1->m_zoomValue = v33;
if ( *((_DWORD *)a3->m_start + 28) )
v34 = atof((const char *)a2->m_start[28].m_data.m_data);
else
v34 = 0.0;
if ( *((_DWORD *)a3->m_start + 29) )
v35 = atof((const char *)a2->m_start[29].m_data.m_data);
else
v35 = 0.0;
cocos2d::CCPoint::CCPoint(&v48, v34, v35);
cocos2d::CCPoint::operator=((PlayerObject *)&a1->m_moveOffset, COERCE_FLOAT(&v48), v36, v37);
if ( *((_DWORD *)a3->m_start + 506) )
v38 = atof((const char *)a2->m_start[506].m_data.m_data);
else
v38 = 0.0;
a1->m_previewOpacity = v38;
}
else if ( m_objectID == 2062 )
{
v22 = a3->m_start;
v23 = (int)v22[51];
if ( v23 )
v23 = atoi((const char *)a2->m_start[51].m_data.m_data);
a1->m_targetGroupID = v23;
v24 = (int)v22[164];
if ( v24 )
v24 = atoi((const char *)a2->m_start[164].m_data.m_data);
a1->m_edgeDirection = v24;
}
}
else if ( m_objectID == 1914 )
{
if ( *((_DWORD *)a3->m_start + 85) )
{
v7 = atof((const char *)a2->m_start[85].m_data.m_data);
if ( v7 <= 0.0 )
v7 = 2.0;
}
else
{
v7 = 2.0;
}
if ( *((_DWORD *)a3->m_start + 10) )
v8 = atof((const char *)a2->m_start[10].m_data.m_data);
else
v8 = 0.0;
v9 = a3->m_start;
a1->m_duration = v8;
v10 = (EasingType)v9[30];
if ( v10 )
v10 = atoi((const char *)a2->m_start[30].m_data.m_data);
a1->m_easingType = v10;
v11 = (int)v9[71];
a1->m_easingRate = v7;
if ( v11 )
v11 = atoi((const char *)a2->m_start[71].m_data.m_data);
a1->m_centerGroupID = v11;
v12 = (MoveTargetType)v9[101];
if ( v12 )
v12 = atoi((const char *)a2->m_start[101].m_data.m_data);
a1->m_moveTargetMode = v12;
v13 = v9[110];
if ( v13 )
LOBYTE(v13) = atoi((const char *)a2->m_start[110].m_data.m_data) != 0;
a1->m_exitStatic = (char)v13;
v14 = v9[212];
if ( v14 )
LOBYTE(v14) = atoi((const char *)a2->m_start[212].m_data.m_data) != 0;
v15 = v9[213];
a1->m_followObject = (char)v14;
if ( v15 )
v16 = atof((const char *)a2->m_start[213].m_data.m_data);
else
v16 = 0.0;
v17 = a3->m_start;
a1->m_followEasing = v16;
v18 = v17[453];
if ( v18 )
LOBYTE(v18) = atoi((const char *)a2->m_start[453].m_data.m_data) != 0;
v19 = v17[454];
a1->m_smoothVelocity = (char)v18;
if ( v19 )
v20 = atof((const char *)a2->m_start[454].m_data.m_data);
else
v20 = 0.0;
a1->m_velocityModifier = v20;
v21 = *((_DWORD *)a3->m_start + 465);
if ( v21 )
LOBYTE(v21) = atoi((const char *)a2->m_start[465].m_data.m_data) != 0;
a1->m_exitInstant = v21;
}
else if ( m_objectID == 1916 )
{
if ( *((_DWORD *)a3->m_start + 28) )
v39 = atof((const char *)a2->m_start[28].m_data.m_data);
else
v39 = 0.0;
if ( *((_DWORD *)a3->m_start + 29) )
v40 = atof((const char *)a2->m_start[29].m_data.m_data);
else
v40 = 0.0;
if ( *((_DWORD *)a3->m_start + 85) )
{
v41 = atof((const char *)a2->m_start[85].m_data.m_data);
if ( v41 <= 0.0 )
v41 = 2.0;
}
else
{
v41 = 2.0;
}
cocos2d::CCPoint::CCPoint(&v48, v39, v40);
cocos2d::CCPoint::operator=((PlayerObject *)&a1->m_moveOffset, COERCE_FLOAT(&v48), v42, v43);
if ( *((_DWORD *)a3->m_start + 10) )
v44 = atof((const char *)a2->m_start[10].m_data.m_data);
else
v44 = 0.0;
v45 = a3->m_start;
a1->m_duration = v44;
v46 = (EasingType)v45[30];
if ( v46 )
v46 = atoi((const char *)a2->m_start[30].m_data.m_data);
a1->m_easingType = v46;
v47 = (MoveTargetType)v45[101];
a1->m_easingRate = v41;
if ( v47 )
v47 = atoi((const char *)a2->m_start[101].m_data.m_data);
a1->m_moveTargetMode = v47;
}
}