how determine practice 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.

Phennim

New Member
Aug 27, 2001
17
0
0
Visit site
I have a "class LTS extends TeamGamePlus" and I need to find out if it is a practice game (and not an internet game). I need this because I then need to change "MaxPlayers" to "the number of bots+1".

p.s.
Are the number of bots in a practice game determined by MinPlayers? If not: then what variable holds the "number of bots"
 

Raeled

Feuer Frei!
Jul 1, 2001
161
0
0
39
Dordrecht, The Netherlands
Visit site
if ( Level.NetMode == NM_Standalone )
// this is a botmatch
else
// this is an internet game

InitialBots holds the number of bots the player wants in a botmatch

MinPlayers is used in multiplayer, to check if there should be bots and how much. if the amount of players+bots are below minplayers there will be bots added. if the number of players+bots are over this bots will be deleted untill players+bots are equal to minplayers