From 1edcbf7ec6543e2184d0f806b59f35df28d8f5dd Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 7 Feb 2020 19:27:23 -0500 Subject: [PATCH] CMetaree: Set locomotion type to crouched if deactivated in InActive() v0-00 sets this locomotion type when the deactivation flag is set. --- Runtime/MP1/World/CMetaree.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Runtime/MP1/World/CMetaree.cpp b/Runtime/MP1/World/CMetaree.cpp index 97b6f8a65..69a5622aa 100644 --- a/Runtime/MP1/World/CMetaree.cpp +++ b/Runtime/MP1/World/CMetaree.cpp @@ -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; }