ok here it is
-- name:Sonic CD & OVA Music
-- description:SCD AND OVA IN SM64
local audio = audio_stream_load("island.mp3")
function on_warp()
if gNetworkPlayers[0].currLevelNum == LEVEL_BOB then
stop_background_music(get_current_background_music())
audio_stream_set_looping(audio, true)
audio_stream_play(audio, true, 1)
else
audio_stream_play(audio, true, 0)
end
end
hook_event(HOOK_ON_WARP, on_warp)
local audio = audio_stream_load("island.mp3")
function on_warp()
if gNetworkPlayers[0].currLevelNum == LEVEL_WF then
stop_background_music(get_current_background_music())
audio_stream_set_looping(audio, true)
audio_stream_play(audio, true, 1)
else
audio_stream_play(audio, true, 0)
end
end
hook_event(HOOK_ON_WARP, on_warp)
local audio = audio_stream_load("snow.mp3")
function on_warp()
if gNetworkPlayers[0].currLevelNum == LEVEL_CCM then
stop_background_music(get_current_background_music())
audio_stream_set_looping(audio, true)
audio_stream_play(audio, true, 1)
else
audio_stream_play(audio, true, 0)
end
end
hook_event(HOOK_ON_WARP, on_warp)
Don't double post! Use that edit button! Post automatically merged:
ok here it is
-- name:Sonic CD & OVA Music
-- description:SCD AND OVA IN SM64
local audio = audio_stream_load("island.mp3")
function on_warp()
if gNetworkPlayers[0].currLevelNum == LEVEL_BOB then
stop_background_music(get_current_background_music())
audio_stream_set_looping(audio, true)
audio_stream_play(audio, true, 1)
else
audio_stream_play(audio, true, 0)
end
end
hook_event(HOOK_ON_WARP, on_warp)
local audio = audio_stream_load("island.mp3")
function on_warp()
if gNetworkPlayers[0].currLevelNum == LEVEL_WF then
stop_background_music(get_current_background_music())
audio_stream_set_looping(audio, true)
audio_stream_play(audio, true, 1)
else
audio_stream_play(audio, true, 0)
end
end
hook_event(HOOK_ON_WARP, on_warp)
local audio = audio_stream_load("snow.mp3")
function on_warp()
if gNetworkPlayers[0].currLevelNum == LEVEL_CCM then
stop_background_music(get_current_background_music())
audio_stream_set_looping(audio, true)
audio_stream_play(audio, true, 1)
else
audio_stream_play(audio, true, 0)
end
end
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.