From 6afcf634b03fd618237a80cc095caa8f9263869a Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 26 Feb 2020 04:11:18 -0500 Subject: [PATCH] CGroundMovement: Set optsCopy's wall elastic constant to 0.03f In GM8E v0, the wall elastic constant of the copied SMovementOptions instance is set to 0.03f. --- Runtime/Character/CGroundMovement.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Runtime/Character/CGroundMovement.cpp b/Runtime/Character/CGroundMovement.cpp index a7b54eeb2..0cbb48fec 100644 --- a/Runtime/Character/CGroundMovement.cpp +++ b/Runtime/Character/CGroundMovement.cpp @@ -384,10 +384,13 @@ void CGroundMovement::MoveGroundCollider_New(CStateManager& mgr, CPhysicsActor& /* NoStepLogic must be the only set material bit to bypass step logic */ if (material2.XOR({EMaterialTypes::NoStepLogic})) { SMovementOptions optsCopy = opts; - zeus::CVector3f postToPre = physStatePre.GetTranslation() - physStatePost.GetTranslation(); - float postToPreMag = postToPre.magSquared(); optsCopy.x19_alwaysClip = noJump; - float quarterStepUp = 0.25f * stepUp; + optsCopy.x30_wallElasticConstant = 0.03f; + + const zeus::CVector3f postToPre = physStatePre.GetTranslation() - physStatePost.GetTranslation(); + const float postToPreMag = postToPre.magSquared(); + const float quarterStepUp = 0.25f * stepUp; + rstl::reserved_vector physStateList; rstl::reserved_vector stepDeltaList; rstl::reserved_vector collisionInfoList;