Pausing game

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

aspie

It's all good baby.
Feb 24, 2001
315
0
0
40
Australia
Currently my scoreboard covers the entire game window with an opaque pattern, is there a way to pause the game when the player presses F1 and then resumes when they press it again?
 

2COOL4-U

New Member
Mar 17, 2001
505
0
0
37
dot NL
2cool.free.fr
You've got this function in PlayerPawn

Code:
exec function Pause()
{
	if ( bShowMenu )
		return;
	if( !SetPause(Level.Pauser=="") )
		ClientMessage(NoPauseMessage);
}
Perhaps you could add this to your PostRender function in the scoreboard
Code:
 if (Level.Pauser == "")
  PlayerPawn(Owner).Pause();
 

2COOL4-U

New Member
Mar 17, 2001
505
0
0
37
dot NL
2cool.free.fr
No as the game is not pausable so you need to check if it's an online game, if it is. Don't pause otherwise the player will get tons of Can't pause game messages :)

It might work if you're logged in as an admin tho. But still that would be anoying. So only enable this feature for Single Player
 

aspie

It's all good baby.
Feb 24, 2001
315
0
0
40
Australia
Mines just to support map ideas that really didn't fit into the assault style of team play, yours?
 

2COOL4-U

New Member
Mar 17, 2001
505
0
0
37
dot NL
2cool.free.fr
Working on a SP version of a popular mod(Dunno if I can say which one). But it included enemies with own models and AI.

I really wish someone documented the SP AI a bit more
 

aspie

It's all good baby.
Feb 24, 2001
315
0
0
40
Australia
Got it to work in a slightly different way. Whenever it the player presses the pause button a flag in their player is set ( bViewingStats) then when the HUD draws it calls a function which displays the stats (if the bool is true ). This also means that if I make it multiplayer later on, I can make the player invincible while viewing the stats.
 

aspie

It's all good baby.
Feb 24, 2001
315
0
0
40
Australia
damn, well i can modify it a bit so that it pauses the entire game, it will always be a team of players vs bots.