haekb / nolf2-modernizer

NOLF 2 Modernizer aims to unlock resolution support, restore multi-player support, and fix a few bugs here and there.
https://haekb.itch.io/nolf2-modernizer
30 stars 4 forks source link

Weapon flag gets stuck with loading screen #75

Closed haekb closed 3 years ago

haekb commented 4 years ago

Similar to https://github.com/haekb/nolf2-modernizer/issues/65. The weapon flag is getting stuck on, when you press "Fire" on the "Press any key to continue" message on the loading screen.

haekb commented 4 years ago

Haha nope not fixed. Just at random.

I think I figure this out though, not sure how to solve it. The mouse buttons are still filling some kind of input buffer on the engine side of things. I know this can fill up due to the console message that occasionally occurs during gameplay. I think what's happening is the buffer is being filled with mouse fire commands, and for some reason after pressing any key on the load screen it'll immediately send off all of those fire commands.

I need to get in a good spot to ClearInput().

haekb commented 4 years ago

Yea that doesn't seem to be it. Any action bound to the mouse button seems to get stuck on if you're holding out when it goes out of menu/loading screen.

Currently the only way I can think about fixing this is with my own custom input manager for all actions, not just mouse. Then I can ignore the engine's "IsCommandOn" function entirely.

I'll have to sit on this for a bit.