luttje / gmod-ghost-replay

Record and replay your movements in Garry's Mod.
MIT License
0 stars 1 forks source link

Animate Entity Throughout Replayed Scene and Hide GUI #4

Closed jibraeelabdel closed 10 months ago

jibraeelabdel commented 10 months ago

HideGUI - Hide the GUI when the user controls the camera and player entity is now animated* throughout the replay -Quality of life adjustments to HideGUI from user when they control the camera/click outside of the gui -Player model entity is now animated according to the replay animation sequence (However, this feature is heavily limited and both the idle and walk animations have been hardcoded to "menu_walk" and "idle_all_01" which may not be representative of the actual gameplay)

What does this change bring? Now player entities will be animated throughout your replay! No more of the stiff guy floating through space. The user will also now be able to hide the scrubber gui when they click in to control the camera. GUI returns to normal after the user releases control of the camera. 2024-01-09 17-17-48

jibraeelabdel commented 10 months ago

@luttje I have also fixed the styles to match what you asked for in the last PR :)

luttje commented 10 months ago

Wow you're on a roll! Great PR, love it! I always struggle with how to play animations in GLua, so thank you very much for helping out with this. šŸ˜

jibraeelabdel commented 10 months ago

@luttje yep, it took me hours to figure out why animations wouldnā€™t play. Iā€™m about 90% sure itā€™s because of the way we instantiate the entity using the function ā€œset modelā€ which according to the documentation will cause animation errors and glitches. Iā€™m hoping that the next patch will be the proper animations as well as new filters and overlays for the camera like fisheye lens, cinematics etc

luttje commented 10 months ago

Well I appreciate the time you're willing to spend on this. Thanks šŸ™