| 1 | /* |
| 2 | * Descent 3 |
| 3 | * Copyright (C) 2024 Parallax Software |
| 4 | * |
| 5 | * This program is free software: you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation, either version 3 of the License, or |
| 8 | * (at your option) any later version. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | |
| 18 | --- HISTORICAL COMMENTS FOLLOW --- |
| 19 | |
| 20 | * $Logfile: /DescentIII/Main/Dmfc/dmfcinputcommands.h $ |
| 21 | * $Revision: 1.1.1.1 $ |
| 22 | * $Date: 2003/08/26 03:57:20 $ |
| 23 | * $Author: kevinb $ |
| 24 | * |
| 25 | * header for input command function handlers |
| 26 | * |
| 27 | * $Log: dmfcinputcommands.h,v $ |
| 28 | * Revision 1.1.1.1 2003/08/26 03:57:20 kevinb |
| 29 | * initial 1.5 import |
| 30 | * |
| 31 | * |
| 32 | * 16 7/09/99 6:18p Jeff |
| 33 | * added $remoteadminlogout and $wait commands |
| 34 | * |
| 35 | * 15 7/08/99 2:39a Jeff |
| 36 | * rough implementation of remote administration checked in. Still needs |
| 37 | * some polishing, but should work basically. |
| 38 | * |
| 39 | * 14 4/30/99 10:53p Jeff |
| 40 | * added $warp command |
| 41 | * |
| 42 | * 13 3/17/99 12:24p Jeff |
| 43 | * converted DMFC to be COM interface |
| 44 | * |
| 45 | * 12 1/06/99 12:53a Jeff |
| 46 | * put in support for $piggyback and $observer |
| 47 | * |
| 48 | * 11 1/04/99 12:21p Jeff |
| 49 | * added support for hosts.allow/deny and updates stats manager a little |
| 50 | * |
| 51 | * 10 11/16/98 5:35p Jeff |
| 52 | * removed log functions, added support for changing team names, fixed ctf |
| 53 | * to work better with different team names |
| 54 | * |
| 55 | * 9 11/01/98 1:59a Jeff |
| 56 | * made a $help inputcommand for help in a dedicated server environment |
| 57 | * |
| 58 | * 8 10/20/98 12:16p Jeff |
| 59 | * added death message filter, hud callsign filter |
| 60 | * |
| 61 | * 7 10/15/98 1:34p Jeff |
| 62 | * added scrollable onscreen menu. Remove ban in dmfc. prejoin event |
| 63 | * |
| 64 | * 6 10/08/98 3:37p Jeff |
| 65 | * general improvements (Netgame info things, save to registry). Changes |
| 66 | * so it would send packets on NETSEQ_OBJECTS |
| 67 | * |
| 68 | * 5 10/05/98 2:50p Jeff |
| 69 | * |
| 70 | * 4 9/30/98 3:50p Jeff |
| 71 | * general improvements (many) |
| 72 | * |
| 73 | * 3 9/23/98 4:17p Jeff |
| 74 | * basic changes/improvements, started changing death messages |
| 75 | * |
| 76 | * 2 9/21/98 7:11p Jeff |
| 77 | * made InputCommand interface API and moved existing input commands to |
| 78 | * the interface. Changed mprintf/ASSERT so they are valid in DMFC |
| 79 | * |
| 80 | * $NoKeywords: $ |
| 81 | */ |
| 82 | |
| 83 | #ifndef __DMFC_INPUTCOMMANDS_H_ |
| 84 | #define __DMFC_INPUTCOMMANDS_H_ |
| 85 | |
| 86 | // handle the client wishing to change teams |
| 87 | // Usage: "$team <string team_name>" where team_name is the name of the team you want to change to |
| 88 | void DMFCInputCommand_Team(const char *input_string); |
| 89 | // handle the server wanting to change the team for a player |
| 90 | // Usage: "$changeteam <int pnum> <string team_name>" where pnum is the playernum, and team_name is the name of the |
| 91 | // team |
| 92 | void DMFCInputCommand_ChangeTeam(const char *input_string); |
| 93 | // handle the client requesting playerinfo for a player |
| 94 | // Usage: "$playerinfo <int pnum>" where pnum is the playernum |
| 95 | void DMFCInputCommand_PlayerInfo(const char *input_string); |
| 96 | // handle the server requesting an autobalance of teams |
| 97 | // Usage: "$balance" |
| 98 | void DMFCInputCommand_Balance(const char *input_string); |
| 99 | // handle turning off/on allowing the autobalancing of teams by the server |
| 100 | // Usage: "$autobalance <off/on>" if off/on is "off" (or equivalent) it will turn it off, else turn it on |
| 101 | void DMFCInputCommand_AutoBalance(const char *input_string); |
| 102 | // handle turning off/on allowing clients to change their team |
| 103 | // Usage: "$allowteamchange <off/on>" if off/on is "off" (or equivalent) it will turn it off, else turn it on |
| 104 | void DMFCInputCommand_AllowTeamChange(const char *input_string); |
| 105 | // handles kicking a player from the game |
| 106 | // Usage: "$kick <int pnum>" where pnum is the playernumber of the player you want to kick |
| 107 | void DMFCInputCommand_Kick(const char *input_string); |
| 108 | // handles banning a player from the game |
| 109 | // Usage: "$ban <int pnum>" where pnum is the playernumber of the player to ban |
| 110 | void DMFCInputCommand_Ban(const char *input_string); |
| 111 | // handles ending the level |
| 112 | // Usage: "$endlevel" |
| 113 | void DMFCInputCommand_EndLevel(const char *input_string); |
| 114 | // handles the request to see all the players in the game |
| 115 | // Usage: "$players" |
| 116 | void DMFCInputCommand_Players(const char *input_string); |
| 117 | // handles a request to see the scores/stats of the game (up to the mod to display the scores on request) |
| 118 | // Usage: "$scores" |
| 119 | void DMFCInputCommand_Scores(const char *input_string); |
| 120 | // handles a request to save the game stats to file |
| 121 | // Usage: "$savestats" |
| 122 | void DMFCInputCommand_SaveStats(const char *input_string); |
| 123 | // handles a request to turn on/off displaying callsigns on the HUD during the game. |
| 124 | // Usage: "$hudcallsigns <full/team/none>" full = everyone team = only teammates none = noone |
| 125 | // NOTE: You can only set your HUD Callsign level up to the level that the server is |
| 126 | // So if the server is only allowing up to team, you won't be able to set to full |
| 127 | void DMFCInputCommand_HudCallsigns(const char *input_string); |
| 128 | // handles a request from the server to set the max HUD Callsign level |
| 129 | // Usage: "$serverhudcallsigns <full/team/none>" same as $hudcallsign but sets the max level for the server |
| 130 | void DMFCInputCommand_ServerHudCallsigns(const char *input_string); |
| 131 | // handles a request to enable/disable statistical messages |
| 132 | // Usage: "$statmsgs on/off" |
| 133 | void DMFCInputCommand_StatMsgs(const char *input_string); |
| 134 | // handles a request to enable/disable the autosaving of the game stats on level end |
| 135 | // Usage: "$autosavelevel on/off" |
| 136 | void DMFCInputCommand_AutoSaveLevel(const char *input_string); |
| 137 | // handles a request to enable/disable the autosaving of the game stats if we disconnect |
| 138 | // Usage: "$autosavedisconnect on/off" |
| 139 | void DMFCInputCommand_AutoSaveDisconnect(const char *input_string); |
| 140 | // handles changing the level time limit of a netgame on the fly |
| 141 | // Usage: "$settimelimit <int minutes>" where minutes is the number of minutes |
| 142 | void DMFCInputCommand_SetTimeLimit(const char *input_string); |
| 143 | // handles changing the level goal limit of a netgame on the fly |
| 144 | // Usage: "$setgoallimit <int goal>" where goal is the number of points |
| 145 | void DMFCInputCommand_SetGoalLimit(const char *input_string); |
| 146 | // handles changing the number of max players in a netgame |
| 147 | // Usage: "$setmaxplayers <int max>" where max is the maximum players |
| 148 | void DMFCInputCommand_SetMaxPlayers(const char *input_string); |
| 149 | // handles changing the respawn time of the powerups in a level of a netgame |
| 150 | // Usage: "$setrespawntime <int seconds>" where seconds is the time in seconds |
| 151 | void DMFCInputCommand_SetRespawnTime(const char *input_string); |
| 152 | // handle the client requesting netgame info |
| 153 | // Usage: "$netgameinfo" |
| 154 | void DMFCInputCommand_NetGameInfo(const char *input_string); |
| 155 | // handle the server changing the pps threshold of the game |
| 156 | // Usage: "$setpps <int pps>" where pps is the Packets Per Second |
| 157 | void DMFCInputCommand_SetPPS(const char *input_string); |
| 158 | // handles listing the ban list on a dedicated server (so if you want to remove a player from it) |
| 159 | // Usage: "$banlist" |
| 160 | void DMFCInputCommand_BanList(const char *input_string); |
| 161 | // handles removing a ban from a player, given the ban index num (see $banlist) |
| 162 | // Usage: "$removeban <int bannum>" where bannum is the number corresponding to that given during a $banlist |
| 163 | void DMFCInputCommand_RemoveBan(const char *input_string); |
| 164 | // handles changing the filter for death messages |
| 165 | // Usage: "$killmsgfilter <full/simple/none>" |
| 166 | void DMFCInputCommand_KillMsgFilter(const char *input_string); |
| 167 | // handles the server changing a team's name |
| 168 | // Usage: "$setteamname <team_num> <new_team_name> |
| 169 | void DMFCInputCommand_SetTeamName(const char *input_string); |
| 170 | // handles a request for help to see a list of commands, dedicated server only |
| 171 | // Usage: "$help [command]" |
| 172 | void DMFCInputCommand_Help(const char *input_string); |
| 173 | // handles a request to rehash the hosts.allow/deny |
| 174 | // Usage: "$rehash" |
| 175 | void DMFCInputCommand_Rehash(const char *input_string); |
| 176 | // handles a request to enter/leave observer mode |
| 177 | // Usage: "$observer <on/off>" |
| 178 | void DMFCInputCommand_Observer(const char *input_string); |
| 179 | // handles a request to piggyback a player |
| 180 | // Usage: "$piggyback <pnum>" |
| 181 | void DMFCInputCommand_Piggyback(const char *input_string); |
| 182 | // handles a request to warp to another level |
| 183 | // Usage: "$warp <level number>" |
| 184 | void DMFCInputCommand_Warp(const char *input_string); |
| 185 | // handles enable/disable remote administration |
| 186 | // Usage: "$remoteadmin <on/off>" |
| 187 | void DMFCInputCommand_RemoteAdmin(const char *input_string); |
| 188 | // handles setting/changing the remote administration password |
| 189 | // Usage: "$remoteadminpass <password>" |
| 190 | void DMFCInputCommand_RemoteAdminPass(const char *input_string); |
| 191 | // handles a remote admin command |
| 192 | // Usage: "$remote <command> <option parms> <...>" |
| 193 | void DMFCInputCommand_Remote(const char *input_string); |
| 194 | // handles a request to make all clients wait/or stop waiting |
| 195 | // Usage: "$wait <on/off>" |
| 196 | void DMFCInputCommand_Wait(const char *input_string); |
| 197 | |
| 198 | // handles seeing who is logged in, and allows the server to log them out |
| 199 | // If no parameter is given it lists all the players logged in. |
| 200 | // To log out a player give the login-id as a parameter |
| 201 | // Usage: "$remoteadminlogout [login-id]" |
| 202 | void DMFCInputCommand_RemoteAdminLogout(const char *input_string); |
| 203 | |
| 204 | #endif |