From 337db2a573ccaa1672e713855022e96106679803 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Thu, 27 Apr 2017 15:32:41 +0200 Subject: Add Andrew's Cross --- advtrains/advtrains/models/advtrains_across.obj | 537 +++++++++++++++++++++ advtrains/advtrains/signals.lua | 91 +++- advtrains/advtrains/textures/advtrains_across.png | Bin 0 -> 302 bytes .../advtrains/textures/advtrains_across_anim.png | Bin 0 -> 524 bytes advtrains/advtrains_luaautomation/README.txt | 4 + 5 files changed, 629 insertions(+), 3 deletions(-) create mode 100644 advtrains/advtrains/models/advtrains_across.obj create mode 100644 advtrains/advtrains/textures/advtrains_across.png create mode 100644 advtrains/advtrains/textures/advtrains_across_anim.png (limited to 'advtrains') diff --git a/advtrains/advtrains/models/advtrains_across.obj b/advtrains/advtrains/models/advtrains_across.obj new file mode 100644 index 0000000..4ebf393 --- /dev/null +++ b/advtrains/advtrains/models/advtrains_across.obj @@ -0,0 +1,537 @@ +# Blender v2.78 (sub 0) OBJ File: 'andreaskreuz.blend' +# www.blender.org +o Cube +v 0.183133 0.500062 -0.365883 +v 0.300122 0.552646 -0.365883 +v 0.300122 0.552646 -0.337392 +v 0.183133 0.500062 -0.337392 +v -0.300121 1.575195 -0.365883 +v -0.183133 1.627780 -0.365883 +v -0.183133 1.627780 -0.337392 +v -0.300121 1.575195 -0.337392 +v -0.035079 -0.503415 -0.299723 +v -0.035079 1.055075 -0.299723 +v -0.024805 -0.503415 -0.324528 +v -0.024805 1.055075 -0.324528 +v -0.000000 -0.503415 -0.334802 +v -0.000000 1.055075 -0.334802 +v 0.024805 -0.503415 -0.324528 +v 0.024805 1.055075 -0.324528 +v 0.035079 -0.503415 -0.299723 +v 0.035079 1.055075 -0.299723 +v 0.024805 -0.503415 -0.274918 +v 0.024805 1.055075 -0.274918 +v -0.000000 -0.503415 -0.264644 +v -0.000000 1.055075 -0.264644 +v -0.024805 -0.503415 -0.274918 +v -0.024805 1.055075 -0.274918 +v -0.000000 -0.698893 -0.299723 +v -0.032318 0.979391 -0.365883 +v -0.084671 1.095865 -0.365883 +v 0.084671 1.031976 -0.365883 +v 0.032318 1.148450 -0.365883 +v 0.084671 1.031976 -0.337392 +v 0.032318 1.148450 -0.337392 +v -0.032318 0.979391 -0.337392 +v -0.084671 1.095865 -0.337392 +v -0.133841 1.055075 -0.323880 +v -0.096352 1.055075 -0.376499 +v -0.115909 0.988154 -0.323880 +v -0.083444 1.006899 -0.376499 +v -0.066920 0.939165 -0.323880 +v -0.048176 0.971631 -0.376499 +v -0.000000 0.921234 -0.323880 +v -0.000000 0.958722 -0.376499 +v 0.066920 0.939165 -0.323880 +v 0.048176 0.971631 -0.376499 +v 0.115909 0.988154 -0.323880 +v 0.083443 1.006899 -0.376499 +v 0.133841 1.055075 -0.323880 +v 0.096352 1.055075 -0.376499 +v 0.115909 1.121995 -0.323880 +v 0.083443 1.103251 -0.376499 +v 0.066920 1.170984 -0.323880 +v 0.048176 1.138518 -0.376499 +v 0.000000 1.188915 -0.323880 +v 0.000000 1.151427 -0.376499 +v -0.066920 1.170984 -0.323880 +v -0.048176 1.138518 -0.376499 +v -0.115909 1.121995 -0.323880 +v -0.083444 1.103251 -0.376499 +v -0.115909 0.988154 -0.376499 +v -0.133841 1.055075 -0.376499 +v -0.066920 0.939165 -0.376499 +v -0.000000 0.921234 -0.376499 +v 0.066920 0.939165 -0.376499 +v 0.115909 0.988154 -0.376499 +v 0.133841 1.055075 -0.376499 +v 0.115909 1.121995 -0.376499 +v 0.066920 1.170984 -0.376499 +v 0.000000 1.188915 -0.376499 +v -0.066920 1.170984 -0.376499 +v -0.115909 1.121995 -0.376499 +v -0.094673 1.000415 -0.376499 +v -0.109318 1.055075 -0.376499 +v -0.054659 0.960402 -0.376499 +v -0.000000 0.945756 -0.376499 +v 0.054659 0.960402 -0.376499 +v 0.094672 1.000415 -0.376499 +v 0.109318 1.055075 -0.376499 +v 0.094672 1.109734 -0.376499 +v 0.054659 1.149747 -0.376499 +v 0.000000 1.164393 -0.376499 +v -0.054659 1.149747 -0.376499 +v -0.094672 1.109734 -0.376499 +v -0.094673 1.000415 -0.397361 +v -0.109318 1.055075 -0.397361 +v -0.054659 0.960402 -0.397361 +v -0.000000 0.945756 -0.397361 +v 0.054659 0.960402 -0.397361 +v 0.094672 1.000415 -0.397361 +v 0.109318 1.055075 -0.397361 +v 0.094672 1.109734 -0.459571 +v 0.054659 1.149747 -0.459571 +v 0.000000 1.164393 -0.459571 +v -0.054659 1.149747 -0.459571 +v -0.094672 1.109734 -0.459571 +v -0.083444 1.006899 -0.397361 +v -0.096352 1.055075 -0.397361 +v -0.048176 0.971631 -0.397361 +v -0.000000 0.958722 -0.397361 +v 0.048176 0.971631 -0.397361 +v 0.083443 1.006899 -0.397361 +v 0.096352 1.055075 -0.397361 +v 0.083443 1.103251 -0.459571 +v 0.048176 1.138518 -0.459571 +v 0.000000 1.151427 -0.459571 +v -0.048176 1.138518 -0.459571 +v -0.083444 1.103251 -0.459571 +v 0.084671 1.095865 -0.337392 +v 0.032318 0.979391 -0.337392 +v -0.032318 1.148450 -0.337392 +v -0.084671 1.031976 -0.337392 +v -0.032318 1.148450 -0.365883 +v -0.084671 1.031976 -0.365883 +v 0.084671 1.095865 -0.365883 +v 0.032318 0.979391 -0.365883 +v 0.300122 1.575195 -0.337392 +v 0.183133 1.627780 -0.337392 +v 0.183133 1.627780 -0.365883 +v 0.300122 1.575195 -0.365883 +v -0.183133 0.500062 -0.337392 +v -0.300121 0.552646 -0.337392 +v -0.300121 0.552646 -0.365883 +v -0.183133 0.500062 -0.365883 +vt 0.9201 0.4239 +vt 0.9201 0.4892 +vt 0.9044 0.4892 +vt 0.9044 0.4239 +vt 0.1944 0.7581 +vt 0.2101 0.7581 +vt 0.2101 0.8279 +vt 0.1944 0.8279 +vt 0.2539 0.3060 +vt 0.2539 0.0160 +vt 0.3247 0.0160 +vt 0.3247 0.3060 +vt 0.4596 0.8350 +vt 0.7496 0.8350 +vt 0.7496 0.8507 +vt 0.4596 0.8507 +vt 0.2539 0.6281 +vt 0.2539 0.3381 +vt 0.3247 0.3381 +vt 0.3247 0.6281 +vt 0.7609 0.4251 +vt 0.7609 0.1508 +vt 0.7767 0.1508 +vt 0.7767 0.4251 +vt 0.2081 0.7222 +vt 0.2081 0.0160 +vt 0.2218 0.0199 +vt 0.2218 0.7261 +vt 0.0434 0.0160 +vt 0.0434 0.9840 +vt 0.0297 0.9840 +vt 0.0297 0.0160 +vt 0.0160 0.9840 +vt 0.0160 0.0160 +vt 0.1623 0.0183 +vt 0.1623 0.9082 +vt 0.1486 0.9060 +vt 0.1486 0.0160 +vt 0.1350 0.9082 +vt 0.1350 0.0183 +vt 0.0755 0.9840 +vt 0.0755 0.0160 +vt 0.0892 0.0160 +vt 0.0892 0.9840 +vt 0.7932 0.9090 +vt 0.7830 0.8984 +vt 0.7830 0.8836 +vt 0.7932 0.8734 +vt 0.8076 0.8737 +vt 0.8178 0.8844 +vt 0.8178 0.8991 +vt 0.8076 0.9093 +vt 0.1029 0.0160 +vt 0.1029 0.9840 +vt 0.1944 0.7261 +vt 0.1944 0.0199 +vt 0.2199 0.8822 +vt 0.2124 0.8943 +vt 0.2019 0.8972 +vt 0.1944 0.8892 +vt 0.1944 0.8750 +vt 0.2019 0.8629 +vt 0.2124 0.8600 +vt 0.2199 0.8680 +vt 0.8087 0.4251 +vt 0.8087 0.1508 +vt 0.8245 0.1508 +vt 0.8245 0.4251 +vt 0.4275 0.3381 +vt 0.4275 0.6281 +vt 0.3567 0.6281 +vt 0.3567 0.3381 +vt 0.6653 0.4408 +vt 0.6653 0.1508 +vt 0.6811 0.1508 +vt 0.6811 0.4408 +vt 0.5625 0.3060 +vt 0.5625 0.0160 +vt 0.6333 0.0160 +vt 0.6333 0.3060 +vt 0.7433 0.4931 +vt 0.7723 0.4931 +vt 0.7723 0.5268 +vt 0.7433 0.5268 +vt 0.7723 0.5650 +vt 0.7433 0.5650 +vt 0.7723 0.5975 +vt 0.7433 0.5975 +vt 0.9044 0.2874 +vt 0.9334 0.2874 +vt 0.9334 0.3198 +vt 0.9044 0.3198 +vt 0.9334 0.3581 +vt 0.9044 0.3581 +vt 0.9334 0.3918 +vt 0.9044 0.3918 +vt 0.8566 0.8329 +vt 0.8856 0.8329 +vt 0.8856 0.8708 +vt 0.8566 0.8708 +vt 0.8856 0.9063 +vt 0.8566 0.9063 +vt 0.9334 0.2553 +vt 0.9044 0.2553 +vt 0.9044 0.2220 +vt 0.9334 0.2220 +vt 0.9044 0.1838 +vt 0.9334 0.1838 +vt 0.7029 0.1188 +vt 0.6791 0.1050 +vt 0.6653 0.0812 +vt 0.6653 0.0536 +vt 0.6791 0.0298 +vt 0.7029 0.0160 +vt 0.7305 0.0160 +vt 0.7543 0.0298 +vt 0.7681 0.0536 +vt 0.7681 0.0812 +vt 0.7543 0.1050 +vt 0.7305 0.1188 +vt 0.9044 0.1508 +vt 0.9334 0.1508 +vt 0.7433 0.4729 +vt 0.7723 0.4729 +vt 0.4596 0.7507 +vt 0.4596 0.7124 +vt 0.4787 0.6793 +vt 0.5118 0.6602 +vt 0.5501 0.6602 +vt 0.5832 0.6793 +vt 0.6023 0.7124 +vt 0.6023 0.7507 +vt 0.5832 0.7838 +vt 0.5501 0.8029 +vt 0.5118 0.8029 +vt 0.4787 0.7838 +vt 0.3408 0.6733 +vt 0.3096 0.6733 +vt 0.3061 0.6602 +vt 0.3443 0.6602 +vt 0.2826 0.6889 +vt 0.2730 0.6793 +vt 0.2669 0.7160 +vt 0.2539 0.7124 +vt 0.2669 0.7472 +vt 0.2539 0.7507 +vt 0.2826 0.7742 +vt 0.2730 0.7838 +vt 0.3096 0.7898 +vt 0.3061 0.8029 +vt 0.3408 0.7898 +vt 0.3443 0.8029 +vt 0.3679 0.7742 +vt 0.3774 0.7838 +vt 0.3835 0.7472 +vt 0.3966 0.7507 +vt 0.3835 0.7160 +vt 0.3966 0.7124 +vt 0.3679 0.6889 +vt 0.3774 0.6793 +vt 0.8044 0.4994 +vt 0.8044 0.4729 +vt 0.8159 0.4729 +vt 0.8159 0.4994 +vt 0.9044 0.6442 +vt 0.9044 0.6187 +vt 0.9159 0.6187 +vt 0.9159 0.6442 +vt 0.8460 0.0160 +vt 0.8460 0.0429 +vt 0.8001 0.0429 +vt 0.8001 0.0160 +vt 0.2773 0.8808 +vt 0.2539 0.8808 +vt 0.2539 0.8350 +vt 0.2773 0.8350 +vt 0.7112 0.4729 +vt 0.7112 0.4994 +vt 0.6997 0.4994 +vt 0.6997 0.4729 +vt 0.9044 0.6715 +vt 0.9159 0.6715 +vt 0.8460 0.0742 +vt 0.8001 0.0742 +vt 0.3048 0.8808 +vt 0.3048 0.8350 +vt 0.7112 0.5306 +vt 0.6997 0.5306 +vt 0.8460 0.1014 +vt 0.8001 0.1014 +vt 0.3290 0.8808 +vt 0.3290 0.8693 +vt 0.7112 0.5582 +vt 0.6997 0.5582 +vt 0.7302 0.7561 +vt 0.7440 0.7323 +vt 0.7509 0.7341 +vt 0.7353 0.7611 +vt 0.7440 0.7047 +vt 0.7509 0.7029 +vt 0.7302 0.6809 +vt 0.7353 0.6758 +vt 0.7064 0.6671 +vt 0.7083 0.6602 +vt 0.6789 0.6671 +vt 0.6770 0.6602 +vt 0.6550 0.6809 +vt 0.6500 0.6758 +vt 0.6413 0.7047 +vt 0.6344 0.7029 +vt 0.6413 0.7323 +vt 0.6344 0.7341 +vt 0.6550 0.7561 +vt 0.6500 0.7611 +vt 0.6789 0.7699 +vt 0.6770 0.7768 +vt 0.7064 0.7699 +vt 0.7083 0.7768 +vt 0.9024 0.7257 +vt 0.9024 0.7491 +vt 0.8566 0.7491 +vt 0.8566 0.7257 +vt 0.7112 0.5746 +vt 0.6653 0.5746 +vt 0.8896 0.0160 +vt 0.8896 0.0400 +vt 0.8781 0.0400 +vt 0.8781 0.0160 +vt 0.8044 0.5306 +vt 0.8159 0.5306 +vt 0.9024 0.7766 +vt 0.8566 0.7766 +vt 0.8896 0.0675 +vt 0.8781 0.0675 +vt 0.8044 0.5582 +vt 0.8159 0.5582 +vt 0.9024 0.8008 +vt 0.8909 0.8008 +vt 0.8896 0.0912 +vt 0.8781 0.0912 +vt 0.3756 0.8659 +vt 0.3756 0.8350 +vt 0.3872 0.8350 +vt 0.4215 0.8659 +vt 0.3436 0.8808 +vt 0.3436 0.8693 +vt 0.3756 0.8949 +vt 0.4215 0.8949 +vt 0.7987 0.8413 +vt 0.7830 0.8413 +vt 0.7830 0.6602 +vt 0.7987 0.6602 +vt 0.4596 0.0160 +vt 0.5304 0.0160 +vt 0.5304 0.3060 +vt 0.4596 0.3060 +vt 0.8723 0.6936 +vt 0.8566 0.6936 +vt 0.8566 0.5125 +vt 0.8723 0.5125 +vt 0.8723 0.4572 +vt 0.8566 0.4572 +vt 0.9044 0.5213 +vt 0.9201 0.5213 +vt 0.9201 0.5866 +vt 0.9044 0.5866 +vt 0.5304 0.6281 +vt 0.4596 0.6281 +vt 0.4596 0.3381 +vt 0.5304 0.3381 +vt 0.3567 0.0160 +vt 0.4275 0.0160 +vt 0.4275 0.3060 +vt 0.3567 0.3060 +vt 0.8723 0.4251 +vt 0.8566 0.4251 +vt 0.8566 0.1508 +vt 0.8723 0.1508 +vt 0.7289 0.4251 +vt 0.7131 0.4251 +vt 0.7131 0.1508 +vt 0.7289 0.1508 +vt 0.6333 0.6281 +vt 0.5625 0.6281 +vt 0.5625 0.3381 +vt 0.6333 0.3381 +vn 0.4100 -0.9121 0.0000 +vn -0.4100 0.9121 0.0000 +vn 0.0000 0.0000 -1.0000 +vn 0.9121 0.4100 0.0000 +vn 0.0000 0.0000 1.0000 +vn -0.9121 -0.4100 0.0000 +vn -0.9239 0.0000 -0.3827 +vn -0.3827 0.0000 -0.9239 +vn 0.3827 0.0000 -0.9239 +vn 0.9239 0.0000 -0.3827 +vn 0.9239 0.0000 0.3827 +vn 0.3827 0.0000 0.9239 +vn 0.0000 1.0000 0.0000 +vn -0.3827 0.0000 0.9239 +vn -0.9239 0.0000 0.3827 +vn 0.0000 -1.0000 0.0000 +vn -0.9659 -0.2588 0.0000 +vn -0.7071 -0.7071 0.0000 +vn -0.2588 -0.9659 -0.0000 +vn 0.2588 -0.9659 0.0000 +vn 0.7071 -0.7071 0.0000 +vn 0.9659 -0.2588 0.0000 +vn 0.9659 0.2588 0.0000 +vn 0.7071 0.7071 0.0000 +vn 0.2588 0.9659 0.0000 +vn -0.2588 0.9659 -0.0000 +vn -0.7071 0.7071 0.0000 +vn -0.9659 0.2588 0.0000 +vn 0.1966 -0.7339 -0.6502 +vn -0.1967 -0.7339 -0.6502 +vn -0.9121 0.4100 0.0000 +vn 0.4100 0.9121 0.0000 +vn -0.4100 -0.9121 0.0000 +vn 0.9121 -0.4100 -0.0000 +s off +f 1/1/1 2/2/1 3/3/1 4/4/1 +f 5/5/2 8/6/2 7/7/2 6/8/2 +f 27/9/3 5/10/3 6/11/3 29/12/3 +f 29/13/4 6/14/4 7/15/4 31/16/4 +f 31/17/5 7/18/5 8/19/5 33/20/5 +f 26/21/6 1/22/6 4/23/6 32/24/6 +f 9/25/7 10/26/7 12/27/7 11/28/7 +f 11/29/8 12/30/8 14/31/8 13/32/8 +f 13/32/9 14/31/9 16/33/9 15/34/9 +f 15/35/10 16/36/10 18/37/10 17/38/10 +f 17/38/11 18/37/11 20/39/11 19/40/11 +f 19/41/12 20/42/12 22/43/12 21/44/12 +f 12/45/13 10/46/13 24/47/13 22/48/13 20/49/13 18/50/13 16/51/13 14/52/13 +f 21/44/14 22/43/14 24/53/14 23/54/14 +f 23/55/15 24/56/15 10/26/15 9/25/15 +f 9/57/16 11/58/16 13/59/16 15/60/16 17/61/16 19/62/16 21/63/16 23/64/16 +f 5/65/6 27/66/6 33/67/6 8/68/6 +f 3/69/5 30/70/5 32/71/5 4/72/5 +f 2/73/4 28/74/4 30/75/4 3/76/4 +f 1/77/3 26/78/3 28/79/3 2/80/3 +f 34/81/17 59/82/17 58/83/17 36/84/17 +f 36/84/18 58/83/18 60/85/18 38/86/18 +f 38/86/19 60/85/19 61/87/19 40/88/19 +f 40/89/20 61/90/20 62/91/20 42/92/20 +f 42/92/21 62/91/21 63/93/21 44/94/21 +f 44/94/22 63/93/22 64/95/22 46/96/22 +f 46/97/23 64/98/23 65/99/23 48/100/23 +f 48/100/24 65/99/24 66/101/24 50/102/24 +f 50/103/25 66/104/25 67/105/25 52/106/25 +f 52/106/26 67/105/26 68/107/26 54/108/26 +f 37/109/3 35/110/3 57/111/3 55/112/3 53/113/3 51/114/3 49/115/3 47/116/3 45/117/3 43/118/3 41/119/3 39/120/3 +f 54/108/27 68/107/27 69/121/27 56/122/27 +f 56/123/28 69/124/28 59/82/28 34/81/28 +f 34/125/5 36/126/5 38/127/5 40/128/5 42/129/5 44/130/5 46/131/5 48/132/5 50/133/5 52/134/5 54/135/5 56/136/5 +f 71/137/3 70/138/3 58/139/3 59/140/3 +f 70/138/3 72/141/3 60/142/3 58/139/3 +f 72/141/3 73/143/3 61/144/3 60/142/3 +f 73/143/3 74/145/3 62/146/3 61/144/3 +f 74/145/3 75/147/3 63/148/3 62/146/3 +f 75/147/3 76/149/3 64/150/3 63/148/3 +f 76/149/3 77/151/3 65/152/3 64/150/3 +f 77/151/3 78/153/3 66/154/3 65/152/3 +f 78/153/3 79/155/3 67/156/3 66/154/3 +f 79/155/3 80/157/3 68/158/3 67/156/3 +f 80/157/3 81/159/3 69/160/3 68/158/3 +f 81/159/3 71/137/3 59/140/3 69/160/3 +f 74/161/20 73/162/20 85/163/20 86/164/20 +f 37/165/24 39/166/24 96/167/24 94/168/24 +f 81/169/27 80/170/27 92/171/27 93/172/27 +f 51/173/19 53/174/19 103/175/19 102/176/19 +f 73/177/19 72/178/19 84/179/19 85/180/19 +f 35/181/23 37/165/23 94/168/23 95/182/23 +f 80/170/26 79/183/26 91/184/26 92/171/26 +f 49/185/18 51/173/18 102/176/18 101/186/18 +f 72/178/18 70/187/18 82/188/18 84/179/18 +f 79/183/25 78/189/25 90/190/25 91/184/25 +f 47/191/17 49/185/17 101/186/17 100/192/17 +f 70/187/17 71/193/17 83/194/17 82/188/17 +f 95/195/3 94/196/3 82/197/3 83/198/3 +f 94/196/3 96/199/3 84/200/3 82/197/3 +f 96/199/3 97/201/3 85/202/3 84/200/3 +f 97/201/3 98/203/3 86/204/3 85/202/3 +f 98/203/3 99/205/3 87/206/3 86/204/3 +f 99/205/3 100/207/3 88/208/3 87/206/3 +f 100/207/29 101/209/29 89/210/29 88/208/29 +f 101/209/3 102/211/3 90/212/3 89/210/3 +f 102/211/3 103/213/3 91/214/3 90/212/3 +f 103/213/3 104/215/3 92/216/3 91/214/3 +f 104/215/3 105/217/3 93/218/3 92/216/3 +f 105/217/30 95/195/30 83/198/30 93/218/30 +f 53/219/20 55/220/20 104/221/20 103/222/20 +f 71/193/28 81/223/28 93/224/28 83/194/28 +f 39/225/25 41/226/25 97/227/25 96/228/25 +f 75/229/21 74/161/21 86/164/21 87/230/21 +f 55/220/21 57/231/21 105/232/21 104/221/21 +f 41/226/26 43/233/26 98/234/26 97/227/26 +f 76/235/22 75/229/22 87/230/22 88/236/22 +f 57/231/22 35/237/22 95/238/22 105/232/22 +f 43/233/27 45/239/27 99/240/27 98/234/27 +f 77/241/23 76/242/23 88/243/23 89/244/23 +f 45/245/28 47/191/28 100/192/28 99/246/28 +f 78/247/24 77/241/24 89/244/24 90/248/24 +f 120/249/31 119/250/31 109/251/31 111/252/31 +f 112/253/3 110/254/3 116/255/3 117/256/3 +f 110/257/31 108/258/31 115/259/31 116/260/31 +f 117/261/32 116/260/32 115/259/32 114/262/32 +f 121/263/33 118/264/33 119/265/33 120/266/33 +f 119/267/5 118/268/5 107/269/5 109/270/5 +f 108/271/5 106/272/5 114/273/5 115/274/5 +f 113/275/34 107/276/34 118/277/34 121/278/34 +f 117/279/34 114/280/34 106/281/34 112/282/34 +f 121/283/3 120/284/3 111/285/3 113/286/3 diff --git a/advtrains/advtrains/signals.lua b/advtrains/advtrains/signals.lua index a5a9aa3..77d0aef 100644 --- a/advtrains/advtrains/signals.lua +++ b/advtrains/advtrains/signals.lua @@ -30,7 +30,7 @@ for r,f in pairs({on={as="off", ls="green", als="red"}, off={as="on", ls="red", on_rightclick=switchfunc, sunlight_propagates=true, groups = { - choppy=3, + cracky=3, not_blocking_trains=1, not_in_creative_inventory=crea, save_in_nodedb=1, @@ -64,7 +64,7 @@ for r,f in pairs({on={as="off", ls="green", als="red"}, off={as="on", ls="red", description=attrans("Signal (@1)", attrans(r..rotation)), on_rightclick=switchfunc, groups = { - choppy=3, + cracky=3, not_blocking_trains=1, not_in_creative_inventory=crea, save_in_nodedb=1, @@ -113,7 +113,7 @@ for r,f in pairs({on={as="off", ls="green", als="red"}, off={as="on", ls="red", drop="advtrains:signal_wall_"..loc.."_off", description=attrans("Wallmounted Signal ("..loc..")"), groups = { - choppy=3, + cracky=3, not_blocking_trains=1, not_in_creative_inventory=crea, save_in_nodedb=1, @@ -142,3 +142,88 @@ for r,f in pairs({on={as="off", ls="green", als="red"}, off={as="on", ls="red", }) end end + +-- level crossing +-- german version (Andrew's Cross) +minetest.register_node("advtrains:across_off", { + drawtype = "mesh", + paramtype="light", + paramtype2="facedir", + walkable = false, + selection_box = { + type = "fixed", + fixed = {-1/4, -1/2, -1/2, 1/4, 1.5, 0}, + }, + mesh = "advtrains_across.obj", + tiles = {"advtrains_across.png"}, + drop="advtrains:across_off", + description=attrans("Andrew's Cross"), + groups = { + cracky=3, + not_blocking_trains=1, + save_in_nodedb=1, + not_in_creative_inventory=nil, + }, + light_source = 1, + sunlight_propagates=true, + mesecons = {effector = { + rules = advtrains.meseconrules, + action_on = function (pos, node) + advtrains.ndb.swap_node(pos, {name = "advtrains:across_on", param2 = node.param2}) + end + }}, + luaautomation = { + getstate = "off", + setstate = function(pos, node, newstate) + if newstate == "on" then + advtrains.ndb.swap_node(pos, {name = "advtrains:across_on", param2 = node.param2}) + end + end, + }, + on_rightclick=function(pos, node, player) + if minetest.check_player_privs(player:get_player_name(), {train_operator=true}) then + advtrains.ndb.swap_node(pos, {name = "advtrains:across_on", param2 = node.param2}) + end + end, +}) +minetest.register_node("advtrains:across_on", { + drawtype = "mesh", + paramtype="light", + paramtype2="facedir", + walkable = false, + selection_box = { + type = "fixed", + fixed = {-1/4, -1/2, -1/2, 1/4, 1.5, 0}, + }, + mesh = "advtrains_across.obj", + tiles = {{name="advtrains_across_anim.png", animation={type="vertical_frames", aspect_w=64, aspect_h=64, length=1.0}}}, + drop="advtrains:across_off", + description=attrans("Andrew's Cross (on) (you hacker you)"), + groups = { + cracky=3, + not_blocking_trains=1, + save_in_nodedb=1, + not_in_creative_inventory=1, + }, + light_source = 1, + sunlight_propagates=true, + mesecons = {effector = { + rules = advtrains.meseconrules, + action_off = function (pos, node) + advtrains.ndb.swap_node(pos, {name = "advtrains:across_off", param2 = node.param2}) + end + }}, + luaautomation = { + getstate = "on", + setstate = function(pos, node, newstate) + if newstate == "off" then + advtrains.ndb.swap_node(pos, {name = "advtrains:across_off", param2 = node.param2}) + end + end, + }, + on_rightclick=function(pos, node, player) + if minetest.check_player_privs(player:get_player_name(), {train_operator=true}) then + advtrains.ndb.swap_node(pos, {name = "advtrains:across_off", param2 = node.param2}) + end + end, +}) diff --git a/advtrains/advtrains/textures/advtrains_across.png b/advtrains/advtrains/textures/advtrains_across.png new file mode 100644 index 0000000..da65a61 Binary files /dev/null and b/advtrains/advtrains/textures/advtrains_across.png differ diff --git a/advtrains/advtrains/textures/advtrains_across_anim.png b/advtrains/advtrains/textures/advtrains_across_anim.png new file mode 100644 index 0000000..584d023 Binary files /dev/null and b/advtrains/advtrains/textures/advtrains_across_anim.png differ diff --git a/advtrains/advtrains_luaautomation/README.txt b/advtrains/advtrains_luaautomation/README.txt index 907b2fb..f2219bf 100644 --- a/advtrains/advtrains_luaautomation/README.txt +++ b/advtrains/advtrains_luaautomation/README.txt @@ -152,6 +152,10 @@ The Mesecon switch can be switched using LuaAutomation. Note that this is not po "on" - the switch is switched on "off" - the switch is switched off +##Andrew's Cross +"on" - it blinks +"off" - it does not blink + ### Passive component naming You can assign names to passive components using the Passive Component Naming tool. Once you set a name for any component, you can reference it by that name in the getstate() and setstate() functions, like this: -- cgit v1.2.3