mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-09-21 17:04:00 +00:00
Every call site of expcore.roles now uses exp_roles, and the legacy module, its config, and the glue which refreshed guis on role events are deleted. Where a file only renamed the require and the permission strings the change is mechanical; the rest: - Jail is now "give the Jail role" and unjail "take it away". The role has a higher priority than every other so holding it suppresses them, which is what stashing and restoring the roles was for. - The command role authority derives exp_scenario.command.<name> from the command name, and the role parsers use player_outranks rather than comparing indexes with their own root check. - The admin and spectator triggers, and the gui refresh on role changes, live in exp_scenario/control/roles.lua; the system commands trigger stays with the command authority. - The player list warn button is keyed on create_warning, the permission the command behind it already required, and report on create_report. Both were keyed on names no role held, so only root ever saw them. - The warps and tasks configs say exp_roles where they said expcore.roles. - The role tables the readme and player list read are replaced by get_player_names and get_roles. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
48 lines
2.7 KiB
Lua
48 lines
2.7 KiB
Lua
--- This file controls what will show in each section of the rocket info gui
|
|
-- @config Rockets
|
|
|
|
return {
|
|
stats = { --- @setting stats The data that will show in the stats section
|
|
show_stats = true, --- @setting show_stats false will hide this section all together
|
|
show_first_rocket = true, --- @setting show_first_rocket false will not show when the first rocket was launched
|
|
show_last_rocket = true, --- @setting show_last_rocket false will not show when the last rocket was launched
|
|
show_fastest_rocket = true, --- @setting show_fastest_rocket false will not show the time taken for the fastest rocket
|
|
show_total_rockets = true, --- @setting show_total_rockets false will not show the total number of rockets launched
|
|
show_game_avg = true, --- @setting show_game_avg false will hide the avg across the entire map time
|
|
rolling_avg = { --- @setting rolling_avg each number will be one statistic; 5 means the avg time taken for the last 5 rockets
|
|
5, 10, 25,
|
|
},
|
|
},
|
|
milestones = { --- @setting milestones each number will be one statistic; 5 means the time that the 5th rocket was launched
|
|
show_milestones = true, --- @setting show_milestones false will hide this section all together
|
|
1,
|
|
2,
|
|
5,
|
|
10,
|
|
20,
|
|
50,
|
|
100,
|
|
200,
|
|
500,
|
|
1000,
|
|
1500,
|
|
2000,
|
|
2500,
|
|
3000,
|
|
3500,
|
|
4000,
|
|
4500,
|
|
5000,
|
|
},
|
|
progress = { --- @setting progress The data and buttons in the build progress section
|
|
show_progress = true, --- @setting show_progress false will hide this section altogether
|
|
allow_zoom_to_map = true, --- @setting allow_zoom_to_map false will disable the zoom to map feature
|
|
allow_remote_launch = true, --- @setting allow_remote_launch false removes the remote launch button for all players
|
|
remote_launch_admins_only = false, --- @setting remote_launch_admins_only true will remove the remote launch button for all non (game) admins
|
|
remote_launch_role_permission = "exp_scenario.gui.rocket_info.remote_launch", --- @setting remote_launch_role_permission value used by custom permission system to allow or disallow the button
|
|
allow_toggle_active = true, --- @setting allow_toggle_active false removes the remote toggle auto launch button for all players
|
|
toggle_active_admins_only = false, --- @setting toggle_active_admins_only true will remove the toggle auto launch button for all non (game) admins
|
|
toggle_active_role_permission = "exp_scenario.gui.rocket_info.toggle_active", --- @setting toggle_active_role_permission value used by custom permission system to allow or disallow the button
|
|
},
|
|
}
|