2021-01-30 05:58:22 +00:00
|
|
|
|
|
|
|
sumo = {}
|
2021-02-02 22:17:04 +00:00
|
|
|
sumo.invincible = {}
|
2021-01-30 05:58:22 +00:00
|
|
|
dofile(minetest.get_modpath("sumo") .. "/settings.lua")
|
|
|
|
|
2020-12-18 07:08:55 +00:00
|
|
|
-- 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-18 07:08:55 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
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,
|
2021-02-16 14:22:44 -05:00
|
|
|
time_mode = "decremental",
|
2020-12-19 13:55:23 +01:00
|
|
|
join_while_in_progress = false,
|
2021-02-16 14:28:45 -05:00
|
|
|
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,
|
|
|
|
},
|
update controls, add running function, make HUD work better, fix timeout crash, update controls message
Timeout crash is caused by arena_lib not accepting multiple players as winners, unless part of the same team. Therefore that line is commented out, and the arena is forcibly ended. this can be reversed when arena_lib supports multiple winners
Running status is displayed in HUD, as is the game timer.
The running status can be: "running..." or "Run cooldown 5 (4,3,2,1,)"
simplified the controls for the sumo stick. Punch is shove, punch+sneak is swap places. Rightclick is vault. That is all.
Running is now a function of the minigame arena, not the stick.
Ubdated previously, added a 4 second countdown to the start of the match. Fixed in this update, the sumo stick was being given before the countdown finished. that is fixed.
Also fixed the controls chat message. It is now easier to read, being sent in several messages.
2021-01-30 05:21:28 +00:00
|
|
|
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
|
|
|
|
update controls, add running function, make HUD work better, fix timeout crash, update controls message
Timeout crash is caused by arena_lib not accepting multiple players as winners, unless part of the same team. Therefore that line is commented out, and the arena is forcibly ended. this can be reversed when arena_lib supports multiple winners
Running status is displayed in HUD, as is the game timer.
The running status can be: "running..." or "Run cooldown 5 (4,3,2,1,)"
simplified the controls for the sumo stick. Punch is shove, punch+sneak is swap places. Rightclick is vault. That is all.
Running is now a function of the minigame arena, not the stick.
Ubdated previously, added a 4 second countdown to the start of the match. Fixed in this update, the sumo stick was being given before the countdown finished. that is fixed.
Also fixed the controls chat message. It is now easier to read, being sent in several messages.
2021-01-30 05:21:28 +00:00
|
|
|
disabled_damage_types = {"punch","fall","set_hp"},
|
2021-02-02 22:17:04 +00:00
|
|
|
properties = {
|
2021-02-06 00:42:31 +00:00
|
|
|
jail_pos = {x = 0, y = 0, z = 0},
|
2021-02-02 22:17:04 +00:00
|
|
|
lives = 3,
|
2021-02-10 01:16:14 +01:00
|
|
|
|
|
|
|
|
2021-02-02 22:17:04 +00:00
|
|
|
},
|
update controls, add running function, make HUD work better, fix timeout crash, update controls message
Timeout crash is caused by arena_lib not accepting multiple players as winners, unless part of the same team. Therefore that line is commented out, and the arena is forcibly ended. this can be reversed when arena_lib supports multiple winners
Running status is displayed in HUD, as is the game timer.
The running status can be: "running..." or "Run cooldown 5 (4,3,2,1,)"
simplified the controls for the sumo stick. Punch is shove, punch+sneak is swap places. Rightclick is vault. That is all.
Running is now a function of the minigame arena, not the stick.
Ubdated previously, added a 4 second countdown to the start of the match. Fixed in this update, the sumo stick was being given before the countdown finished. that is fixed.
Also fixed the controls chat message. It is now easier to read, being sent in several messages.
2021-01-30 05:21:28 +00:00
|
|
|
temp_properties = {
|
|
|
|
speed = player_speed,
|
|
|
|
jump = player_jump,
|
|
|
|
},
|
2020-12-15 21:38:45 +00:00
|
|
|
|
update controls, add running function, make HUD work better, fix timeout crash, update controls message
Timeout crash is caused by arena_lib not accepting multiple players as winners, unless part of the same team. Therefore that line is commented out, and the arena is forcibly ended. this can be reversed when arena_lib supports multiple winners
Running status is displayed in HUD, as is the game timer.
The running status can be: "running..." or "Run cooldown 5 (4,3,2,1,)"
simplified the controls for the sumo stick. Punch is shove, punch+sneak is swap places. Rightclick is vault. That is all.
Running is now a function of the minigame arena, not the stick.
Ubdated previously, added a 4 second countdown to the start of the match. Fixed in this update, the sumo stick was being given before the countdown finished. that is fixed.
Also fixed the controls chat message. It is now easier to read, being sent in several messages.
2021-01-30 05:21:28 +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,
|
update controls, add running function, make HUD work better, fix timeout crash, update controls message
Timeout crash is caused by arena_lib not accepting multiple players as winners, unless part of the same team. Therefore that line is commented out, and the arena is forcibly ended. this can be reversed when arena_lib supports multiple winners
Running status is displayed in HUD, as is the game timer.
The running status can be: "running..." or "Run cooldown 5 (4,3,2,1,)"
simplified the controls for the sumo stick. Punch is shove, punch+sneak is swap places. Rightclick is vault. That is all.
Running is now a function of the minigame arena, not the stick.
Ubdated previously, added a 4 second countdown to the start of the match. Fixed in this update, the sumo stick was being given before the countdown finished. that is fixed.
Also fixed the controls chat message. It is now easier to read, being sent in several messages.
2021-01-30 05:21:28 +00:00
|
|
|
},
|
2020-12-19 13:55:23 +01:00
|
|
|
})
|
2020-12-15 21:38:45 +00:00
|
|
|
|
|
|
|
|
2021-01-21 15:18:56 +01: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")
|