//
// GJBaseGameLayer::activatePlayerControlTrigger from 0x46f9c4 to 0x46faaa (230 bytes)
//
// 1 xrefs:
// > EffectGameObject::triggerObject @ 0x3ee0bc
//
// 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 GJBaseGameLayer::activatePlayerControlTrigger(GJBaseGameLayer *a1, PlayerControlGameObject *a2)
{
_BOOL4 m_targetPlayer2; // r6
_BOOL4 m_stopJump; // r7
_BOOL4 m_stopMove; // r8
_BOOL4 m_stopRotation; // r9
m_targetPlayer2 = a2->m_targetPlayer2;
m_stopJump = a2->m_stopJump;
m_stopMove = a2->m_stopMove;
m_stopRotation = a2->m_stopRotation;
if ( !a2->m_targetPlayer1 )
{
if ( a2->m_targetPlayer2 )
{
LABEL_3:
if ( m_stopJump )
PlayerObject::releaseButton(a1->m_player2, Jump);
if ( a1->m_isPlatformer && m_stopMove )
{
PlayerObject::releaseButton(a1->m_player2, (PlayerButton)5);
PlayerObject::releaseButton(a1->m_player2, (PlayerButton)2);
PlayerObject::releaseButton(a1->m_player2, (PlayerButton)3);
}
if ( m_stopRotation )
PlayerObject::stopRotation(a1->m_player2, 1, 0);
if ( a2->m_stopSlide )
PlayerObject::handlePlayerCommand(a1->m_player2, 543);
return;
}
m_targetPlayer2 = 1;
}
if ( a2->m_stopJump )
PlayerObject::releaseButton(a1->m_player1, Jump);
if ( a1->m_isPlatformer && m_stopMove )
{
PlayerObject::releaseButton(a1->m_player1, (PlayerButton)5);
PlayerObject::releaseButton(a1->m_player1, (PlayerButton)2);
PlayerObject::releaseButton(a1->m_player1, (PlayerButton)3);
}
if ( m_stopRotation )
PlayerObject::stopRotation(a1->m_player1, 1, 0);
if ( a2->m_stopSlide )
PlayerObject::handlePlayerCommand(a1->m_player1, 543);
if ( m_targetPlayer2 )
goto LABEL_3;
}