|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
Go to the source code of this file.
Functions | |
| bool | ClientCommand_antispam (entity this, string command,.float antispam_fld, float antispam_time, int antispam_count) |
| Returns true if antispam should prevent the command. | |
| void | ClientCommand_macro_write_aliases (float fh) |
| Used by common/command/generic.qc:GenericCommand_dumpcommands to list all commands into a .txt file. | |
| int | ignore_add_player (entity this, entity ignore, bool to_db_too) |
| Adds a player to the ignore list of another player. | |
| void | ignore_clearall (entity this) |
| void | ignore_list_send (entity this) |
| void | ignore_list_update_on_connection (entity this) |
| Updates ignore list of all the players. | |
| bool | ignore_playerindb (entity this, entity pl) |
| Checks if pl is permanently ignored by this. | |
| bool | ignore_playerinlist (entity this, entity pl) |
| Checks if pl is ignored by this (permanently or for the current match). | |
| void | ignore_remove_player (entity this, entity ignore, bool from_db_too) |
| Removes a player from the ignore list of another player. | |
| string | MapVote_Suggest (entity this, string m) |
| bool ClientCommand_antispam | ( | entity | this, |
| string | command, | ||
| .float | antispam_fld, | ||
| float | antispam_time, | ||
| int | antispam_count ) |
Returns true if antispam should prevent the command.
Definition at line 1165 of file cmd.qc.
References CS(), entity(), ftos(), gettime(), GETTIME_FRAMESTART, IS_CLIENT, max(), sprint(), and strcat().
Referenced by MapVote_ReadPlayerVote(), and SV_ParseClientCommand().
Used by common/command/generic.qc:GenericCommand_dumpcommands to list all commands into a .txt file.
Definition at line 1160 of file cmd.qc.
References CMD_Write_Alias, and FOREACH.
Referenced by GENERIC_COMMAND().
Adds a player to the ignore list of another player.
| [in] | this | ignore list owner |
| [in] | ignore | player to add to the ignore list |
| [in] | to_db_too | whether to add ignore to db too (permanent ignore) or not |
Definition at line 88 of file cmd.qc.
References cons(), crypto_idfp, db_get(), db_put(), entity(), etof, ftos(), ignore_list, ignore_list_send_time, IGNORE_MAXPLAYERS, ServerProgsDB, strcat(), strcpy, and time.
Referenced by ClientCommand_ignore(), and ignore_list_update_on_connection().
Definition at line 176 of file cmd.qc.
References crypto_idfp, db_get(), db_remove, entity(), FOREACH_CLIENT, ftos(), ignore_list_send_time, IGNORE_MAXPLAYERS, ignore_remove_player(), IS_REAL_CLIENT, ServerProgsDB, strcat(), and time.
Referenced by ClientCommand_clear_ignores().
Definition at line 168 of file cmd.qc.
References ClientData_Touch(), entity(), IGNORE_LIST_SEND_NOW, and ignore_list_send_time.
Referenced by PlayerFrame().
Updates ignore list of all the players.
It's meant to be called when player 'this' connects.
Definition at line 153 of file cmd.qc.
References entity(), FOREACH_CLIENT, ignore_add_player(), ignore_playerindb(), and IS_REAL_CLIENT.
Referenced by ClientConnect().
Checks if pl is permanently ignored by this.
Definition at line 117 of file cmd.qc.
References cons(), crypto_idfp, db_get(), entity(), ftos(), IGNORE_MAXPLAYERS, PlayerInList(), ServerProgsDB, and strcat().
Referenced by ignore_list_update_on_connection().
Checks if pl is ignored by this (permanently or for the current match).
Definition at line 134 of file cmd.qc.
References entity(), etof, FOREACH_WORD, ftos(), ignore_list, and strcat().
Referenced by ClientCommand_ignore(), and Say().
Removes a player from the ignore list of another player.
| [in] | this | ignore list owner |
| [in] | ignore | player to remove from the ignore list |
| [in] | from_db_too | whether to remove player from db too (permanent ignore) or not |
Definition at line 47 of file cmd.qc.
References cons(), crypto_idfp, db_get(), db_remove, entity(), etof, FOREACH_WORD, ftos(), ignore_list, ignore_list_send_time, IGNORE_MAXPLAYERS, ServerProgsDB, strcat(), strcpy, and time.
Referenced by ClientCommand_unignore(), ClientDisconnect(), and ignore_clearall().
Definition at line 91 of file sv_mapvoting.qc.
References autocvar_g_maplist_votable_suggestions, autocvar_g_maplist_votable_suggestions_override_mostrecent, autocvar_sv_eventlog, autocvar_sv_vote_gametype, entity(), floor(), GameLogEcho(), gametypevote, GameTypeVote_MapInfo_FixName(), itos, Map_IsRecent(), MapInfo_CheckMap(), MAPVOTE_COUNT, mapvote_initialized, mv_suggester, mv_suggestion_ptr, mv_suggestions, netname, playerid, random(), strcat(), strunzone(), and strzone().
Referenced by ClientCommand_suggestmap().
| int autocvar_sv_clientcommand_antispam_count |
Definition at line 4 of file cmd.qh.
Referenced by SV_ParseClientCommand().
| float autocvar_sv_clientcommand_antispam_time |
Definition at line 3 of file cmd.qh.
Referenced by SV_ParseClientCommand().
| float cmd_floodtime |
Definition at line 6 of file cmd.qh.
Referenced by SV_ParseClientCommand().
| const int IGNORE_LIST_SEND_NOW = -1 |
Definition at line 8 of file cmd.qh.
Referenced by ClientData_Send(), and ignore_list_send().
| float ignore_list_send_time |
Definition at line 9 of file cmd.qh.
Referenced by ignore_add_player(), ignore_clearall(), ignore_list_send(), ignore_remove_player(), and PlayerFrame().
| const int IGNORE_MAXPLAYERS = 16 |
Definition at line 11 of file cmd.qh.
Referenced by ClientCommand_ignore(), ignore_add_player(), ignore_clearall(), ignore_playerindb(), and ignore_remove_player().