Really Weird Movement Bug

Okay so if I either jump while going up stairs, jump around and then turn around super fast, or very rarely just when just walking up stairs, my move speed will get as fast as my run speed, and my jump power is set to 0 so i cant jump. and doing +/- speed and +/- jump in console does nothing. also, the map is dm_richland if it matters, but i definitely dont think its tied to the map. how do i fix it? i tried setting every players walk/run speed and jump power to the appropriate values every 0.5 seconds, but that doesn’t do anything. im using a custom gamemode derived from base but it isn’t very complicated and i dont think its code is causing this.