videoP / jaPRO

Community effort to maintain and improve Jedi Academy + Jedi Outcast released by Raven Software
GNU General Public License v2.0
12 stars 6 forks source link

still some fps dependant physics #25

Open videoP opened 4 years ago

videoP commented 4 years ago

1) when jumping up into a slope with forcejump the speed you gain depends on your FPS (higher fps = higher speed). this happens in normal JKA and racemode.

2) when air turning in CPM physics the higher your FPS the less(?) you gain speed. not sure if this happens in racemode only or not.

for 2) tested inside/outside racemode and it seems the same. means it will be harder to fix.

+right, cl_yawspeed 100. running start then holding jump+right while in CPM style 333fps 998u after 20 bhops 125fps 932u after 20 bhops 60fps 840u after 20 bhops same behaviour inside/outside racemode

videoP commented 4 years ago

for 1) either

a) stop making velocity[2] set every client frame or applying it based on msec pm->ps->velocity[2] = JUMP_VELOCITY; b) stop applying clipvelocity every client frame or applying it based on msec //modify velocity so it parallels all of the clip planes

probably B

videoP commented 8 months ago

we could have a debouncer on when velocity[2] is set during forcejump. every 8ms or something. (?)