apetavern / grubs

A worms-inspired artillery game for s&box with randomly generated levels.
MIT License
34 stars 7 forks source link

Fix devcamera by using a custom reimplementation. #270

Closed dch-GH closed 1 year ago

dch-GH commented 1 year ago

Closes: #234

The base library dev cam is broken for some reason. Seems to be due to InputActions. Fix is just having your own debug camera class. No overlay because FP made those internal for some reason, each and every panel too. If we want, we could add our own helpful overlays instead though.

dch-GH commented 1 year ago

Just adding the necessary InputActions instead seemed to have fixed the problem. It's much better but seems like the result of a sbox issue where if an InputAction key isn't found, the Input system goes to hell. JUST KIDDING! Doing this works until you want to zoom your camera. The issue of breaking zoom after leaving devcam mode still persists with this solution. Mouse wheel delta is just permanently zero after you use the FP devcam, even after fixing the input actions. Sad!