Smooth falling
Changelog
rscadd: Falling down and getting up are now smooth animations rather than being sudden rotations.
tweak: Falling down now only goes in one direction to prevent insanity when buckling to beds or fireman carrying.
tweak: Backend fixes to make this MR compatible with admin matrix editing, courtesy of Firartix.
/
Details
This took way too long to scour the code of other codebases, only to find that the solution was, in fact, ridiculously simple as adding 2 copy-pasted lines in a single file. Who knew!
Anyway, know how humans just go from vertical to horizontal instantly? This MR aims to make it less jarring by providing an animation (like what you see on other codebases) where they gradually go from vertical to horizontal (and vice versa!) with a nice little animation now.
Tested to work with buckling (both beds and chairs), fireman carries, grabs, knockouts, sleeping, resting and pretty much everything else that causes a human body to go horizontal.
Here's it in action.
Unfortunately this means I had to axe the random falling directions (you now only fall to the right as a result) as that resulted in ridiculous animations that involved flipping over like a Paper Mario character when trying to buckle someone to a bed, lethal grab, or fireman carry. But, hey, smoooooth.