mirror of https://github.com/AxioDL/metaforce.git
CMetaree: Set locomotion type to crouched if deactivated in InActive()
v0-00 sets this locomotion type when the deactivation flag is set.
This commit is contained in:
parent
61f9adfa70
commit
1edcbf7ec6
|
@ -153,8 +153,9 @@ void CMetaree::Active(CStateManager& mgr, EStateMsg msg, float) {
|
|||
|
||||
void CMetaree::InActive(CStateManager&, EStateMsg msg, float) {
|
||||
if (msg == EStateMsg::Activate) {
|
||||
if (!x5ca_26_deactivated)
|
||||
x450_bodyController->SetLocomotionType(pas::ELocomotionType::Relaxed);
|
||||
const auto locomotionType = x5ca_26_deactivated ? pas::ELocomotionType::Crouch
|
||||
: pas::ELocomotionType::Relaxed;
|
||||
x450_bodyController->SetLocomotionType(locomotionType);
|
||||
} else if (msg == EStateMsg::Deactivate) {
|
||||
x5ca_26_deactivated = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue