ding sound

This commit is contained in:
chmodsayshello 2022-10-06 22:12:37 +02:00
parent e7a690da3e
commit 385f0e60ca
3 changed files with 14 additions and 0 deletions

6
CREDITS.md Normal file
View File

@ -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]

BIN
sounds/ding.ogg Normal file

Binary file not shown.

View File

@ -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