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:
parent
e99b239ae6
commit
39bff11693
9 changed files with 1791 additions and 1621 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue