Re-add/fix broken platform momz mobj code.
- Jun 09, 2015
-
-
Yukita Mayako authored36cf4c1b
-
Yukita Mayako authored
Conflicts: src/dehacked.c src/p_mobj.h
fc649ce1 -
Yukita Mayako authored
Assume that every frame the player is on the ground, their pmomz will be re-set properly if the floor is moving, therefore if the platform STOPS, we need this to set it to 0.
9a9025b1
-
- May 29, 2015
-
-
Yukita Mayako authored
This partially reverts commit a1c67e7e.
c16516ef -
Yukita Mayako authored
Here's how it works: When a player walks off the moving platform, it applies their pmomz once, and then _keeps pmomz set_ so that the camera still adds pmomz to its movements until they hit another floor. This way, the camera doesn't jerk around.
a1c67e7e -
Yukita Mayako authored
Also gain velocity from walking off an "up" elevator normally? This _looks_ incorrect because the camera stops matching the platform movement the moment you step off, but I assure you it is a correct and accurate movement. (Try it with chasecam off.)
213a0caa -
Yukita Mayako authored
Now players will apply platform movement when jumping, but only if the platform is moving the same direction as their jump is, and all other objects will have an appropriate pmomz in reverse gravity FOF situations.
3bc56a91
-