From 65de1fba63268d89551215d75d51973060a7f2fb Mon Sep 17 00:00:00 2001 From: acesuper Date: Thu, 14 Aug 2025 11:13:11 +0300 Subject: [PATCH] Create better Ground Collision.hmm --- .../Open Zone/better Ground Collision.hmm | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 Source/Sonic Frontiers/Gameplay/Open Zone/better Ground Collision.hmm diff --git a/Source/Sonic Frontiers/Gameplay/Open Zone/better Ground Collision.hmm b/Source/Sonic Frontiers/Gameplay/Open Zone/better Ground Collision.hmm new file mode 100644 index 00000000..b565f572 --- /dev/null +++ b/Source/Sonic Frontiers/Gameplay/Open Zone/better Ground Collision.hmm @@ -0,0 +1,32 @@ +Code "Disable Wall Flip" +// +#lib "Player" +// +{ + Player.State.Discard(Sonic.StateID.StateFallFlip); + Player.State.Discard(Sonic.StateID.StateFallSlope); +} +Code "better Ground Collision" by "ace super" +// + #include "Reflection" noemit + + #lib "Player" + #lib "Reflection" + #lib "Sonic" + #lib "SonicParameters" +// +{ + var SonicParametersInfo = Reflection.GetDataInfo("player_common"); + if (SonicParametersInfo.pData == null) + return; + + RFL_SET_PARAM(SonicParametersInfo, forwardView.modePackage.common.movableMaxSlope, 55.0f); + RFL_SET_PARAM(SonicParametersInfo, forwardView.modePackage.common.activeLandingSlope, 50.0f); + RFL_SET_PARAM(SonicParametersInfo, forwardView.modePackage.common.activeLandingSlopeInBoost, 10.5f); + RFL_SET_PARAM(SonicParametersInfo, forwardView.modePackage.common.wallSlideSlowInBoost, false); + RFL_SET_PARAM(SonicParametersInfo, forwardView.modePackage.common.landingMaxSlope, 49.4f); + RFL_SET_PARAM(SonicParametersInfo, forwardView.modePackage.common.slidingMaxSlope, 80.0f); + RFL_SET_PARAM(SonicParametersInfo, forwardView.modePackage.common.wallAngleMaxSlope, 100.0f); + RFL_SET_PARAM(SonicParametersInfo, forwardView.modePackage.common.onStand, SonicParameters.SupportedPlane.Slope); + RFL_SET_PARAM(SonicParametersInfo, forwardView.modePackage.common.onRun, SonicParameters.SupportedPlane.Flat); +} \ No newline at end of file