Announcement

Collapse
No announcement yet.

NetMode Explanation?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    NetMode Explanation?

    I've recently been having major issues with regards to Team Play in UDK, specifically with auto balance, which won't seem to turn off. I noticed this piece of code in UTTeamGame that sparked my interest:
    Code:
    // always imbalance teams in favor of bot team in single player
    	if (  WorldInfo.NetMode == NM_Standalone )
    	{
    		ForEach LocalPlayerControllers(class'PlayerController', PC)
    		{
    			if ( (PC.PlayerReplicationInfo.Team != None) && (PC.PlayerReplicationInfo.Team.TeamIndex == 1) )
    			{
    				first = 1;
    				second = 0;
    			}
    			break;
    		}
    	}
    My snooping then led me to this in WorldInfo:
    Code:
    var enum ENetMode
    {
    	NM_Standalone,        // Standalone game.
    	NM_DedicatedServer,   // Dedicated server, no local client.
    	NM_ListenServer,      // Listen server.
    	NM_Client             // Client only, no local server.
    } NetMode;
    But I haven't yet found a way to change the NetMode. Could someone help me out?
Working...
X