Update Arena again

This commit is contained in:
Agent X 2024-03-13 16:32:14 -04:00
parent fa48726215
commit ec93214cd1
4 changed files with 29 additions and 7 deletions

Binary file not shown.

View File

@ -0,0 +1,26 @@
local E_MODEL_SKYBOX_BLIMPCITY = smlua_model_util_get_id("skybox_blimpcity_geo")
local function bhv_skybox_init(o)
o.oFlags = OBJ_FLAG_UPDATE_GFX_POS_AND_ANGLE
o.header.gfx.skipInViewCheck = true
obj_scale(o, 10.0)
end
local function bhv_skybox_loop(o)
vec3f_to_object_pos(o, gLakituState.pos)
end
id_bhvSkybox = hook_behavior(nil, OBJ_LIST_LEVEL, false, bhv_skybox_init, bhv_skybox_loop)
local function on_level_init()
if gNetworkPlayers[0].currLevelNum == LEVEL_ARENA_CITY then
spawn_non_sync_object(
id_bhvSkybox,
E_MODEL_SKYBOX_BLIMPCITY,
gLakituState.pos.x, gLakituState.pos.y, gLakituState.pos.z,
nil
)
end
end
hook_event(HOOK_ON_LEVEL_INIT, on_level_init)

View File

@ -9,13 +9,9 @@ local audioMain = nil --Used for the main audio
local audioSpecial = nil --Used for things like cap music local audioSpecial = nil --Used for things like cap music
local audioCurSeq = nil local audioCurSeq = nil
local bgms = { local bgms = {
[50] = {audio='arena.ogg', loopEnd = 112.583, loopStart = 19.928, volume = -5, name="Mako Reactor - Final Fantasy 7" }, --B1 [55] = {audio='snow.ogg', loopEnd = 500, loopStart = 0, volume = -5, name="Frosty Citadel - Sonic Gaiden" }, -- Spire
[52] = {audio='arena.ogg', loopEnd = 112.583, loopStart = 19.928, volume = -5, name="Mako Reactor - Final Fantasy 7" }, --B1 [56] = {audio='rainbow.ogg', loopEnd = 148.657, loopStart = 12.406, volume = -5, name="Rainbow Road - Coop Deluxe" }, -- Rainbow
[53] = {audio='arena.ogg', loopEnd = 112.583, loopStart = 19.928, volume = -5, name="Mako Reactor - Final Fantasy 7" }, --B1 [57] = {audio='city.ogg', loopEnd = 500, loopStart = 06.975, volume = -5, name="City Outskirts - Sonic Megamix" } -- City
[54] = {audio='arena.ogg', loopEnd = 112.583, loopStart = 19.928, volume = -5, name="Mako Reactor - Final Fantasy 7" }, --
[55] = {audio='snow.ogg', loopEnd = 500, loopStart = 0, volume = -5, name="Frosty Citadel - Sonic Gaiden" }, --B1
[56] = {audio='rainbow.ogg', loopEnd = 148.657, loopStart = 12.406, volume = -5, name="Rainbow Road - Coop Deluxe" }, --B1
[57] = {audio='city.ogg', loopEnd = 500, loopStart = 06.975, volume = -5, name="City Outskirts - Sonic Megamix"}, --B2
} }
-- disable cap music -- disable cap music

Binary file not shown.