Multimode

From EDukeWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Returns the number of players in the game.

In singleplayer, it is set to 1.

The player IDs range from zero to MULTIMODE minus 1.

In the original Duke Nukem 3D, once a player quit, MULTIMODE would decrease permanently, meaning it was impossible for a new player to join mid-game.

It can also be used for when making a loop through all players. Example:

for My_Player range MULTIMODE
{
  [...]
}

While MULTIMODE stores the total of player in the game, numplayers stores only non-bot players.