//
// GJBaseGameLayer::shakeCamera from 0x1002033ac to 0x100203430 (132 bytes)
//
// 3 xrefs:
// > PlayLayer::showCompleteEffect @ 0x10011a598
// > PlayLayer::destroyPlayer @ 0x10011ea7c
// > EffectGameObject::triggerObject @ 0x10038613c
//
// 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 GJBaseGameLayer::shakeCamera(GJBaseGameLayer *a1, float a2, float a3, float a4)
{
int *p_m_activeGradients; // x20
float v8; // s10
if ( a2 > 0.0 && a3 > 0.0 )
{
p_m_activeGradients = &a1->m_activeGradients;
if ( !a1->m_skipCameraShake )
{
if ( a3 <= 100.0 )
v8 = a3;
else
v8 = 100.0;
a1->m_gameState.m_unkUint64_1 = 0.0;
sub_1000229D0(&a1->m_gameState.m_unkPoint34, (double *)&qword_10086C9A0);
a1->m_gameState.m_cameraShakeFactor = a2;
a1->m_gameState.m_unkUint16 = a4;
*((_BYTE *)p_m_activeGradients + 216) = 0;
a1->m_gameState.m_unkUint15 = v8;
}
}
}