Added patch by Karate Chris:

- The net arbitrator can add or remove players to an access list so they 
    can or cannot control game settings:
 * net_addcontroller <player number> - Adds a player to the control list. Only net arbitrators have access to this command.
 * net_removecontroller <player number> - Removes a player from the control list. Only net arbitrators have access to this command.
 * net_listcontrollers - Lists the players who are able to control the game settings.
- Fixed: The 'Printf'' occurrences in the 'addplayerclass' console command were all missing a '\n' at the end.
- Enhanced the 'playerinfo' console command so more information about each setting is shown.


SVN r750 (trunk)
This commit is contained in:
Christoph Oelckers 2008-02-16 15:02:52 +00:00
commit 39bff11693
9 changed files with 1791 additions and 1621 deletions

View file

@ -31,9 +31,9 @@ CCMD (addbot)
return;
}
if (consoleplayer != Net_Arbitrator)
if (!players[consoleplayer].settings_controller)
{
Printf ("Only player %d can add bots\n", Net_Arbitrator + 1);
Printf ("Only setting controllers can add bots\n");
return;
}
@ -78,17 +78,17 @@ extern bool CheckCheatmode ();
CCMD (freeze)
{
if (CheckCheatmode ())
return;
if (CheckCheatmode ())
return;
if (netgame && consoleplayer != Net_Arbitrator)
{
Printf ("Only player %d can use freeze mode\n", Net_Arbitrator + 1);
return;
}
if (netgame && !players[consoleplayer].settings_controller)
{
Printf ("Only setting controllers can use freeze mode\n");
return;
}
Net_WriteByte (DEM_GENERICCHEAT);
Net_WriteByte (CHT_FREEZE);
Net_WriteByte (DEM_GENERICCHEAT);
Net_WriteByte (CHT_FREEZE);
}
CCMD (listbots)