sumo-cd2025/init.lua

62 lines
1.7 KiB
Lua
Raw Normal View History

2021-01-30 05:58:22 +00:00
sumo = {}
sumo.invincible = {}
2021-01-30 05:58:22 +00:00
dofile(minetest.get_modpath("sumo") .. "/settings.lua")
-- local value settings
2021-01-30 05:58:22 +00:00
local player_speed = sumo.player_speed -- when in the minigame, though players will be a little faster when running
local player_jump = sumo.player_jump -- when in the minigame, though players can jump a little higher when running
2020-12-19 13:55:23 +01:00
arena_lib.register_minigame("sumo", {
2022-06-28 19:28:02 -04:00
name = "Sumo",
icon = "magiccompass_sumo.png",
2020-12-19 13:55:23 +01:00
prefix = "[Sumo] ",
show_minimap = false,
time_mode = "decremental",
2020-12-19 13:55:23 +01:00
join_while_in_progress = false,
spectate_mode = true,
2020-12-19 13:55:23 +01:00
keep_inventory = false,
in_game_physics = {
speed = player_speed,
jump = player_jump,
sneak = false,
},
load_time = 4,
2020-12-19 13:55:23 +01:00
hotbar = {
slots = 1,
background_image = "sumo_gui_hotbar.png"
},
2020-12-15 21:38:45 +00:00
disabled_damage_types = {"punch","fall","set_hp"},
properties = {
2021-02-06 00:42:31 +00:00
jail_pos = {x = 0, y = 0, z = 0},
lives = 3,
},
temp_properties = {
speed = player_speed,
jump = player_jump,
},
2020-12-15 21:38:45 +00:00
player_properties = {
run_start_time = 0.0,
running = false,
run_timeout = 3, --players can't run for 3 sec after match start
2021-01-30 06:30:46 +00:00
lives = 3,
},
2020-12-19 13:55:23 +01:00
})
2020-12-15 21:38:45 +00:00
if not minetest.get_modpath("lib_chatcmdbuilder") then
dofile(minetest.get_modpath("sumo") .. "/chatcmdbuilder.lua")
end
2020-12-19 13:55:23 +01:00
dofile(minetest.get_modpath("sumo") .. "/commands.lua")
dofile(minetest.get_modpath("sumo") .. "/items.lua")
dofile(minetest.get_modpath("sumo") .. "/minigame_manager.lua")
dofile(minetest.get_modpath("sumo") .. "/nodes.lua")
dofile(minetest.get_modpath("sumo") .. "/privs.lua")