diff --git a/Client/Index.lua b/Client/Index.lua index e94dcf6..2c71934 100644 --- a/Client/Index.lua +++ b/Client/Index.lua @@ -20,7 +20,7 @@ Package.Subscribe("Load", function() end) -- Toggles the Scoreboard -Client.Subscribe("KeyUp", function(key_name) +Input.Subscribe("KeyUp", function(key_name) if (key_name == "Tab") then if (Deathmatch.match_state == MATCH_STATES.POST_TIME) then return end @@ -30,7 +30,7 @@ Client.Subscribe("KeyUp", function(key_name) end) -- Toggles the Scoreboard -Client.Subscribe("KeyDown", function(key_name) +Input.Subscribe("KeyDown", function(key_name) if (key_name == "Tab") then if (Deathmatch.match_state == MATCH_STATES.POST_TIME) then return end diff --git a/Package.toml b/Package.toml index ddbb01c..f069bde 100644 --- a/Package.toml +++ b/Package.toml @@ -1,24 +1,37 @@ -# package configurations -[package] - # package name - name = "Deathmatch" +# vault configurations +[meta] + # friendly name + title = "Deathmatch" # contributors - author = "nanos™" + author = "nanos™" # version - version = "1.4.0" - # image URL - image = "https://i.imgur.com/vW4rOb3.jpg" - # package type: 'script' (normal package), 'game-mode' (unique package - can only load one at a time) or 'loading-screen' (special package loaded in loading screen) - type = "script" - # whether to force the custom map Script to do not load - force_no_map_script = false + version = "1.5.0" + +# game-mode configurations +[game_mode] + # whether to force the custom map package to do not load + force_no_map_package = false # auto destroy all entities spawned by this package when it unloads - auto_cleanup = true + auto_cleanup = true + # whether to load all level entities on client - only enable it if your package needs to use level static meshes entities + load_level_entities = false + # the game version (major.minor) at the time this package was created, for granting compatibility between breaking changes + compatibility_version = "1.45" # packages requirements packages_requirements = [ - + ] # asset packs requirements assets_requirements = [ - "unreal-tournament-announcer", + "unreal-tournament-announcer", ] + # compatible maps - maps to be highlighted when starting a new game through main menu + compatible_maps = [ + + ] + +# game-mode custom settings configurations +# those settings can be configured through new game menu, Config.toml and server command line +# and can be accessed through Server.GetCustomSettings() method from any package +[custom_settings] + # my_toggle_example = { label = "awesome toggle", type = "boolean", description = "press this!", default = true } diff --git a/Server/Index.lua b/Server/Index.lua index b6d422b..ddb7149 100644 --- a/Server/Index.lua +++ b/Server/Index.lua @@ -521,7 +521,7 @@ function UpdateMatchState(new_state) if (new_state == MATCH_STATES.WARM_UP) then Deathmatch.remaining_time = DeathmatchSettings.warmup_time - Package.Log("[Deathmatch] Warm-up!") + Console.Log("[Deathmatch] Warm-up!") Server.BroadcastChatMessage("Warm-up!") CleanUp() @@ -531,7 +531,7 @@ function UpdateMatchState(new_state) Events.BroadcastRemote("SpawnSound", Vector(), "unreal-tournament-announcer::A_Prepare", true, 1, 1) - Package.Log("[Deathmatch] Preparing!") + Console.Log("[Deathmatch] Preparing!") Server.BroadcastChatMessage("Preparing!") CleanUp() @@ -548,7 +548,7 @@ function UpdateMatchState(new_state) Events.BroadcastRemote("SpawnSound", Vector(), "unreal-tournament-announcer::A_Proceed", true, 1, 1) - Package.Log("[Deathmatch] Round started!") + Console.Log("[Deathmatch] Round started!") Server.BroadcastChatMessage("Round Started!") -- Unfreeze all characters @@ -591,7 +591,7 @@ function UpdateMatchState(new_state) Server.BroadcastChatMessage("=============================") - Package.Log("[Deathmatch] Post time!") + Console.Log("[Deathmatch] Post time!") Server.BroadcastChatMessage("Post time!") end