BugfixedHL-Rebased icon indicating copy to clipboard operation
BugfixedHL-Rebased copied to clipboard

Voting Menu

Open gundogfan opened this issue 1 year ago • 2 comments

I just had this idea that could make the game a bit more intuitive for new players and less tedious for old ones. A server-side menu using vgui2 similar to the commandmenu which you can use either with the mouse or the keyboard numbers (in this case one should be able to go back to the previous menu with the keys as well, pressing Esc for example). The difference is that, being server side, it would make sure ALL players have it and that the server config fully allows all the commands/cvars in it. It could be a cfg/txt file that the server owner can freely modify.

For example:

1) Match
1. Start
2. Abort
3. Allow

2) Map
1. Crossfire
2. Stalkx
3. Stalkyard

3) Timelimit
1. 0
2. 20
3. 60
4. Other (triggers a textbox for the player to choose a value)
 
4) Fraglimit
1. 0
2. 30
3. 100
4. Other (triggers a textbox for the player to choose a value)

5) Fixes
1. Gaussfix/Selfgauss
    1. Enabled
    2. Disabled
2. RPGFix
    1. Enabled
    2. Disabled

Etc etc etc.

It would be nice as well (idk if this is possible) to show the command/cvar+value being used for each vote somewhere. Ex: placing the mouse cursor on 3) 2. should display mp_timelimit 20

gundogfan avatar Jun 01 '24 22:06 gundogfan

Do you know about metamod-p and AMXX? 🤔

Safety1st avatar Jun 01 '24 22:06 Safety1st

The AMXX command menu can do that already

  • Handled entirely server-side. Client only receives the list of menu items.
  • No mouse support but with the control #229 should be better.
  • Going back is handled on the server by sending a different menu
  • Text input is supported as well

Is there something else missing?

@Safety1st Is this what you meant? if so, you could just say that instead of asking vague questions

tmp64 avatar Jun 02 '24 02:06 tmp64