aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation/interrupt.lua
diff options
context:
space:
mode:
authorywang <yw05@forksworld.de>2019-12-03 22:46:36 +0100
committerywang <yw05@forksworld.de>2019-12-03 22:46:36 +0100
commitcee62d7e175b73ae4ea08a0bebccaac1e0df043f (patch)
tree6410d26c428a944c986c8402749e65cbaff04494 /advtrains_luaautomation/interrupt.lua
parent25a335203f81fb80effed30f74aed2ed7d488837 (diff)
Add function to calculate distance until override
The function will be used to improve the train movement algorithm. The changes related to spaces in blank lines is caused by a weird feature in the text editor.
Diffstat (limited to 'advtrains_luaautomation/interrupt.lua')
0 files changed, 0 insertions, 0 deletions
by these range settings # This setting determines the lower y bound of the box, a value of 1 means that the rail and 1 node below it are protected advtrains_prot_range_down (Track protection range [down]) int 1 0 10 # Determine what effect "being overrun by a train" has. # none: No damage is dealt at all. # drop: Player is killed, all items are dropped as items on the tracks. # normal: Player is killed, game-defined behavior is applied as if the player died by other means. advtrains_overrun_mode (Overrun mode) enum drop none,drop,normal # Wagon entity loading/unloading range, in nodes # When a wagon is within this range to a player, it is loaded # When a wagon leaves this range + 32 nodes, it is unloaded # If unset, defaults to active_block_range*16 advtrains_wagon_load_range (Wagon Entity Load/Unload Range) int 96 32 512