block_league/init.lua

112 lines
2.8 KiB
Lua
Raw Normal View History

2020-10-27 10:13:15 -07:00
block_league = {}
local S = minetest.get_translator("block_league")
2020-10-29 10:33:44 -07:00
local modpath = minetest.get_modpath("block_league")
2020-11-13 14:14:55 -08:00
local version = "0.3.0"
2020-10-27 10:13:15 -07:00
2020-10-29 10:33:44 -07:00
dofile(modpath .. "/GLOBALS.lua")
2020-10-27 10:13:15 -07:00
arena_lib.register_minigame("block_league", {
prefix = "[Block League] ",
teams = { S("orange"), S("blue") },
teams_color_overlay = { "orange", "blue"},
2020-11-05 09:38:24 -08:00
hotbar = {
slots = 4,
background_image = "bl_gui_hotbar.png"
},
2020-11-07 12:32:23 -08:00
time_mode = 2,
2020-10-27 10:13:15 -07:00
join_while_in_progress = true,
load_time = 6,
2020-10-27 10:13:15 -07:00
celebration_time = 5,
in_game_physics = {
speed = block_league.SPEED,
jump = 1.5,
gravity = 1.15,
sneak_glitch = true,
new_move = true
2020-10-27 10:13:15 -07:00
},
2020-11-06 14:35:31 -08:00
disabled_damage_types = {"fall", "punch"},
2020-10-27 10:13:15 -07:00
properties = {
-- 1 = Touchdown
-- 2 = Deathmatch
2020-11-25 14:50:28 -08:00
mode = 1,
2020-10-27 10:13:15 -07:00
score_cap = 10,
immunity_time = 6,
goal_orange = {},
2020-10-28 08:55:35 -07:00
goal_blue = {},
waiting_room_orange = {},
waiting_room_blue = {},
2020-10-28 08:55:35 -07:00
ball_spawn = {},
min_y = 0
2020-10-27 10:13:15 -07:00
},
temp_properties = {
2020-10-29 15:06:24 -07:00
weapons_disabled = true,
2020-10-27 10:13:15 -07:00
},
team_properties = {
TDs = 0,
kills = 0,
deaths = 0
},
player_properties = {
energy = 100,
weapons_magazine = {}
2020-10-27 10:13:15 -07:00
}
})
2020-10-27 10:13:15 -07:00
-- load other scripts
2020-10-29 10:33:44 -07:00
dofile(modpath .. "/achievements.lua")
dofile(modpath .. "/chatcmdbuilder.lua")
dofile(modpath .. "/commands.lua")
dofile(modpath .. "/database_manager.lua")
dofile(modpath .. "/exp_manager.lua")
dofile(modpath .. "/input_manager.lua")
dofile(modpath .. "/player_manager.lua")
dofile(modpath .. "/privs.lua")
2020-10-27 10:13:15 -07:00
-- arena_lib
2020-10-29 10:33:44 -07:00
dofile(modpath .. "/bl_arena_lib/arena_manager.lua")
2020-11-07 12:32:23 -08:00
dofile(modpath .. "/bl_arena_lib/arena_timer.lua")
2020-10-29 10:33:44 -07:00
-- debug
dofile(modpath .. "/bl_debug/debug.lua")
2020-11-22 09:35:57 -08:00
dofile(modpath .. "/bl_debug/testkit.lua")
2020-10-27 10:13:15 -07:00
-- HUD
2020-10-29 10:33:44 -07:00
dofile(modpath .. "/bl_HUD/hud_achievements.lua")
dofile(modpath .. "/bl_HUD/hud_broadcast.lua")
dofile(modpath .. "/bl_HUD/hud_bullets.lua")
dofile(modpath .. "/bl_HUD/hud_energy.lua")
2020-11-07 04:01:50 -08:00
dofile(modpath .. "/bl_HUD/hud_info_panel.lua")
dofile(modpath .. "/bl_HUD/hud_inputs.lua")
dofile(modpath .. "/bl_HUD/hud_log.lua")
2020-10-29 10:33:44 -07:00
dofile(modpath .. "/bl_HUD/hud_scoreboard.lua")
2020-10-27 10:13:15 -07:00
-- abstract weapons
2020-10-29 10:33:44 -07:00
dofile(modpath .. "/bl_weapons/bullets.lua")
dofile(modpath .. "/bl_weapons/weapons.lua")
dofile(modpath .. "/bl_weapons/weapons_utils.lua")
2020-10-27 10:13:15 -07:00
-- weapons
2020-10-29 10:33:44 -07:00
dofile(modpath .. "/bl_weapons/bouncer.lua")
dofile(modpath .. "/bl_weapons/grenade_launcher.lua")
dofile(modpath .. "/bl_weapons/pixelgun.lua")
dofile(modpath .. "/bl_weapons/rocket_launcher.lua")
dofile(modpath .. "/bl_weapons/sword.lua")
dofile(modpath .. "/bl_weapons/smg.lua")
2020-10-28 17:19:31 -07:00
-- modes
2020-10-29 10:33:44 -07:00
dofile(modpath .. "/bl_modes/game_main.lua")
dofile(modpath .. "/bl_modes/TD/ball.lua")
2020-10-27 10:13:15 -07:00
-- misc
2020-10-29 10:33:44 -07:00
dofile(modpath .. "/bl_misc/energy.lua")
dofile(modpath .. "/bl_misc/immunity.lua")
2020-10-27 10:13:15 -07:00
block_league.init_storage()
2020-11-03 07:25:41 -08:00
minetest.log("action", "[BLOCK_LEAGUE] Mod initialised, running version " .. version)