orwell96
3cb21a80dc
Wagons: Add two-pos wheel positioning logic for more realistic look of long wagons
...
Adds field "wheel_positions" in wagon definition
2022-02-09 23:06:02 +01:00
orwell96
5f5d28af1b
Coupling: Add concept of coupler types, allow coupling only when coupler types match
2021-10-25 21:08:42 +02:00
orwell96
8660794ef8
Fix lots of things around new LZB
2021-02-10 16:36:24 +01:00
Blockhead
2da11c5a49
Use a standard wagon inventory formspec
...
This new formspec also allows access to the wagon properties. Once
whitelisted in the wagon properties, other players can access its
inventory.
Note on 'useless use' of OO: I tried passing just the wagon ID and
avoiding using the `self` object in order to bypass the need to look up
the lua entitie out of the list, but it ended up retrieving nil data.
The best way to solve this overhead might be to wait for some kind of
better way upstream in minetest's lua API to get entities, or to keep a
central record of entities. Either way, the solution is outside the
scope of this commit.
2020-03-18 00:35:30 +11:00
orwell96
ea33ad9de0
Move LZB system to core and unify approach callback mechanism
2019-04-16 09:16:44 +02:00
orwell96
84f1c3d8a5
Fix stop rails sometimes not sending stop command
2019-02-16 21:51:14 +01:00
orwell96
144e1fc4e0
Change get_inventory_formspec API - add invname parameter
2018-12-10 22:54:23 +01:00
orwell96
ec68eaa229
Added on_train_approach callback, non-permanent external LZB brakepoints and basis for "stop rails"
...
Stop rails ATM use the aforementioned things to add a pointwise "2" speed restriction. Seems to work.
2018-11-29 17:52:56 +01:00
orwell96
a758426835
Correct some documentation
2018-06-14 21:31:35 +02:00
orwell96
b420a71939
Implement a reverse path lookup for trains instead of an occupations window system
2018-06-14 17:39:42 +02:00
orwell96
33a8f0f570
Move driving_ctrl_access property to seat group
...
there's now a more strict check for the train_operator privilege
Also added custom reasons on getting on a train.
2018-01-09 18:30:29 +01:00
orwell96
dc67ff7226
Implement sound api and some sounds
...
- Level crossing bell
- Horns
- Subway train driving and door sounds
...to be continued...
2017-12-06 13:23:55 +01:00
orwell96
83df46d786
Change name of update_animation function
...
I will use this for sounds, and so it needs to be changed to a more general name
2017-11-29 17:20:46 +01:00
orwell96
d78d07589d
Add modifiable wagon extents
...
This will be required for advcarts
2017-11-23 17:00:39 +01:00
orwell96
2d4833b5a8
do not register wagons in the advtrains namespace automatically
...
One step towards advcarts compatibility
2017-11-22 22:16:08 +01:00
rubenwardy
d65c4916ce
Remove zip release files, move mod to root, exclude assets from Makefile ( #92 )
2017-09-20 18:05:04 +02:00
orwell96
2d0b51b897
Restructure mod directory
2017-01-04 19:10:03 +01:00
orwell96
853a9e690e
Add Automatic Train Control system
2017-01-04 12:02:00 +01:00
orwell96
a9d43ce2ca
add API documentation
2017-01-03 18:48:00 +01:00