New sounds for teleport/trash

This commit is contained in:
Jean-Patrick Guerrero
2021-11-08 18:46:45 +01:00
parent af2c1304ac
commit c51da4a20b
6 changed files with 6 additions and 1 deletions

View File

@ -350,6 +350,9 @@ local function get_stack(player, stack)
end
local function safe_teleport(player, pos)
local name = player:get_player_name()
core.sound_play("i3_teleport", {to_player = name, gain = 1.0}, true)
pos.y = pos.y + 0.5
local vel = player:get_velocity()
player:add_velocity(vector.multiply(vel, -1))