Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(config/queue): use shared config string for server name #326

Merged
merged 1 commit into from
Jan 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions config/queue.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
local serverName = require 'config.shared'.serverName

return {
---Amount of seconds to wait before removing a player from the queue after disconnecting while waiting.
timeoutSeconds = 30,
Expand Down Expand Up @@ -54,10 +56,9 @@ return {
local size = params.totalQueueSize
local displayTime = params.displayTime

local serverName = GetConvar('sv_projectName', GetConvar('sv_hostname', 'Server'))
local progressAmount = 7 -- amount of progress shown between the queue & server

local playerColumn = pos == 1 and progressAmount or (progressAmount - math.ceil(pos / (size / progressAmount)) + 1)

local progressTextReplacements = {
[1] = {
text = 'Queue',
Expand Down
Loading