NeotokyoRebuild / neo

NEOTOKYO Rebuild - Source SDK 2013 mod of NEOTOKYO
https://neotokyorebuild.github.io/
Other
15 stars 12 forks source link

End of match mapvote screen lets players visually pick out a map #512

Open blaberry opened 1 month ago

blaberry commented 1 month ago

This would be something like the grid in insurgency or squad, where you get a square of say 9 maps and 20 seconds to pick one, then the one with most votes gets played.

Gate behind a sv_mapvote flag or something like that

No visual design exists yet. Should probably borrow visual elements from gun selection menu.

Also need to figure how to bake in previews into .BSPs, but that's probably not too hard. Or just have an assets folder with preview images. Yeah, that's probably better tbh.

Rainyan commented 1 month ago

Moving my comment from Discord to here:

In terms of modularity, it'd probably be neatest if we had a way to invoke these "modern looking" menus agnostic of context. So they could also be hooked up for the inevitable SM plugins to use. And the styling could be used for other things like vote-to-kick panels, killer info panels (if we're doing this native) etc. Possibly related: https://sm.alliedmods.net/new-api/menus/MenuStyle

As for storing the preview images, I think we're better off storing them separately from the BSP, so we don't need to maintain a custom VBSP binary, nor create some kind of separate tool that mappers had to learn. Instead, we could load a VTF image for example from resource/maps path, based on the BSP filename. And mappers could still optionally pack the image in their BSP using tools like BSPZIP, for single-file distribution.