From f62ac3be8fcf76cb1ba20a2d03f16370c2c29200 Mon Sep 17 00:00:00 2001 From: Henrique Gemignani Passos Lima Date: Fri, 7 Oct 2022 02:39:53 +0300 Subject: [PATCH] Almost match CGunMotion::BasePosition Former-commit-id: 3ffec6266cc36becc4285a85c4b8cf3260a6ac62 --- src/MetroidPrime/Weapons/GunController/CGunMotion.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/MetroidPrime/Weapons/GunController/CGunMotion.cpp b/src/MetroidPrime/Weapons/GunController/CGunMotion.cpp index ed2fed08..d7a57d12 100644 --- a/src/MetroidPrime/Weapons/GunController/CGunMotion.cpp +++ b/src/MetroidPrime/Weapons/GunController/CGunMotion.cpp @@ -83,7 +83,15 @@ int CGunMotion::GetFreeLookSetId() const { return x4c_gunController.GetFreeLookSetId(); } -void CGunMotion::BasePosition(bool bigStrikeReset) {} +void CGunMotion::BasePosition(bool bigStrikeReset) { + CAnimData& animData = *x0_modelData.AnimationData(); + animData.EnableLooping(false); + int animation = 0; + if (bigStrikeReset) { + animation = 6; + } + animData.SetAnimation(CAnimPlaybackParms(animation, -1, 1.f, true), false); +} void CGunMotion::EnterFidget(CStateManager&, SamusGun::EFidgetType, int) {}