New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dragging vehicles #2520
Dragging vehicles #2520
Conversation
Build successful! |
Is there any way to extend this to include hitching vehicles to one another? that way you could have your RV for long-distance travel and drag your favorite bike along for city exploration. |
Extend this no, basically the same kind of thing would need to be implemented separately for vehicles, there might be some common code, but probably not. Also some notes for refinements I want to make: |
Build successful! |
I forgot to add a default keybinding, so that needs to happen, possibly add something you can push around to the tutorial as well. |
Definitely fun to play around with. One little thing (in addition to default keybindings) is that if you run a shopping cart over a trap then it doesn't trigger. This can lead to a strange situation where you can run your cart over a landmine and then be fine until you step there yourself. As for the keybinding I suggest rebinding "G" to this. Center view can then be moved to ':', which can be taken from the view map command since it still has 'm'. |
…her than acting on them.
…move cost calculations.
… around with you if it is light enough.
Build successful! |
"Vehicle drag code" commit, and had to adjust the caster and shopping carts to make it work.I rolled trap detection in to the |
There are some refinements that can still happen, mostly having the pushed/pulled vehicle lead or trail the player so you don't end up losing your grip on vehicles that can rotate, and so that things behave the way you expect.
I think this is in a useful state though, we can worry about the leading/following behavior later.