2011-08-27 15:11:39 +00:00
/* (c) Shereef Marzouk. See "licence DDRace.txt" and the readme.txt in the root of the distribution for more information. */
# ifndef GAME_SERVER_DDRACECOMMANDS_H
# define GAME_SERVER_DDRACECOMMANDS_H
# undef GAME_SERVER_DDRACECOMMANDS_H // this file can be included several times
# ifndef CHAT_COMMAND
# define CHAT_COMMAND(name, params, flags, callback, userdata, help)
# endif
2011-09-02 08:45:26 +00:00
CHAT_COMMAND ( " credits " , " " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConCredits , this , " Shows the credits of the DDRace mod " )
CHAT_COMMAND ( " emote " , " ?si " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConEyeEmote , this , " Sets your tee's eye emote " )
Added the following settings to Close #123.
sv_time_in_broadcast, 1, 0, 1, CFGFLAG_SERVER, "Whether to display time in broadcast every interval or not by default, later the choice can be changed by players via chat commands"
sv_time_in_broadcast_interval, 1, 0, 60, CFGFLAG_SERVER, "How often to update the broadcast time"
sv_time_in_gametimer, 0, 0, 1, CFGFLAG_SERVER, "Whether to display time in the round/game timer or not by default, later the choice can be changed by players via chat commands"
Added the following Chat commands to give the player the choice over their settings:
"saytime", "", CFGFLAG_CHAT|CFGFLAG_SERVER, ConSayTime, this, "Privately messages you your current time in this current running race"
"saytimeall", "", CFGFLAG_CHAT|CFGFLAG_SERVER, ConSayTimeAll, this, "Publicly messages everyone your current time in this current running race"
"time", "", CFGFLAG_CHAT|CFGFLAG_SERVER, ConTime, this, "Privately shows you your current time in this current running race in the broadcast message"
"broadcasttime", "?s", CFGFLAG_CHAT|CFGFLAG_SERVER, ConSetBroadcastTime, this, "Personal Setting of showing time in the broadcast, broadcasttime s, where s = on for on, off for off, toggle for toggle and nothing to show current status"
"servergametime", "?s", CFGFLAG_CHAT|CFGFLAG_SERVER, ConSetServerGameTime, this, "Personal Setting of showing time in the round/game timer, servergametime s, where s = on for on off for off, toggle for toggle and nothing to show current status"
Fixed Chat Command "eyeemote" and made it a set + toggle instead of just toggle for better bin techneques
Moved some vars from CCharacter to CPlayer to keep their status evern after death but not after disconnect.
So now players have the choice to see which timer they wanna see if any.
Note: These changes are all untested Stay away from this update on your main server until they are tested, i don't even know if they will compile propperly
2011-12-29 12:17:34 +00:00
CHAT_COMMAND ( " eyeemote " , " ?s " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConSetEyeEmote , this , " Toggles use of standard eye-emotes on/off, eyeemote s, where s = on for on, off for off, toggle for toggle and nothing to show current status " )
2011-09-02 08:45:26 +00:00
CHAT_COMMAND ( " settings " , " ?s " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConSettings , this , " Shows gameplay information for this server " )
CHAT_COMMAND ( " help " , " ?r " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConHelp , this , " Shows help to command r, general help if left blank " )
CHAT_COMMAND ( " info " , " " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConInfo , this , " Shows info about this server " )
CHAT_COMMAND ( " me " , " r " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConMe , this , " Like the famous irc command '/me says hi' will display '<yourname> says hi' " )
2013-08-09 13:04:20 +00:00
CHAT_COMMAND ( " w " , " sr " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConWhisper , this , " Whisper something to someone (private message) " )
CHAT_COMMAND ( " whisper " , " sr " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConWhisper , this , " Whisper something to someone (private message) " )
2013-10-18 09:42:35 +00:00
CHAT_COMMAND ( " c " , " r " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConConverse , this , " Converse with the last person you whispered to (private message) " ) ;
CHAT_COMMAND ( " converse " , " r " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConConverse , this , " Converse with the last person you whispered to (private message) " ) ;
2011-12-29 13:58:39 +00:00
CHAT_COMMAND ( " pause " , " " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConTogglePause , this , " Toggles pause (if not activated on the server, it toggles spec) " )
CHAT_COMMAND ( " spec " , " " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConToggleSpec , this , " Toggles spec " )
2013-12-22 17:30:13 +00:00
CHAT_COMMAND ( " dnd " , " " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConDND , this , " Toggle Do Not Disturb (no chat and server messages) " )
2013-11-28 14:11:59 +00:00
CHAT_COMMAND ( " mappoints " , " ?r " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConMapPoints , this , " Show how man points the map with name r gives (current map by default) " )
2013-07-21 11:35:01 +00:00
CHAT_COMMAND ( " rankteam " , " ?r " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConTeamRank , this , " Shows the team rank of player with name r (your team rank by default) " )
2011-09-02 08:45:26 +00:00
CHAT_COMMAND ( " rank " , " ?r " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConRank , this , " Shows the rank of player with name r (your rank by default) " )
CHAT_COMMAND ( " rules " , " " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConRules , this , " Shows the server rules " )
CHAT_COMMAND ( " team " , " ?i " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConJoinTeam , this , " Lets you join team i (shows your team if left blank) " )
2013-11-15 23:44:49 +00:00
CHAT_COMMAND ( " lock " , " ?i " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConLockTeam , this , " Lock team so noone else can join it " )
2013-07-21 11:35:01 +00:00
CHAT_COMMAND ( " top5team " , " ?i " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConTeamTop5 , this , " Shows five team ranks of the ladder beginning with rank i (1 by default) " )
2011-09-02 08:45:26 +00:00
CHAT_COMMAND ( " top5 " , " ?i " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConTop5 , this , " Shows five ranks of the ladder beginning with rank i (1 by default) " )
2011-09-02 22:28:56 +00:00
CHAT_COMMAND ( " showothers " , " ?i " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConShowOthers , this , " Whether to showplayers from other teams or not (off by default), optional i = 0 for off else for on " )
2014-01-11 12:59:20 +00:00
CHAT_COMMAND ( " ninjajetpack " , " ?i " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConNinjaJetpack , this , " Whether to showplayers from other teams or not (off by default), optional i = 0 for off else for on " )
Added the following settings to Close #123.
sv_time_in_broadcast, 1, 0, 1, CFGFLAG_SERVER, "Whether to display time in broadcast every interval or not by default, later the choice can be changed by players via chat commands"
sv_time_in_broadcast_interval, 1, 0, 60, CFGFLAG_SERVER, "How often to update the broadcast time"
sv_time_in_gametimer, 0, 0, 1, CFGFLAG_SERVER, "Whether to display time in the round/game timer or not by default, later the choice can be changed by players via chat commands"
Added the following Chat commands to give the player the choice over their settings:
"saytime", "", CFGFLAG_CHAT|CFGFLAG_SERVER, ConSayTime, this, "Privately messages you your current time in this current running race"
"saytimeall", "", CFGFLAG_CHAT|CFGFLAG_SERVER, ConSayTimeAll, this, "Publicly messages everyone your current time in this current running race"
"time", "", CFGFLAG_CHAT|CFGFLAG_SERVER, ConTime, this, "Privately shows you your current time in this current running race in the broadcast message"
"broadcasttime", "?s", CFGFLAG_CHAT|CFGFLAG_SERVER, ConSetBroadcastTime, this, "Personal Setting of showing time in the broadcast, broadcasttime s, where s = on for on, off for off, toggle for toggle and nothing to show current status"
"servergametime", "?s", CFGFLAG_CHAT|CFGFLAG_SERVER, ConSetServerGameTime, this, "Personal Setting of showing time in the round/game timer, servergametime s, where s = on for on off for off, toggle for toggle and nothing to show current status"
Fixed Chat Command "eyeemote" and made it a set + toggle instead of just toggle for better bin techneques
Moved some vars from CCharacter to CPlayer to keep their status evern after death but not after disconnect.
So now players have the choice to see which timer they wanna see if any.
Note: These changes are all untested Stay away from this update on your main server until they are tested, i don't even know if they will compile propperly
2011-12-29 12:17:34 +00:00
CHAT_COMMAND ( " saytime " , " " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConSayTime , this , " Privately messages you your current time in this current running race " )
CHAT_COMMAND ( " saytimeall " , " " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConSayTimeAll , this , " Publicly messages everyone your current time in this current running race " )
CHAT_COMMAND ( " time " , " " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConTime , this , " Privately shows you your current time in this current running race in the broadcast message " )
2012-02-14 20:38:06 +00:00
CHAT_COMMAND ( " timer " , " ?s " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConSetTimerType , this , " Personal Setting of showing time in either broadcast or game/round timer, timer s, where s = broadcast for broadcast, gametimer for game/round timer, cycle for cycle, both for both, none for no timer and nothing to show current status " )
2011-08-27 15:11:39 +00:00
# if defined(CONF_SQL)
2011-09-02 08:45:26 +00:00
CHAT_COMMAND ( " times " , " ?s?i " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConTimes , this , " /times ?s?i shows last 5 times of the server or of a player beginning with name s starting with time i (i = 1 by default) " )
2013-07-21 02:52:23 +00:00
CHAT_COMMAND ( " points " , " ?r " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConPoints , this , " Shows the global points of a player beginning with name r (your rank by default) " )
2013-07-21 11:35:01 +00:00
CHAT_COMMAND ( " top5points " , " ?i " , CFGFLAG_CHAT | CFGFLAG_SERVER , ConTopPoints , this , " Shows five points of the global point ladder beginning with rank i (1 by default) " )
2011-08-27 15:11:39 +00:00
# endif
# undef CHAT_COMMAND
# endif