// // GJBaseGameLayer::activatePlayerControlTrigger from 0x100129da0 to 0x100129fb2 (530 bytes) // // 1 xrefs: // > EffectGameObject::triggerObject @ 0x1001ba0e0 // // 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::activatePlayerControlTrigger(GJBaseGameLayer *a1, PlayerControlGameObject *a2) { bool m_targetPlayer1; // r15 bool m_targetPlayer2; // r13 bool m_stopJump; // cl bool m_stopMove; // r12 bool v6; // r15 bool v7; // r15 bool m_stopRotation; // [rsp+0h] [rbp-2Ah] bool v9; // [rsp+1h] [rbp-29h] m_targetPlayer1 = a2->m_targetPlayer1; m_targetPlayer2 = a2->m_targetPlayer2; m_stopJump = a2->m_stopJump; m_stopMove = a2->m_stopMove; m_stopRotation = a2->m_stopRotation; if ( !m_targetPlayer1 && m_targetPlayer2 ) goto LABEL_12; v9 = a2->m_stopJump; if ( m_stopJump ) { PlayerObject::releaseButton(a1->m_player1, Jump); m_stopJump = v9; if ( !m_stopMove || !a1->m_isPlatformer ) { LABEL_4: v6 = !m_targetPlayer1; if ( !m_stopRotation ) goto LABEL_5; goto LABEL_10; } } else if ( !m_stopMove || !a1->m_isPlatformer ) { goto LABEL_4; } PlayerObject::releaseButton(a1->m_player1, (PlayerButton)5); PlayerObject::releaseButton(a1->m_player1, (PlayerButton)2); PlayerObject::releaseButton(a1->m_player1, (PlayerButton)3); m_stopJump = v9; v6 = !m_targetPlayer1; if ( !m_stopRotation ) { LABEL_5: v7 = m_targetPlayer2 || v6; if ( !a2->m_stopSlide ) goto LABEL_6; goto LABEL_11; } LABEL_10: PlayerObject::stopRotation(a1->m_player1, 1, 0); m_stopJump = v9; v7 = m_targetPlayer2 || v6; if ( a2->m_stopSlide ) { LABEL_11: PlayerObject::handlePlayerCommand(a1->m_player1, 543); m_stopJump = v9; if ( !v7 ) return; LABEL_12: if ( m_stopJump ) { PlayerObject::releaseButton(a1->m_player2, Jump); if ( !a1->m_isPlatformer || !m_stopMove ) { LABEL_14: if ( !m_stopRotation ) goto LABEL_15; goto LABEL_19; } } else if ( !a1->m_isPlatformer || !m_stopMove ) { goto LABEL_14; } PlayerObject::releaseButton(a1->m_player2, (PlayerButton)5); PlayerObject::releaseButton(a1->m_player2, (PlayerButton)2); PlayerObject::releaseButton(a1->m_player2, (PlayerButton)3); if ( !m_stopRotation ) { LABEL_15: if ( !a2->m_stopSlide ) return; goto LABEL_16; } LABEL_19: PlayerObject::stopRotation(a1->m_player2, 1, 0); if ( !a2->m_stopSlide ) return; LABEL_16: PlayerObject::handlePlayerCommand(a1->m_player2, 543); return; } LABEL_6: if ( v7 ) goto LABEL_12; }