TheGameCreators / GameGuruRepo

The GameGuru Repository For Community Collaboration
http://www.game-guru.com
138 stars 56 forks source link

[Weapons Guide] Shotgun "empty reload end" may cause issues for custom shotgun models. #5592

Open Kitakazi opened 1 week ago

Kitakazi commented 1 week ago

Posting this for information: Not necessarily a bug but the current system does not account for a shotgun imported with certain animations for the special "empty" reload that shotguns have.

The issue is when my shotgun is completely empty and I reload it, the reload loop plays normal however the very last part of the sequence the "empty reload end" animation for my shotgun shows the hand putting in a shell then moving to the pump and pumping the gun. Because this "empty reload end" is not part of the "empty reload loop" even though it loads the shell the system does not add this shell to the ammo count. So if the ammo qty is set to 4 for the clip size it will look like the hand loads in 5 total shells. (4 for the reload loop and then 1 for the reload end, but the system only gives ammo for 4.)

The final animation of "empty reload end" has the hand placement slightly different so it can easily move from up to the pump so cutting the frames off of the hand putting in the shell is not an option.

So currently any shotgun that is imported must have the "empty reload end" animation be a smooth animation transition from the "empty reload loop" without having the actual animation of the hand putting in a shell for "empty reload end." It must be only the hand going to the pump and pumping the gun.

Here is a video: https://www.youtube.com/watch?v=iBmTqyuOsBk&feature=youtu.be The "empty reload end" animation starts when the last shell is loaded. Even though the total shells loaded into the gun is 5 the system only accounts for the 4 shells loaded during the "empty reload loop." Which does make sense, it just happens that this models ending animation shows the entire reload sequence of 1 shell then pumping.

For me, this issue could be solved by adding an optional "empty reload end 2" that would play after after "empty reload end" - then I would just "empty reload end" the same as my normal "reload end" and play the pumping animation as "empty reload end 2".

I can probably import model into Blender and try and fix the animations myself to try and fix the current "empty reload end" animation. But yea this information might be useful for the weapons guide. Or if additional gunspec commands can be added to fix this that would be sweet too, I could see this being an issue for other people trying to import shotgun models or any model that needs to use the special empty animations for the dynamic reload loops. Such as a grenade launcher that holds multiple shells, etc.