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

@ -315,9 +315,9 @@ CCMD (changemap)
return;
}
if (who->player - players != Net_Arbitrator && multiplayer)
if (!players[who->player - players].settings_controller && netgame)
{
Printf ("Only player %d can change the map.\n", Net_Arbitrator+1);
Printf ("Only setting controllers can change the map.\n");
return;
}
@ -589,7 +589,7 @@ CCMD (fov)
}
else
{
Printf ("The arbitrator has disabled FOV changes.\n");
Printf ("A setting controller has disabled FOV changes.\n");
return;
}
}