mod request

Show proof of your work so they can accept you
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

hook_event(HOOK_ON_WARP, on_warp)
I'm currently using the Dark Starkl template I used to use a code that is sometimes used for levels
Don't double post! Use that edit button! Post automatically merged:

I already finished it
 
Last edited:

Users who are viewing this thread