Fix README a little and add piston sounds by suzenako, contributed by jordan4ibanez.

This commit is contained in:
Anthony Zhang 2013-06-05 16:01:11 -04:00
parent afad592783
commit 367a41416b
4 changed files with 25 additions and 13 deletions

View File

@ -52,17 +52,19 @@ Who wrote it anyways?
These awesome people made Mesecons possible! These awesome people made Mesecons possible!
| Contributor | Contribution | | Contributor | Contribution |
| --------------- | ---------------------------------- | | --------------- | -------------------------------- |
| Jat15 | Various tweaks. | | Jat15 | Various tweaks. |
| Jeija | **Main developer! Everything.** | | Jeija | **Main developer! Everything.** |
| Jordach | Noteblock sounds. | | Jordach | Noteblock sounds. |
| khonkhortistan | Coding, recipes, textures. | | khonkhortistan | Code, recipes, textures. |
| Kotolegokot | Nodeboxes for items. | | Kotolegokot | Nodeboxes for items. |
| minerd247 | Textures. | | minerd247 | Textures. |
| Nore/Novatux | Code. |
| RealBadAngel | Fixes, improvements. | | RealBadAngel | Fixes, improvements. |
| sfan5 | Coding, recipes, textures. | | sfan5 | Code, recipes, textures. |
| Uberi/Temperest | Coding, textures, documentation. | | suzenako | Piston sounds. |
| VanessaE | Coding, recipes, textures, design. | | Uberi/Temperest | Code, textures, documentation. |
| VanessaE | Code, recipes, textures, design. |
| Whiskers75 | Logic gates implementation. | | Whiskers75 | Logic gates implementation. |
There are also a whole bunch of other people helping with everything from code to testing and feedback. Mesecons would also not be possible without their help! There are also a whole bunch of other people helping with everything from code to testing and feedback. Mesecons would also not be possible without their help!

View File

@ -63,6 +63,11 @@ local piston_remove_pusher = function (pos, node)
if pushername == pistonspec.pusher then --make sure there actually is a pusher (for compatibility reasons mainly) if pushername == pistonspec.pusher then --make sure there actually is a pusher (for compatibility reasons mainly)
minetest.env:remove_node(pusherpos) minetest.env:remove_node(pusherpos)
minetest.sound_play("piston_retract", {
pos = pos,
max_hear_distance = 20,
gain = 0.3,
})
nodeupdate(pusherpos) nodeupdate(pusherpos)
end end
end end
@ -76,6 +81,11 @@ local piston_on = function (pos, node)
if success then if success then
minetest.env:add_node(pos, {param2 = node.param2, name = pistonspec.onname}) minetest.env:add_node(pos, {param2 = node.param2, name = pistonspec.onname})
minetest.env:add_node(np, {param2 = node.param2, name = pistonspec.pusher}) minetest.env:add_node(np, {param2 = node.param2, name = pistonspec.pusher})
minetest.sound_play("piston_extend", {
pos = pos,
max_hear_distance = 20,
gain = 0.3,
})
mesecon:mvps_process_stack (stack) mesecon:mvps_process_stack (stack)
mesecon:mvps_move_objects (np, dir, oldstack) mesecon:mvps_move_objects (np, dir, oldstack)
end end

Binary file not shown.

Binary file not shown.