How to stop the last map when game is finished?

Discuss the industry, development techniques and other general topics

How to stop the last map when game is finished?

Postby peegee on Mon Apr 02, 2012 10:04 am

Hi friends, :smt039

which triggerable node/command/procedure in Hammer is able to stop
the map, when the game is (succesfully) finished?
I look for the equivalent of console command kill server.
I know there is game_stop for multiplayer, but my mod is single player, source engine 2009.

Thank you for any help
"All things are difficult before they are easy." Thomas Fuller
User avatar
peegee
Regular
Regular
 
Joined: Fri Aug 28, 2009 10:54 am

Re: How to stop the last map when game is finished?

Postby shadowmancer471 on Mon Apr 02, 2012 10:52 am

Place a point_clientcommand anywhere in the level
Give it a name

Then put a trigger_once or whatever at the end of the level, which has the output

'OnStartTouch/point_clientcommand/Command/(override) Disconnect'

The point_clientcommand's 'command' input will effectively enter whatever is in the override box straight into the console


Best of luck
I want to get off Mr.Bones Wild Ride
shadowmancer471
Regular
Regular
 
Joined: Sat Aug 06, 2011 2:08 am

Re: How to stop the last map when game is finished?

Postby peegee on Mon Apr 02, 2012 6:34 pm

Thank you so much shadowmancer471,
It works like hell!
"All things are difficult before they are easy." Thomas Fuller
User avatar
peegee
Regular
Regular
 
Joined: Fri Aug 28, 2009 10:54 am

Return to Game Development

Who is online

Users browsing this forum: No registered users