Mode | Name | Size | |
-rw-r--r-- | testnodes_1.png | 107 | logplain |
-rw-r--r-- | testnodes_1g.png | 104 | logplain |
-rw-r--r-- | testnodes_1w.png | 121 | logplain |
-rw-r--r-- | testnodes_1wg.png | 122 | logplain |
-rw-r--r-- | testnodes_2.png | 112 | logplain |
-rw-r--r-- | testnodes_2g.png | 110 | logplain |
-rw-r--r-- | testnodes_2w.png | 134 | logplain |
-rw-r--r-- | testnodes_2wg.png | 135 | logplain |
-rw-r--r-- | testnodes_3.png | 105 | logplain |
-rw-r--r-- | testnodes_3g.png | 103 | logplain |
-rw-r--r-- | testnodes_3w.png | 112 | logplain |
-rw-r--r-- | testnodes_3wg.png | 112 | logplain |
-rw-r--r-- | testnodes_4.png | 97 | logplain |
-rw-r--r-- | testnodes_4g.png | 95 | logplain |
-rw-r--r-- | testnodes_4w.png | 128 | logplain |
-rw-r--r-- | testnodes_4wg.png | 128 | logplain |
-rw-r--r-- | testnodes_5.png | 98 | logplain |
-rw-r--r-- | testnodes_5g.png | 98 | logplain |
-rw-r--r-- | testnodes_5w.png | 117 | logplain |
-rw-r--r-- | testnodes_5wg.png | 117 | logplain |
-rw-r--r-- | testnodes_6.png | 100 | logplain |
-rw-r--r-- | testnodes_6g.png | 98 | logplain |
-rw-r--r-- | testnodes_6w.png | 117 | logplain |
-rw-r--r-- | testnodes_6wg.png | 117 | logplain |
-rw-r--r-- | testnodes_airlike.png | 92 | logplain |
-rw-r--r-- | testnodes_allfaces.png | 150 | logplain |
-rw-r--r-- | testnodes_allfaces_optional.png | 150 | logplain |
-rw-r--r-- | testnodes_alpha.png | 96 | logplain |
-rw-r--r-- | testnodes_alpha128.png | 136 | logplain |
-rw-r--r-- | testnodes_alpha191.png | 132 | logplain |
-rw-r--r-- | testnodes_alpha64.png | 134 | logplain |
-rw-r--r-- | testnodes_anim.png | 274 | logplain |
-rw-r--r-- | testnodes_attached_bottom.png | 86 | logplain |
-rw-r--r-- | testnodes_attached_side.png | 98 | logplain |
-rw-r--r-- | testnodes_attached_top.png | 87 | logplain |
-rw-r--r-- | testnodes_attachedw_bottom.png | 130 | logplain |
-rw-r--r-- | testnodes_attachedw_side.png | 122 | logplain |
-rw-r--r-- | testnodes_attachedw_top.png | 109 | logplain |
-rw-r--r-- | testnodes_bouncy.png | 106 | logplain |
-rw-r--r-- | testnodes_buildable_to.png | 89 | logplain |
-rw-r--r-- | testnodes_climbable_nojump_side.png | 164 | logplain |
-rw-r--r-- | testnodes_climbable_side.png | 150 | logplain |
-rw-r--r-- | testnodes_damage.png | 108 | logplain |
-rw-r--r-- | testnodes_damage_neg.png | 121 | logplain |
-rw-r--r-- | testnodes_drowning.png | 127 | logplain |
-rw-r--r-- | testnodes_fall_damage_minus.png | 116 | logplain |
-rw-r--r-- | testnodes_fall_damage_plus.png | 117 | logplain |
-rw-r--r-- | testnodes_fencelike.png | 90 | logplain |
-rw-r--r-- | testnodes_firelike.png | 149 | logplain |
-rw-r--r-- | testnodes_glasslike.png | 117 | logplain |
-rw-r--r-- | testnodes_glasslike_detail.png | 167 | logplain |
-rw-r--r-- | testnodes_glasslike_framed.png | 88 | logplain |
-rw-r--r-- | testnodes_glasslike_framed2.png | 118 | logplain |
-rw-r--r-- | testnodes_glasslike_framed_optional.png | 128 | logplain |
-rw-r--r-- | testnodes_glasslikeliquid.png | 122 | logplain |
-rw-r--r-- | testnodes_height_pyramid.png | 90 | logplain |
-rw-r--r-- | testnodes_height_pyramid_normal.png | 239 | logplain |
-rw-r--r-- | testnodes_light.png | 117 | logplain |
-rw-r--r-- | testnodes_light_1.png | 158 | logplain |
-rw-r--r-- | testnodes_light_10.png | 147 | logplain |
-rw-r--r-- | testnodes_light_11.png | 149 | logplain |
-rw-r--r-- | testnodes_light_12.png | 138 | logplain |
-rw-r--r-- | testnodes_light_13.png | 137 | logplain |
-rw-r--r-- | testnodes_light_14.png | 132 | logplain |
-rw-r--r-- | testnodes_light_2.png | 152 | logplain |
-rw-r--r-- | testnodes_light_3.png | 150 | logplain |
-rw-r--r-- | testnodes_light_4.png | 157 | logplain |
-rw-r--r-- | testnodes_light_5.png | 150 | logplain |
-rw-r--r-- | testnodes_light_6.png | 154 | logplain |
-rw-r--r-- | testnodes_light_7.png | 146 | logplain |
-rw-r--r-- | testnodes_light_8.png | 139 | logplain |
-rw-r--r-- | testnodes_light_9.png | 149 | logplain |
-rw-r--r-- | testnodes_line_crossing.png | 130 | logplain |
-rw-r--r-- | testnodes_line_curved.png | 123 | logplain |
-rw-r--r-- | testnodes_line_straight.png | 115 | logplain |
-rw-r--r-- | testnodes_line_t_junction.png | 128 | logplain |
-rw-r--r-- | testnodes_liquid.png | 95 | logplain |
-rw-r--r-- | testnodes_liquidflowing.png | 132 | logplain |
-rw-r--r-- | testnodes_liquidflowing_r0.png | 162 | logplain |
-rw-r--r-- | testnodes_liquidflowing_r1.png | 160 | logplain |
-rw-r--r-- | testnodes_liquidflowing_r2.png | 154 | logplain |
-rw-r--r-- | testnodes_liquidflowing_r3.png | 155 | logplain |
-rw-r--r-- | testnodes_liquidflowing_r4.png | 154 | logplain |
-rw-r--r-- | testnodes_liquidflowing_r5.png | 155 | logplain |
-rw-r--r-- | testnodes_liquidflowing_r6.png | 155 | logplain |
-rw-r--r-- | testnodes_liquidflowing_r7.png | 157 | logplain |
-rw-r--r-- | testnodes_liquidflowing_r8.png | 152 | logplain |
-rw-r--r-- | testnodes_liquidsource.png | 128 | logplain |
-rw-r--r-- | testnodes_liquidsource_r0.png | 149 | logplain |
-rw-r--r-- | testnodes_liquidsource_r1.png | 152 | logplain |
-rw-r--r-- | testnodes_liquidsource_r2.png | 152 | logplain |
-rw-r--r-- | testnodes_liquidsource_r3.png | 152 | logplain |
-rw-r--r-- | testnodes_liquidsource_r4.png | 155 | logplain |
-rw-r--r-- | testnodes_liquidsource_r5.png | 150 | logplain |
-rw-r--r-- | testnodes_liquidsource_r6.png | 148 | logplain |
-rw-r--r-- | testnodes_liquidsource_r7.png | 154 | logplain |
-rw-r--r-- | testnodes_liquidsource_r8.png | 148 | logplain |
-rw-r--r-- | testnodes_mesh_stripes.png | 150 | logplain |
-rw-r--r-- | testnodes_mesh_stripes2.png | 144 | logplain |
-rw-r--r-- | testnodes_mesh_stripes3.png | 85 | logplain |
-rw-r--r-- | testnodes_mesh_stripes4.png | 93 | logplain |
-rw-r--r-- | testnodes_node.png | 89 | logplain |
-rw-r--r-- | testnodes_node_falling.png | 112 | logplain |
-rw-r--r-- | testnodes_nodebox.png | 112 | logplain |
-rw-r--r-- | testnodes_nojump_side.png | 94 | logplain |
-rw-r--r-- | 176 | logplain |
-rw-r--r-- | testnodes_plantlike_leveled.png | 163 | logplain |
-rw-r--r-- | testnodes_plantlike_meshoptions.png | 164 | logplain |
-rw-r--r-- | testnodes_plantlike_rooted.png | 182 | log
--regular driver stand controls
advtrains.on_control_change(pc, self:train(), data.wagon_flipped)
--bordcom
if pc.sneak and pc.jump then
self:show_bordcom(data.seatp[seatno])
end
--sound horn when required
if self.horn_sound and pc.aux1 and not pc.sneak and not self.horn_handle then
self.horn_handle = minetest.sound_play(self.horn_sound, {
object = self.object,
gain = 1.0, -- default
max_hear_distance = 128, -- default, uses an euclidean metric
loop = true,
})
elseif not pc.aux1 and self.horn_handle then
minetest.sound_stop(self.horn_handle)
self.horn_handle = nil
end
else
-- If on a passenger seat and doors are open, get off when W or D pressed.
local pass = data.seatp[seatno] and minetest.get_player_by_name(data.seatp[seatno])
if pass and self:train().door_open~=0 then
local pc=pass:get_player_control()
if pc.up or pc.down then
self:get_off(seatno)
end
end
end
if pc.aux1 and pc.sneak then
self:get_off(seatno)
end
end
end
--check infotext
local outside=train.text_outside or ""
if setting_show_ids then
outside = outside .. "\nT:" .. data.train_id .. " W:" .. self.id .. " O:" .. data.owner
end
--show off-track information in outside text instead of notifying the whole server about this
if train.off_track then
outside = outside .."\n!!! Train off track !!!"
end
if self.infotext_cache~=outside then
self.object:set_properties({infotext=outside})
self.infotext_cache=outside
end
local fct=data.wagon_flipped and -1 or 1
--door animation
if self.doors then
if (self.door_anim_timer or 0)<=0 then
local dstate = (train.door_open or 0) * fct
if dstate ~= self.door_state then
local at
--meaning of the train.door_open field:
-- -1: left doors (rel. to train orientation)
-- 0: closed
-- 1: right doors
--this code produces the following behavior:
-- if changed from 0 to +-1, play open anim. if changed from +-1 to 0, play close.
-- if changed from +-1 to -+1, first close and set 0, then it will detect state change again and run open.
if self.door_state == 0 then
if self.doors.open.sound then minetest.sound_play(self.doors.open.sound, {object = self.object}) end
at=selflogplain |
-rw-r--r-- | testnodes_rail2_t_junction.png | 254 | logplain |
-rw-r--r-- | testnodes_rail_crossing.png | 151 | logplain |
-rw-r--r-- | testnodes_rail_curved.png | 164 | logplain |
-rw-r--r-- | testnodes_rail_straight.png | 133 | logplain |
-rw-r--r-- | |