Loading Backgroundmap after Ending Game

Any aspects of level design for the Source engine.

Loading Backgroundmap after Ending Game

Postby KinOfTheFortress on Sun Oct 27, 2013 11:39 am

Hello,
In a map I recently created, the player enters a trigger_once and that triggers a point_clientcommand with the "disconnect" parameter.

Everything works fine, the player finishes the game, triggers the disconnect and is back to the main menu. However, the backgroundmap never loads? Why is that? In HL2 after the game ends, it does not load the backgroundmap either.

Is it possible to load the backgroundmap with the main menu after the player is disconnected from a map?
User avatar
KinOfTheFortress
Dumpling
Dumpling
 
Joined: Mon Mar 18, 2013 1:53 pm

Re: Loading Backgroundmap after Ending Game

Postby TechieUK on Sun Oct 27, 2013 7:09 pm

Replace the "disconnect" command with "map_background backgroundmapname", I think that'll fix it.
Replace backgroundmapname with the background map.
Also know as WILLAM; TechieUK is my old name. If you see WILLAM on Steam or ModDB, it's me.
User avatar
TechieUK
Regular
Regular
 
Joined: Sat Apr 13, 2013 4:29 pm

Re: Loading Backgroundmap after Ending Game

Postby KinOfTheFortress on Mon Nov 04, 2013 12:03 am

Thanks it helped but didn't solve the problem. After loading the backgroundmap, you had to press ESC or console for the menu to appear.

So, I placed a logic_auto in the backgroundmap which triggered a point_clientcommand with "exec .cfg" parameters. The .cfg file contained the following commands "toggleconsole toggleconsole". So it simply toggles the console on/off when the backgroundmap is loaded resulting in menu to appear.
User avatar
KinOfTheFortress
Dumpling
Dumpling
 
Joined: Mon Mar 18, 2013 1:53 pm

Re: Loading Backgroundmap after Ending Game

Postby TechieUK on Mon Nov 04, 2013 8:15 pm

Sooooooo... it works now?
Also know as WILLAM; TechieUK is my old name. If you see WILLAM on Steam or ModDB, it's me.
User avatar
TechieUK
Regular
Regular
 
Joined: Sat Apr 13, 2013 4:29 pm

Return to Hammer Editor Help

Who is online

Users browsing this forum: No registered users