block_league/init.lua

101 lines
2.6 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-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] ",
2020-10-27 10:13:15 -07:00
hub_spawn_point = { x = 8, y = 6, z = 4 },
teams = { S("red"), S("blue") },
teams_color_overlay = { "red", "blue"},
2020-10-27 10:13:15 -07:00
join_while_in_progress = true,
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
},
disabled_damage_types = {"fall"},
2020-10-27 10:13:15 -07:00
properties = {
-- 1 = Touchdown
-- 2 = Deathmatch
mod = 1,
score_cap = 10,
max_energy = 100,
immunity_time = 6,
2020-10-28 08:55:35 -07:00
goal_red = {},
goal_blue = {},
ball_spawn = {},
2020-10-27 10:13:15 -07:00
min_y = 0,
},
temp_properties = {
weapons_disabled = false,
},
team_properties = {
TDs = 0,
kills = 0,
deaths = 0
},
player_properties = {
energy = 100,
weapons_reload = {},
}
})
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")
-- debug
dofile(modpath .. "/bl_debug/debug.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")
dofile(modpath .. "/bl_HUD/hud_scoreboard.lua")
dofile(modpath .. "/bl_HUD/hud_teams_score.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.lua")
dofile(modpath .. "/bl_weapons/grenade_launcher.lua")
dofile(modpath .. "/bl_weapons/pixelgun.lua")
dofile(modpath .. "/bl_weapons/pixelgun_bullet.lua")
dofile(modpath .. "/bl_weapons/rocket.lua")
dofile(modpath .. "/bl_weapons/rocket_launcher.lua")
dofile(modpath .. "/bl_weapons/sword.lua")
dofile(modpath .. "/bl_weapons/smg.lua")
dofile(modpath .. "/bl_weapons/smg_bullet.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()