Almost match CGunMotion::BasePosition

This commit is contained in:
Henrique Gemignani Passos Lima 2022-10-07 02:39:53 +03:00
parent 77ad228fdb
commit 3ffec6266c
No known key found for this signature in database
GPG Key ID: E224F951761145F8
1 changed files with 9 additions and 1 deletions

View File

@ -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) {}