diff --git a/CREDITS.md b/CREDITS.md new file mode 100644 index 0000000..dc4756e --- /dev/null +++ b/CREDITS.md @@ -0,0 +1,6 @@ +- chmodsayshello (creator of mod) +- debiankaios (testing and some suggestions) +-andersmmg ([ding sound](https://freesound.org/people/andersmmg/sounds/523422/ "ding sound")) | Licsense CC BY 4.0 +-zughy (creator of arenalib) +-eidy (creator of the walkover mod) +-[many more] diff --git a/sounds/ding.ogg b/sounds/ding.ogg new file mode 100644 index 0000000..a496ee5 Binary files /dev/null and b/sounds/ding.ogg differ diff --git a/the_bridge.lua b/the_bridge.lua index ae2e383..68972a1 100644 --- a/the_bridge.lua +++ b/the_bridge.lua @@ -22,6 +22,10 @@ function after_goal(arena) --global because its called once outside of this file player:set_hp(20) player:set_pos(arena_lib.get_random_spawner(arena, team_id_red)) update_huds(arena,player) + minetest.sound_play("ding", { + to_player = player:get_player_name(), + gain = 2.0, + }) end for player_index in ipairs(players_team_blue) do @@ -30,6 +34,10 @@ function after_goal(arena) --global because its called once outside of this file player:set_hp(20) player:set_pos(arena_lib.get_random_spawner(arena, team_id_blue)) update_huds(arena,player) + minetest.sound_play("ding", { + to_player = player:get_player_name(), + gain = 2.0, + }) end end