mirror of
https://github.com/Sokomine/travelnet.git
synced 2024-11-27 17:53:54 +01:00
use new sounds
This commit is contained in:
parent
a630657adb
commit
6a89dba20d
12
init.lua
12
init.lua
@ -747,7 +747,11 @@ travelnet.on_receive_fields = function(pos, formname, fields, player)
|
||||
|
||||
|
||||
if( travelnet.travelnet_sound_enabled ) then
|
||||
minetest.sound_play("128590_7037-lq.mp3", {pos = pos, gain = 1.0, max_hear_distance = 10,})
|
||||
if ( this_node.name == 'travelnet:elevator' ) then
|
||||
minetest.sound_play("travelnet_bell", {pos = pos, gain = 0.75, max_hear_distance = 10,});
|
||||
else
|
||||
minetest.sound_play("travelnet_travel", {pos = pos, gain = 0.75, max_hear_distance = 10,});
|
||||
end
|
||||
end
|
||||
if( travelnet.travelnet_effect_enabled ) then
|
||||
minetest.add_entity( {x=pos.x,y=pos.y+0.5,z=pos.z}, "travelnet:effect"); -- it self-destructs after 20 turns
|
||||
@ -761,7 +765,11 @@ travelnet.on_receive_fields = function(pos, formname, fields, player)
|
||||
player:moveto( target_pos, false);
|
||||
|
||||
if( travelnet.travelnet_sound_enabled ) then
|
||||
minetest.sound_play("travelnet_travel.wav", {pos = target_pos, gain = 1.0, max_hear_distance = 10,})
|
||||
if ( this_node.name == 'travelnet:elevator' ) then
|
||||
minetest.sound_play("travelnet_bell", {pos = pos, gain = 0.75, max_hear_distance = 10,});
|
||||
else
|
||||
minetest.sound_play("travelnet_travel", {pos = target_pos, gain = 0.75, max_hear_distance = 10,})
|
||||
end
|
||||
end
|
||||
if( travelnet.travelnet_effect_enabled ) then
|
||||
minetest.add_entity( {x=target_pos.x,y=target_pos.y+0.5,z=target_pos.z}, "travelnet:effect"); -- it self-destructs after 20 turns
|
||||
|
Loading…
Reference in New Issue
Block a user