mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
registered server dummy commands for tab completion in the client
This commit is contained in:
parent
a1935036d5
commit
dc12d59a00
|
@ -1959,6 +1959,64 @@ void CClient::RegisterCommands()
|
|||
m_pConsole->Register("record", "s", CFGFLAG_SERVER, 0, 0, "Record to a file", 0);
|
||||
m_pConsole->Register("stoprecord", "", CFGFLAG_SERVER, 0, 0, "Stop recording", 0);
|
||||
m_pConsole->Register("reload", "", CFGFLAG_SERVER, 0, 0, "Reload the map", 0);
|
||||
m_pConsole->Register("login", "?s", CFGFLAG_SERVER, 0, 0, "Allows you access to rcon if no password is given, or changes your level if a password is given", -1);
|
||||
m_pConsole->Register("auth", "?s", CFGFLAG_SERVER, 0, 0, "Allows you access to rcon if no password is given, or changes your level if a password is given", -1);
|
||||
m_pConsole->Register("kill_pl", "i", CFGFLAG_SERVER, 0, 0, "Kills player i and announces the kill", 2);
|
||||
m_pConsole->Register("logout", "?i", CFGFLAG_SERVER, 0, 0, "If you are a helper or didn't specify [i] it logs you out, otherwise it logs player i out", 0);
|
||||
m_pConsole->Register("helper", "i", CFGFLAG_SERVER, 0, 0, "Authenticates player i to the Level of 1", 2);
|
||||
m_pConsole->Register("moder", "i", CFGFLAG_SERVER, 0, 0, "Authenticates player i to the Level of 2", 3);
|
||||
m_pConsole->Register("admin", "i", CFGFLAG_SERVER, 0, 0, "Authenticates player i to the Level of 3 (CAUTION: Irreversible, once he is an admin you can't control him)", 3);
|
||||
m_pConsole->Register("mute", "ii", CFGFLAG_SERVER, 0, 0, "Mutes player i1 for i2 seconds", 2);
|
||||
m_pConsole->Register("vote", "r", CFGFLAG_SERVER, 0, 0, "Forces the current vote to result in r (Yes/No)", 3);
|
||||
m_pConsole->Register("invis_me", "", CFGFLAG_SERVER, 0, 0, "Makes you invisible", 1);
|
||||
m_pConsole->Register("vis_me", "", CFGFLAG_SERVER, 0, 0, "Makes you visible again", 1);
|
||||
m_pConsole->Register("invis", "i", CFGFLAG_SERVER, 0, 0, "Makes player i invisible", 2);
|
||||
m_pConsole->Register("vis", "i", CFGFLAG_SERVER, 0, 0, "Makes player i visible again", 2);
|
||||
m_pConsole->Register("timerstop", "i", CFGFLAG_SERVER, 0, 0, "Stops the timer of player i", 2);
|
||||
m_pConsole->Register("timerstart", "i", CFGFLAG_SERVER, 0, 0, "Starts the timer of player i", 2);
|
||||
m_pConsole->Register("timerrestart", "i", CFGFLAG_SERVER, 0, 0, "Sets the timer of player i to 0 and starts it", 2);
|
||||
m_pConsole->Register("timerzero", "i", CFGFLAG_SERVER, 0, 0, "Sets the timer of player i to 0 and stops it", 2);
|
||||
m_pConsole->Register("tele", "ii", CFGFLAG_SERVER, 0, 0, "Teleports player i1 to player i2", 2);
|
||||
m_pConsole->Register("freeze", "i?i", CFGFLAG_SERVER, 0, 0, "Freezes player i1 for i2 seconds (infinity by default)", 2);
|
||||
m_pConsole->Register("unfreeze", "i", CFGFLAG_SERVER, 0, 0, "Unfreezes player i", 2);
|
||||
m_pConsole->Register("shotgun", "i", CFGFLAG_SERVER, 0, 0, "Gives a shotgun to player i", 2);
|
||||
m_pConsole->Register("shotgun_me", "", CFGFLAG_SERVER, 0, 0, "Gives shotgun to yourself", 1);
|
||||
m_pConsole->Register("grenade", "i", CFGFLAG_SERVER, 0, 0, "Gives a grenade launcher to player i", 2);
|
||||
m_pConsole->Register("grenade_me", "", CFGFLAG_SERVER, 0, 0, "Gives grenade launcher to yourself", 1);
|
||||
m_pConsole->Register("laser", "i", CFGFLAG_SERVER, 0, 0, "Gives a lasergun to player i", 2);
|
||||
m_pConsole->Register("laser_me", "", CFGFLAG_SERVER, 0, 0, "Gives lasergun to yourself", 1);
|
||||
m_pConsole->Register("weapons", "i", CFGFLAG_SERVER, 0, 0, "Gives all weapons to player i", 2);
|
||||
m_pConsole->Register("weapons_me", "", CFGFLAG_SERVER, 0, 0, "Gives all weapons to yourself", 1);
|
||||
m_pConsole->Register("ninja", "i", CFGFLAG_SERVER, 0, 0, "Makes player i a ninja", 2);
|
||||
m_pConsole->Register("ninja_me", "", CFGFLAG_SERVER, 0, 0, "Makes yourself a ninja", 1);
|
||||
m_pConsole->Register("hammer_me", "i", CFGFLAG_SERVER, 0, 0, "Sets your hammer power to i", 1);
|
||||
m_pConsole->Register("hammer", "ii", CFGFLAG_SERVER, 0, 0, "Sets the hammer power of player i1 to i2", 2);
|
||||
m_pConsole->Register("super", "i", CFGFLAG_SERVER, 0, 0, "Makes player i super", 2);
|
||||
m_pConsole->Register("unsuper", "i", CFGFLAG_SERVER, 0, 0, "Removes super from player i", 2);
|
||||
m_pConsole->Register("super_me", "", CFGFLAG_SERVER, 0, 0, "Makes yourself super", 1);
|
||||
m_pConsole->Register("unsuper_me", "", CFGFLAG_SERVER, 0, 0, "Removes super from yourself", 1);
|
||||
m_pConsole->Register("left", "?i", CFGFLAG_SERVER, 0, 0, "Makes you or player i move 1 tile left", 1);
|
||||
m_pConsole->Register("right", "?i", CFGFLAG_SERVER, 0, 0, "Makes you or player i move 1 tile right", 1);
|
||||
m_pConsole->Register("up", "?i", CFGFLAG_SERVER, 0, 0, "Makes you or player i move 1 tile up", 1);
|
||||
m_pConsole->Register("down", "?i", CFGFLAG_SERVER, 0, 0, "Makes you or player i move 1 tile down", 1);
|
||||
m_pConsole->Register("addvote", "r", CFGFLAG_SERVER, 0, 0, "Adds a vote entry to the clients", 4);
|
||||
m_pConsole->Register("broadtime", "", CFGFLAG_SERVER, 0, 0, "Toggles Showing the time string in race", -1);
|
||||
m_pConsole->Register("cmdlist", "", CFGFLAG_SERVER, 0, 0, "Shows the list of all commands", -1);
|
||||
m_pConsole->Register("credits", "", CFGFLAG_SERVER, 0, 0, "Shows the credits of the DDRace mod", -1);
|
||||
m_pConsole->Register("emote", "?s?i", CFGFLAG_SERVER, 0, 0, "Sets your tee's eye emote", -1);
|
||||
m_pConsole->Register("broadmsg", "", CFGFLAG_SERVER, 0, 0, "Toggle Showing the Server's Broadcast message during race", -1);
|
||||
m_pConsole->Register("eyeemote", "", CFGFLAG_SERVER, 0, 0, "Toggles whether you automatically use eyeemotes with standard emotes", -1);
|
||||
m_pConsole->Register("flags", "", CFGFLAG_SERVER, 0, 0, "Shows gameplay information for this server", -1);
|
||||
m_pConsole->Register("fly", "", CFGFLAG_SERVER, 0, 0, "Toggles whether you fly by pressing jump", 1);
|
||||
m_pConsole->Register("help", "?r", CFGFLAG_SERVER, 0, 0, "Helps you with commands", -1);
|
||||
m_pConsole->Register("info", "", CFGFLAG_SERVER, 0, 0, "Shows info about this server", -1);
|
||||
m_pConsole->Register("kill", "", CFGFLAG_SERVER, 0, 0, "Kills you", -1);
|
||||
m_pConsole->Register("me", "s", CFGFLAG_SERVER, 0, 0, "", -1); // TODO: add help text, cause idk how to describe this (heinrich5991)
|
||||
m_pConsole->Register("pause", "", CFGFLAG_SERVER, 0, 0, "If enabled on this server it pauses the game for you", -1);
|
||||
m_pConsole->Register("rank", "?r", CFGFLAG_SERVER, 0, 0, "Shows either your rank or the rank of the given player", -1);
|
||||
m_pConsole->Register("rules", "", CFGFLAG_SERVER, 0, 0, "Shows the rules of this server", -1);
|
||||
m_pConsole->Register("team", "?i", CFGFLAG_SERVER, 0, 0, "Lets you join the specified team", -1);
|
||||
m_pConsole->Register("top5", "?i", CFGFLAG_SERVER, 0, 0, "Shows the top 5 from the 1st, or starting at the specified number", -1);
|
||||
|
||||
m_pConsole->Register("quit", "", CFGFLAG_CLIENT|CFGFLAG_STORE, Con_Quit, this, "Quit Teeworlds", 0);
|
||||
m_pConsole->Register("exit", "", CFGFLAG_CLIENT|CFGFLAG_STORE, Con_Quit, this, "Quit Teeworlds", 0);
|
||||
|
|
|
@ -2250,7 +2250,7 @@ void CGameContext::ConToggleEyeEmote(IConsole::IResult *pResult, void *pUserData
|
|||
}
|
||||
}
|
||||
|
||||
void CGameContext::ConToggleEyeEmoteBroadcast(IConsole::IResult *pResult, void *pUserData, int ClientId)
|
||||
void CGameContext::ConToggleBroadcast(IConsole::IResult *pResult, void *pUserData, int ClientId)
|
||||
{
|
||||
CGameContext *pSelf = (CGameContext *)pUserData;
|
||||
|
||||
|
@ -2368,11 +2368,11 @@ void CGameContext::OnConsoleInit()
|
|||
Console()->Register("down", "?i", CFGFLAG_SERVER, ConGoDown, this, "Makes you or player i move 1 tile down", 1);
|
||||
Console()->Register("addvote", "r", CFGFLAG_SERVER, ConAddVote, this, "Adds a vote entry to the clients", 4);
|
||||
|
||||
Console()->Register("broadtime", "", CFGFLAG_SERVER, ConBroadTime, this, "", -1); // TODO: add help text, cause idk what this cmd does (heinrich5991)
|
||||
Console()->Register("broadtime", "", CFGFLAG_SERVER, ConBroadTime, this, "Toggles Showing the time string in race", -1);
|
||||
Console()->Register("cmdlist", "", CFGFLAG_SERVER, ConCmdList, this, "Shows the list of all commands", -1);
|
||||
Console()->Register("credits", "", CFGFLAG_SERVER, ConCredits, this, "Shows the credits of the DDRace mod", -1);
|
||||
Console()->Register("emote", "?s?i", CFGFLAG_SERVER, ConEyeEmote, this, "Sets your tee's eye emote", -1);
|
||||
Console()->Register("eyebroadcast", "", CFGFLAG_SERVER, ConToggleEyeEmoteBroadcast, this, "", -1); // TODO: add help text, cause idk what this cmd does (heinrich5991)
|
||||
Console()->Register("broadmsg", "", CFGFLAG_SERVER, ConToggleBroadcast, this, "Toggle Showing the Server's Broadcast message during race", -1);
|
||||
Console()->Register("eyeemote", "", CFGFLAG_SERVER, ConEyeEmote, this, "Toggles whether you automatically use eyeemotes with standard emotes", -1);
|
||||
Console()->Register("flags", "", CFGFLAG_SERVER, ConFlags, this, "Shows gameplay information for this server", -1);
|
||||
Console()->Register("fly", "", CFGFLAG_SERVER, ConToggleFly, this, "Toggles whether you fly by pressing jump", 1);
|
||||
|
|
|
@ -129,7 +129,7 @@ class CGameContext : public IGameServer
|
|||
static void ConToggleFly(IConsole::IResult *pResult, void *pUserData, int ClientId);
|
||||
static void ConMe(IConsole::IResult *pResult, void *pUserData, int ClientId);
|
||||
static void ConToggleEyeEmote(IConsole::IResult *pResult, void *pUserData, int ClientId);
|
||||
static void ConToggleEyeEmoteBroadcast(IConsole::IResult *pResult, void *pUserData, int ClientId);
|
||||
static void ConToggleBroadcast(IConsole::IResult *pResult, void *pUserData, int ClientId);
|
||||
static void ConEyeEmote(IConsole::IResult *pResult, void *pUserData, int ClientId);
|
||||
|
||||
CGameContext(int Resetting);
|
||||
|
|
Loading…
Reference in a new issue