SmallJoker / boost_cart

The original version of minetest_game's carts (since 2018).
15 stars 14 forks source link

Add start-stop rail. #11

Closed Hawk777 closed 8 years ago

Hawk777 commented 8 years ago

This pull request add the “start stop rail”. This rail is only useful with Mesecons installed. When powered, the rail acts exactly the same as a power rail, kicking the cart if stopped and accelerating it if already moving. When unpowered, however, the rail instantly halts the cart and holds it in place over itself. This allows Mesecons control over holding and releasing carts at specific locations, without very complex track layouts and trial-and-error selection of proper lengths of braking and power rail to ensure the cart will come to a stop on top of power rail.

This is probably only really useful after merging GH-10, otherwise you have no control over which way the cart will go after resuming its motion.

Hawk777 commented 8 years ago

Let’s GH-10 sorted out first, then I will rebase this and clean it up as requested.

Hawk777 commented 8 years ago

OK, how does this look?

SmallJoker commented 8 years ago

Thanks. It looks fine now. For the future development it will be helpful to handle the effects of the skipped nodes on laggy servers aswell because one stop rail is no garantuee to stop the cart.