2011-02-02 10:49:19 +00:00
/* (c) Shereef Marzouk. See "licence DDRace.txt" and the readme.txt in the root of the distribution for more information. */
2018-07-06 14:11:38 +00:00
// This file can be included several times.
2010-11-02 16:07:45 +00:00
# ifndef CONSOLE_COMMAND
2015-12-28 15:14:52 +00:00
# define CONSOLE_COMMAND(name, params, flags, callback, userdata, help)
2010-11-02 16:07:45 +00:00
# endif
2015-12-28 15:14:52 +00:00
CONSOLE_COMMAND ( " kill_pl " , " v[id] " , CFGFLAG_SERVER , ConKillPlayer , this , " Kills player v and announces the kill " )
CONSOLE_COMMAND ( " totele " , " i[number] " , CFGFLAG_SERVER | CMDFLAG_TEST , ConToTeleporter , this , " Teleports you to teleporter v " )
CONSOLE_COMMAND ( " totelecp " , " i[number] " , CFGFLAG_SERVER | CMDFLAG_TEST , ConToCheckTeleporter , this , " Teleports you to checkpoint teleporter v " )
2019-02-09 18:32:45 +00:00
CONSOLE_COMMAND ( " tele " , " ?i[id] ?i[id] " , CFGFLAG_SERVER | CMDFLAG_TEST , ConTeleport , this , " Teleports player i (or you) to player i (or you to where you look at) " )
2019-11-22 14:37:18 +00:00
CONSOLE_COMMAND ( " addweapon " , " i[weapon-id] " , CFGFLAG_SERVER | CMDFLAG_TEST , ConAddWeapon , this , " Gives weapon with id i to you (all = -1, hammer = 0, gun = 1, shotgun = 2, grenade = 3, laser = 4, ninja = 5) " )
CONSOLE_COMMAND ( " removeweapon " , " i[weapon-id] " , CFGFLAG_SERVER | CMDFLAG_TEST , ConRemoveWeapon , this , " removes weapon with id i from you (all = -1, hammer = 0, gun = 1, shotgun = 2, grenade = 3, laser = 4, ninja = 5) " )
2015-12-28 15:14:52 +00:00
CONSOLE_COMMAND ( " shotgun " , " " , CFGFLAG_SERVER | CMDFLAG_TEST , ConShotgun , this , " Gives a shotgun to you " )
CONSOLE_COMMAND ( " grenade " , " " , CFGFLAG_SERVER | CMDFLAG_TEST , ConGrenade , this , " Gives a grenade launcher to you " )
2019-11-22 14:37:18 +00:00
CONSOLE_COMMAND ( " laser " , " " , CFGFLAG_SERVER | CMDFLAG_TEST , ConLaser , this , " Gives a laser to you " )
2020-01-12 12:59:55 +00:00
CONSOLE_COMMAND ( " rifle " , " " , CFGFLAG_SERVER | CMDFLAG_TEST , ConLaser , this , " Gives a laser to you " )
2016-10-08 17:42:42 +00:00
CONSOLE_COMMAND ( " jetpack " , " " , CFGFLAG_SERVER | CMDFLAG_TEST , ConJetpack , this , " Gives jetpack to you " )
2015-12-28 15:14:52 +00:00
CONSOLE_COMMAND ( " weapons " , " " , CFGFLAG_SERVER | CMDFLAG_TEST , ConWeapons , this , " Gives all weapons to you " )
CONSOLE_COMMAND ( " unshotgun " , " " , CFGFLAG_SERVER | CMDFLAG_TEST , ConUnShotgun , this , " Takes the shotgun from you " )
CONSOLE_COMMAND ( " ungrenade " , " " , CFGFLAG_SERVER | CMDFLAG_TEST , ConUnGrenade , this , " Takes the grenade launcher you " )
2019-11-22 14:37:18 +00:00
CONSOLE_COMMAND ( " unlaser " , " " , CFGFLAG_SERVER | CMDFLAG_TEST , ConUnLaser , this , " Takes the laser from you " )
2020-01-12 12:59:55 +00:00
CONSOLE_COMMAND ( " unrifle " , " " , CFGFLAG_SERVER | CMDFLAG_TEST , ConUnLaser , this , " Takes the laser from you " )
2016-10-08 17:42:42 +00:00
CONSOLE_COMMAND ( " unjetpack " , " " , CFGFLAG_SERVER | CMDFLAG_TEST , ConUnJetpack , this , " Takes the jetpack from you " )
2015-12-28 15:14:52 +00:00
CONSOLE_COMMAND ( " unweapons " , " " , CFGFLAG_SERVER | CMDFLAG_TEST , ConUnWeapons , this , " Takes all weapons from you " )
CONSOLE_COMMAND ( " ninja " , " " , CFGFLAG_SERVER | CMDFLAG_TEST , ConNinja , this , " Makes you a ninja " )
CONSOLE_COMMAND ( " super " , " " , CFGFLAG_SERVER | CMDFLAG_TEST , ConSuper , this , " Makes you super " )
CONSOLE_COMMAND ( " unsuper " , " " , CFGFLAG_SERVER | CMDFLAG_TEST , ConUnSuper , this , " Removes super from you " )
CONSOLE_COMMAND ( " unsolo " , " " , CFGFLAG_SERVER | CMDFLAG_TEST , ConUnSolo , this , " Puts you out of solo part " )
CONSOLE_COMMAND ( " undeep " , " " , CFGFLAG_SERVER | CMDFLAG_TEST , ConUnDeep , this , " Puts you out of deep freeze " )
CONSOLE_COMMAND ( " left " , " " , CFGFLAG_SERVER | CMDFLAG_TEST , ConGoLeft , this , " Makes you move 1 tile left " )
CONSOLE_COMMAND ( " right " , " " , CFGFLAG_SERVER | CMDFLAG_TEST , ConGoRight , this , " Makes you move 1 tile right " )
CONSOLE_COMMAND ( " up " , " " , CFGFLAG_SERVER | CMDFLAG_TEST , ConGoUp , this , " Makes you move 1 tile up " )
CONSOLE_COMMAND ( " down " , " " , CFGFLAG_SERVER | CMDFLAG_TEST , ConGoDown , this , " Makes you move 1 tile down " )
2013-12-31 05:13:57 +00:00
2015-12-28 15:14:52 +00:00
CONSOLE_COMMAND ( " move " , " i[x] i[y] " , CFGFLAG_SERVER | CMDFLAG_TEST , ConMove , this , " Moves to the tile with x/y-number ii " )
CONSOLE_COMMAND ( " move_raw " , " i[x] i[y] " , CFGFLAG_SERVER | CMDFLAG_TEST , ConMoveRaw , this , " Moves to the point with x/y-coordinates ii " )
2017-04-08 22:20:41 +00:00
CONSOLE_COMMAND ( " force_pause " , " v[id] i[seconds] " , CFGFLAG_SERVER , ConForcePause , this , " Force i to pause for i seconds " )
CONSOLE_COMMAND ( " force_unpause " , " v[id] " , CFGFLAG_SERVER , ConForcePause , this , " Set force-pause timer of i to 0. " )
2013-12-31 05:13:57 +00:00
2017-06-26 14:00:03 +00:00
CONSOLE_COMMAND ( " set_team_ddr " , " v[id] ?i[team] " , CFGFLAG_SERVER , ConSetDDRTeam , this , " Set ddrace team of a player " )
2019-03-01 21:11:00 +00:00
CONSOLE_COMMAND ( " uninvite " , " v[id] ?i[team] " , CFGFLAG_SERVER , ConUninvite , this , " Uninvite player from team " )
2010-11-02 16:07:45 +00:00
2018-04-21 16:45:33 +00:00
CONSOLE_COMMAND ( " vote_mute " , " v[id] i[seconds] " , CFGFLAG_SERVER , ConVoteMute , this , " Remove v's right to vote for i seconds " )
2019-03-19 19:18:11 +00:00
CONSOLE_COMMAND ( " vote_unmute " , " v[id] " , CFGFLAG_SERVER , ConVoteUnmute , this , " Give back v's right to vote. " )
2019-03-19 19:25:21 +00:00
CONSOLE_COMMAND ( " vote_mutes " , " " , CFGFLAG_SERVER , ConVoteMutes , this , " List the current active vote mutes. " )
2018-01-17 20:54:37 +00:00
CONSOLE_COMMAND ( " mute " , " " , CFGFLAG_SERVER , ConMute , this , " " )
2020-03-30 21:51:58 +00:00
CONSOLE_COMMAND ( " muteid " , " v[id] i[seconds] ?r[reason] " , CFGFLAG_SERVER , ConMuteID , this , " " )
CONSOLE_COMMAND ( " muteip " , " s[ip] i[seconds] ?r[reason] " , CFGFLAG_SERVER , ConMuteIP , this , " " )
2018-01-17 20:54:37 +00:00
CONSOLE_COMMAND ( " unmute " , " v[id] " , CFGFLAG_SERVER , ConUnmute , this , " " )
CONSOLE_COMMAND ( " mutes " , " " , CFGFLAG_SERVER , ConMutes , this , " " )
2018-01-05 11:04:06 +00:00
CONSOLE_COMMAND ( " moderate " , " " , CFGFLAG_SERVER , ConModerate , this , " Enables/disables active moderator mode for the player " )
2018-01-18 15:17:23 +00:00
CONSOLE_COMMAND ( " vote_no " , " " , CFGFLAG_SERVER , ConVoteNo , this , " Same as \" vote no \" " )
2020-02-13 16:04:58 +00:00
CONSOLE_COMMAND ( " save_dry " , " " , CFGFLAG_SERVER , ConDrySave , this , " Dump the current savestring " )
2014-07-16 00:59:39 +00:00
2017-09-13 20:35:09 +00:00
CONSOLE_COMMAND ( " freezehammer " , " v[id] " , CFGFLAG_SERVER | CMDFLAG_TEST , ConFreezeHammer , this , " Gives a player Freeze Hammer " )
CONSOLE_COMMAND ( " unfreezehammer " , " v[id] " , CFGFLAG_SERVER | CMDFLAG_TEST , ConUnFreezeHammer , this , " Removes Freeze Hammer from a player " )
2010-11-02 16:07:45 +00:00
# undef CONSOLE_COMMAND