ofs | hex dump | ascii |
---|
0000 | 89 50 4e 47 0d 0a 1a 0a 00 00 00 0d 49 48 44 52 00 00 04 00 00 00 04 00 08 03 00 00 00 48 c3 db | .PNG........IHDR.............H.. |
0020 | b1 00 00 01 b9 50 4c 54 45 00 00 00 01 01 01 02 02 02 03 03 03 04 04 04 05 05 05 06 06 06 07 07 | .....PLTE....................... |
0040 | 07 08 08 08 09 09 09 0a 0a 0a 0b 0b 0b 0c 0c 0c 0d 0d 0d 0e 0e 0e 0f 0f 0f 10 10 10 11 11 11 12 | ................................ |
0060 | 12 12 13 13 13 14 14 14 15 15 15 16 16 16 17 17 17 18 18 18 19 19 19 1a 1a 1a 1b 1b 1b 1c 1c 1c | ................................ |
0080 | 1d 1d 1d 1e 1e 1e 1f 1f 1f 20 20 20 21 21 21 22 22 22 23 23 23 24 24 24 25 25 25 26 26 26 27 27 | ............!!!"""###$$$%%%&&&'' |
00a0 | 27 28 28 28 29 29 29 2a 2a 2a 2b 2b 2b 2c 2c 2c 2d 2d 2d 2e 2e 2e 2f 2f 2f 30 30 30 31 31 31 32 | '((()))***+++,,,---...///0001112 |
00c0 | 32 32 33 33 33 34 34 34 35 35 35 36 36 36 ff 00 00 37 37 37 38 38 38 39 39 39 3a 3a 3a 3b 3b 3b | 22333444555666...777888999:::;;; |
00e0 | 3c 3c 3c 3d 3d 3d 3e 3e 3e 3f 3f 3f 40 40 40 41 41 41 42 42 42 43 43 43 44 44 44 45 45 45 46 46 | <<<===>>>???@@@AAABBBCCCDDDEEEFF |
0100 | 46 47 47 47 48 48 48 49 49 49 4a 4a 4a 4b 4b 4b 4c 4c 4c 4d 4d 4d 4e 4e 4e 4f 4f 4f 50 50 50 51 | FGGGHHHIIIJJJKKKLLLMMMNNNOOOPPPQ |
0120 | 51 51 52 52 52 53 53 53 54 54 54 55 55 55 56 56 56 57 57 57 58 58 58 59 59 59 5a 5a 5a 5b 5b 5b | QQRRRSSSTTTUUUVVVWWWXXXYYYZZZ[[[ |
0140 | 5c 5c 5c 5d 5d 5d 5e 5e 5e 5f 5f 5f 60 60 60 61 61 61 62 62 62 63 63 63 64 64 64 65 65 65 66 66 | \\\]]]^^^___```aaabbbcccdddeeeff |
0160 | 66 67 67 67 68 68 68 69 69 69 6a 6a 6a 6b 6b 6b 6c 6c 6c 6d 6d 6d 6e 6e 6e 6f 6f 6f 70 70 70 71 | fggghhhiiijjjkkklllmmmnnnooopppq |
0180 | 71 71 72 72 72 73 73 73 74 74 74 75 75 75 76 76 76 77 77 77 78 78 78 79 79 79 7a 7a 7a 7b 7b 7b | qqrrrssstttuuuvvvwwwxxxyyyzzz{{{ |
01a0 | 7c 7c 7c 7d 7d 7d 7e 7e 7e 7f 7f 7f 80 80 80 81 81 81 82 82 82 83 83 83 84 84 84 85 85 85 86 86 | |||}}}~~~....................... |
01c0 | 86 87 87 87 88 88 88 89 89 89 8a 8a 8a 8b 8b 8b 8c 8c 8c 8d 8d 8d 8e 8e 8e 8f 8f 8f 90 90 90 19 | ................................ |
01e0 | ff 19 3b 76 01 c7 00 00 00 01 62 4b 47 44 00 88 05 1d 48 00 00 00 09 70 48 59 73 00 00 0b 13 00 | ..;v......bKGD....H....pHYs..... |
0200 | 00 0b 13 01 00 9a 9c 18 00 00 00 07 74 49 4d 45 07 e1 02 03 0a 0e 30 cc 74 06 fd 00 00 09 bd 49 | ............tIME......0.t......I |
0220 | 44 41 54 78 da ed d4 01 09 00 00 08 03 41 6b 98 c4 fe cd 4c 21 88 de 45 d8 e0 23 81 b7 c2 04 20 | DATx.........Ak....L!..E..#..... |
0240 | 00 80 00 00 02 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 02 | ................................ |
0260 | 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 02 00 08 00 20 00 | ................................ |
0280 | 80 00 00 02 00 08 00 20 00 80 00 00 02 00 08 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 | ................................ |
02a0local S = attrans
advtrains.register_wagon("subway_wagon", {
mesh="advtrains_subway_wagon.b3d",
textures = {"advtrains_subway_wagon.png"},
drives_on={default=true},
max_speed=15,
seats = {
{
name="Driver stand",
attach_offset={x=0, y=0, z=0},
view_offset={x=0, y=0, z=0},
group="dstand",
},
{
name="1",
attach_offset={x=-4, y=-2, z=8},
view_offset={x=0, y=0, 02 20 00 20 00 02 00 02 20 | ................................ |
0420 | 00 20 00 02 00 02 20 00 20 00 02 00 02 20 00 20 00 02 00 02 20 00 20 00 02 00 02 20 00 20 00 02 | ................................ |
0440 | 00 02 20 00 20 00 02 00 02 20 00 20 00 02 00 02 20 00 20 00 02 00 02 20 00 20 00 02 00 02 20 00 | ................................ |
0460 | 20 00 02 00 02 20 00 20 00 02 00 02 20 00 20 00 20 00 02 00 02 20 00 20 00 02 00 02 20 00 20 00 | ................................ |
0480 | 02 00 02 20 00 20 00 02 00 02 20 00 20 00 02 00 02 20 00 20 00 02 00 02 20 00 20 00 02 00 02 20 | ................................ |
04a0 | 00 20 00 02 00 02 20 00 20 00 02 00 02 20 00 20 00 02 00 02 20 00 20 00 02 00 02 20 00 20 00 02 | ................................ |
04c0 | 00 02 20 00 20 00 02 00 02 20 00 20 00 02 00 02 20 00 20 00 02 00 02 20 00 20 00 02 00 02 20 00 | ................................ |
04e0 | 20 00 02 00 02 20 00 20 00 02 00 02 20 00 20 00 20 00 02 00 02 20 00 20 00 02 00 02 20 00 20 00 | ................................ |
0500 | 02 00 02 20 00 20 00 02 00 02 20 00 20 00 02 00 02 20 00 20 00 02 00 02 20 00 20 00 02 00 02 20 | ................................ |
0520 | 00 20 00 02 00 02 20 00 20 00 02 00 02 20 00 20 00 02 00 02 20 00 20 00 02 00 02 20 00 20 00 02 | ................................ |
0540 | 00 02 20 00 20 00 02 00 02 20 00 20 00 02 00 02 20 00 20 00 02 00 02 20 00 20 00 02 00 02 20 00 | ................................ |
0560 | 20 00 02 00 02 20 00 20 00 02 00 02 e0 7a 10 00 10 00 01 00 01 10 00 10 00 01 00 6e 13 00 10 00 | .............z.............n.... |
0580 | 40 00 00 01 00 04 00 10 00 40 00 00 01 00 04 00 10 00 40 00 00 01 00 04 00 10 00 40 00 00 01 00 | @........@........@........@.... |
05a0 | 04 00 10 00 40 00 00 01 00 04 00 10 00 40 00 00 01 00 04 00 10 00 40 00 00 01 00 04 00 10 00 40 | ....@........@........@........@ |
05c0 | 00 00 01 00 04 00 10 00 40 00 00 01 00 04 00 04 c0 04 20 00 80 00 00 02 00 08 00 20 00 80 00 00 | ........@....................... |
05e0 | 02 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 02 00 08 00 20 | ................................ |
0600 | 00 80 00 00 02 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 02 | ................................ |
0620 | 00 08 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 02 00 08 00 | ................................ |
0640 | 20 00 80 00 00 02 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 | ................................ |
0660 | 02 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 02 00 08 00 08 00 20 00 80 00 00 02 00 08 | ................................ |
0680 | 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 | ................................ |
06a0 | 00 02 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 02 00 08 00 | ................................ |
06c0 | 20 00 80 00 00 02 00 08 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 | ...................
[1]={frames={x=40, y=60}, time=1},
sound = "advtrains_subway_dopen",
},
close={
[-1]={frames={x=20, y=40}, time=1},
[1]={frames={x=60, y=80}, time=1},
sound = "advtrains_subway_dclose",
}
},
door_entry={-1, 1},
visual_size = {x=1, y=1},
wagon_span=2,
--collisionbox = {-1.0,-0.5,-1.8, 1.0,2.5,1.8},
collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0},
is_locomotive=true,
drops={"default:steelblock 4"},
horn_sound = "advtrains_subway_horn",
custom_on_velocity_change = function(self, velocity, old_velocity, dtime)
if not velocity or not old_velocity then return end
if old_velocity == 0 and velocity > 0 then
minetest.sound_play("advtrains_subway_depart", {object = self.object})
end
if velocity < 2 and (old_velocity >= 2 or old_velocity == velocity) and not self.sound_arrive_handle then
self.sound_arrive_handle = minetest.sound_play("advtrains_subway_arrive", {object = self.object})
elseif (velocity > old_velocity) and self.sound_arrive_handle then
minetest.sound_stop(self.sound_arrive_handle)
self.sound_arrive_handle = nil
end
if velocity > 0 and (self.sound_loop_tmr or 0)<=0 then
self.sound_loop_handle = minetest.sound_play({name="advtrains_subway_loop", gain=0.3}, {object = self.object})
self.sound_loop_tmr=3
elseif velocity>0 then
self.sound_loop_tmr = self.sound_loop_tmr - dtime
elseif velocity==0 then
if self.sound_loop_handle then
minetest.sound_stop(self.sound_loop_handle)
self.sound_loop_handle = nil
end
self.sound_loop_tmr=0
end
end,
custom_on_step = function(self, dtime, data, train)
--set line number
local line = nil
if train.line and self.line_cache ~= train.line then | ................................ |
0bc0 | 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 02 00 08 00 20 00 80 00 00 23 1a c4 04 30 b9 | ..........................#...0. |
0be0 | dd 03 a0 98 00 00 00 00 49 45 4e 44 ae 42 60 82 | ........IEND.B`. |