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

[GAME] load background map every time the main menu is loaded, not just startup #335

Open
Fennecai opened this issue Dec 5, 2024 · 0 comments
Labels
Enhancement New feature or request

Comments

@Fennecai
Copy link

Fennecai commented Dec 5, 2024

Is your feature request related to a problem? Please describe.

in source mods that are played in a nonlinear fashion (i.e, a collection of unrelated maps), and really any source mod, disconnecting to the main menu loads the menu, but does not load the background map. this happens regaurdless of the method used to do so...be it literally a point_clientcommand with disconnect, or with startupmenu force, or using game_end, etc. they all have the same problem, in that the menu background map doesnt end up loading, only the menu itself with the static background image behind it.

Describe the solution you'd like

although i dont know how hl2's source code works in specific, generally i think what you would do is just insert a call to whatever function loads the background, at every location where the menu is started up. and not just the only place it currently gets called, which is when the game first starts up.

Describe alternatives you've considered

another possible solution for mod-makers would be to have game_end also load the menu background map, or alternatively, add a concommand that can be sent via point_clientcommand that specifically loads the main menu and the background map. (currently it can only load one or the other, via either disconnect or map_background.... the latter does technically kindof work, but the player has to manually press escape in order for the menu to show.)


Additional context

I am developing a mod that has various mostly unrelated maps, and ive made a cool background map for it. Each map ends with a disconnect command, but that leads to just the static backgrounded menu. the only semi-working method has been to do map_background but that requires manually pressing ESC to make the menu show up.

@Fennecai Fennecai added the Enhancement New feature or request label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant