mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-01-03 14:11:10 +00:00
Add DX checks to Arena
This commit is contained in:
parent
c3ea12ff8c
commit
70c10e6526
21 changed files with 53 additions and 1 deletions
|
@ -1,3 +1,15 @@
|
|||
if SM64COOPDX_VERSION == nil then
|
||||
local first = false
|
||||
hook_event(HOOK_ON_LEVEL_INIT, function()
|
||||
if not first then
|
||||
first = true
|
||||
play_sound(SOUND_MENU_CAMERA_BUZZ, gMarioStates[0].marioObj.header.gfx.cameraToObject)
|
||||
djui_chat_message_create("\\#ff7f7f\\This version of Arena is not supported with sm64ex-coop\nas it uses sm64coopdx exclusive Lua functionality.\n\\#dcdcdc\\To play this mod, try out sm64coopdx at\n\\#7f7fff\\https://sm64coopdx.com")
|
||||
end
|
||||
end)
|
||||
return
|
||||
end
|
||||
|
||||
ITEM_NONE = 0
|
||||
ITEM_METAL_CAP = 1
|
||||
ITEM_HAMMER = 2
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
if SM64COOPDX_VERSION == nil then return end
|
||||
|
||||
smlua_anim_util_register_animation("luigi_run",
|
||||
0,
|
||||
0,
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
if SM64COOPDX_VERSION == nil then return end
|
||||
|
||||
ARENA_FLAG_INVALID_GLOBAL = 0xFF
|
||||
---
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
if SM64COOPDX_VERSION == nil then return end
|
||||
|
||||
gHudIcons = {
|
||||
flags = {
|
||||
[0] = { tex = TEX_FLAG, prevX = 0, prevY = 0, r = 255, g = 255, b = 255 },
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
if SM64COOPDX_VERSION == nil then return end
|
||||
|
||||
gItemHeld = {}
|
||||
|
||||
-- setup held items
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
if SM64COOPDX_VERSION == nil then return end
|
||||
|
||||
local arenaItemTimeout = 30 * 15 -- 15 seconds
|
||||
|
||||
-----------------
|
||||
|
@ -58,7 +60,7 @@ function bhv_arena_item_collect_metal_cap(obj)
|
|||
|
||||
m.flags = m.flags | MARIO_CAP_ON_HEAD
|
||||
|
||||
play_sound(SOUND_MENU_STAR_SOUND, m.marioObj.header.gfx.cameraToObject)
|
||||
play_sound(SOUND_MENU_STAR_SOUND, gGlobalSoundSource)
|
||||
play_character_sound(m, CHAR_SOUND_HERE_WE_GO)
|
||||
|
||||
play_cap_music(capMusic)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
if SM64COOPDX_VERSION == nil then return end
|
||||
|
||||
sArenaKothPoints = {}
|
||||
|
||||
function bhv_arena_koth_init(obj)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
if SM64COOPDX_VERSION == nil then return end
|
||||
|
||||
-- lighting for Rainbow Road
|
||||
|
||||
function on_level_init()
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
if SM64COOPDX_VERSION == nil then return end
|
||||
|
||||
----------------
|
||||
-- Teching v2 --
|
||||
----------------
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
if SM64COOPDX_VERSION == nil then return end
|
||||
|
||||
PACKET_ARENA_DEATH = 1
|
||||
PACKET_ARENA_HAMMER_HIT = 2
|
||||
PACKET_ARENA_RESPAWN = 3
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
if SM64COOPDX_VERSION == nil then return end
|
||||
|
||||
------------
|
||||
-- tables --
|
||||
------------
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
if SM64COOPDX_VERSION == nil then return end
|
||||
|
||||
define_custom_obj_fields({
|
||||
oArenaBobombGlobalOwner = 'u32',
|
||||
})
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
if SM64COOPDX_VERSION == nil then return end
|
||||
|
||||
define_custom_obj_fields({
|
||||
oArenaCannonBallGlobalOwner = 'u32',
|
||||
oArenaCannonBallSize = 'f32',
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
if SM64COOPDX_VERSION == nil then return end
|
||||
|
||||
define_custom_obj_fields({
|
||||
oArenaFlameGlobalOwner = 'u32',
|
||||
})
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
if SM64COOPDX_VERSION == nil then return end
|
||||
|
||||
--Scrolling Textures
|
||||
add_scroll_target(0, "arena_rainbow_dl_StarRoad_mesh_layer_5_vtx_0", 0, 539)
|
||||
add_scroll_target(1, "arena_rainbow_dl_RoadBuilding_mesh_layer_1_vtx_0", 0, 122)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
if SM64COOPDX_VERSION == nil then return end
|
||||
|
||||
local pauseMenuShouldShowMusic = true
|
||||
local pauseMenuMusicRGBA = {200,200,200,255}
|
||||
local pauseMenuShowLevelID = false
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
if SM64COOPDX_VERSION == nil then return end
|
||||
|
||||
define_custom_obj_fields({
|
||||
oArenaSparkleOwner = 'u32',
|
||||
oArenaSparkleOffsetX = 'f32',
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
if SM64COOPDX_VERSION == nil then return end
|
||||
|
||||
sArenaSpawns = {}
|
||||
|
||||
function bhv_arena_spawn_init(obj)
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
if SM64COOPDX_VERSION == nil then return end
|
||||
|
||||
define_custom_obj_fields({
|
||||
oArenaSpringSprung = 'u32',
|
||||
})
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
if SM64COOPDX_VERSION == nil then return end
|
||||
|
||||
function active_player(m)
|
||||
local np = gNetworkPlayers[m.playerIndex]
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
-- name: Arena
|
||||
-- description: A arena-shooter inspired game mode with custom weapons and levels.\nSeven gamemodes in one, three custom stages, five weapons.
|
||||
-- incompatible: gamemode arena
|
||||
-- deluxe: true
|
||||
|
||||
if SM64COOPDX_VERSION == nil then return end
|
||||
|
||||
GAME_STATE_ACTIVE = 1
|
||||
GAME_STATE_INACTIVE = 2
|
||||
|
|
Loading…
Reference in a new issue