Carts: Increase power rail acceleration to help climbs
This is partly a workaround for a bug. Climbs with continuous power rails were failing often due to unexplained losses of speed leading to a reversal of direction. The lack of acceleration on climbs meant that lost speed was not regained. Keeping cart speed at maximum on climbs helps reduce the chance of reversals. This also allows players to slowly accelerate up to full speed on a climb without needing a horizontal run-up to reach full speed first. It may not be possible to build the horizontal sections needed, or, if players are replacing a previous carts mod their track constructions, bridges, tunnels etc. will often not have the horizontal sections needed. Players will also sometimes need to place and enter a cart on a slope and be able to climb.
This commit is contained in:
parent
d42ae715b8
commit
9bbe7f99da
@ -20,6 +20,7 @@ minetest.register_craft({
|
|||||||
|
|
||||||
minetest.register_alias("default:rail", "carts:rail")
|
minetest.register_alias("default:rail", "carts:rail")
|
||||||
|
|
||||||
|
|
||||||
carts:register_rail("carts:powerrail", {
|
carts:register_rail("carts:powerrail", {
|
||||||
description = "Powered rail",
|
description = "Powered rail",
|
||||||
tiles = {
|
tiles = {
|
||||||
@ -27,7 +28,7 @@ carts:register_rail("carts:powerrail", {
|
|||||||
"carts_rail_t_junction_pwr.png", "carts_rail_crossing_pwr.png"
|
"carts_rail_t_junction_pwr.png", "carts_rail_crossing_pwr.png"
|
||||||
},
|
},
|
||||||
groups = carts:get_rail_groups(),
|
groups = carts:get_rail_groups(),
|
||||||
}, {acceleration = 4})
|
}, {acceleration = 5})
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "carts:powerrail 8",
|
output = "carts:powerrail 8",
|
||||||
@ -38,6 +39,7 @@ minetest.register_craft({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
carts:register_rail("carts:brakerail", {
|
carts:register_rail("carts:brakerail", {
|
||||||
description = "Brake rail",
|
description = "Brake rail",
|
||||||
tiles = {
|
tiles = {
|
||||||
@ -47,7 +49,6 @@ carts:register_rail("carts:brakerail", {
|
|||||||
groups = carts:get_rail_groups(),
|
groups = carts:get_rail_groups(),
|
||||||
}, {acceleration = -3})
|
}, {acceleration = -3})
|
||||||
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "carts:brakerail 8",
|
output = "carts:brakerail 8",
|
||||||
recipe = {
|
recipe = {
|
||||||
|
Loading…
Reference in New Issue
Block a user