Welcome, Guest. Please login or register.
Did you miss your activation email?

November 18, 2019, 02:41:18 AM
Show unread posts since last visit.

Home | Help | Search | Login | Register

Pages: [1]
Author Topic: Feature Request: Server-controlled HUD Elements  (Read 1571 times)
Map Committee

Posts: 576

« on: September 28, 2018, 08:36:06 AM »

Feature Request: Server-controlled HUD Elements

I am going to describe the ideal version of the feature. However, multiple boxes is not a necessity.
The ability to create HUD elements that can be toggled in and out server side, with support for new lines and screen location.

The command could contain four arguments:

▪ Unique name identifier
▪ X location (to be normalised)
▪ Y location (to be normalised)
▪ String (with support for \n and colour characters)


Ideal commands:

createinfobox <identifier> <x location> <y location> <custom string>

toggleinfobox <identifier> <state>

createinfobox "box1" 0 0 "Waiting for all players.\n---------------\nTeam 1 (3/3)\nPlayer1\nPlayer2\nPlayer3\nTeam 2 (2/3)\nPlayer1\nPlayer2

toggleinfobox "box1" 1



The only server command I have found in dp that seems similar to that is called "cprint." However, it is not very useful unfortunately because it only allows one line of text and it is not very readable. It prints text on the center of everyone's screen with no background and the message rapidly disappears when replaced by center prints coming from in-game such as the "Match starting in..." messages.

The commands would allow server owners to create custom HUD elements of their own that display information. This would create many possibilities for making custom gamemode systems that are friendly for new players, so they don't have to keep opening their console to read messages from the server.

In my case, I can use it for to produce features for my upcoming system that will make it much more accessible.

Some examples of features this would make possible:

  • ▪ Player rank list.
  • ▪ In-game clan leaderboard at the end of a match
  • ▪ Current status of who the server is waiting for to start the match
  • ▪ Current map voting pool

Posts: 18659

« Reply #1 on: September 28, 2018, 12:21:51 PM »

Hmm... I'll have to see how feasible this is.  I think we may have maxed out the number of HUD elements available in the Quake2 protocol.
Pages: [1]
Show unread posts since last visit.
Jump to:  

Powered by SMF 1.1.20 | SMF © 2013, Simple Machines