Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
cmd.qh
Go to the documentation of this file.
1#pragma once
2
5
7.string ignore_list; // stores player id's, maybe can be upgraded to store net address for reconnect protection
8const int IGNORE_LIST_SEND_NOW = -1; // special value that should be set only by ignore_list_send
9.float ignore_list_send_time; // allow sending ignore_list with a small delay to reduce spam especially on map switch
10
11const int IGNORE_MAXPLAYERS = 16; // maximum players that can be ignored permanently
12
13string MapVote_Suggest(entity this, string m);
14
17
19bool ClientCommand_antispam(entity this, string command, .float antispam_fld, float antispam_time, int antispam_count);
20
21// functions for ignore command
22void ignore_remove_player(entity this, entity ignore, bool from_db_too);
23int ignore_add_player(entity this, entity ignore, bool to_db_too);
24bool ignore_playerindb(entity this, entity pl); // permanent ignores
25bool ignore_playerinlist(entity this, entity pl); // all ignores
26void ignore_clearall(entity this);
28void ignore_list_send(entity this);
var entity(vector mins, vector maxs,.entity tofield) findbox_tofield_OrFallback
string ignore_list
Definition main.qh:130
void ignore_list_update_on_connection(entity this)
Updates ignore list of all the players.
Definition cmd.qc:153
bool ignore_playerinlist(entity this, entity pl)
Checks if pl is ignored by this (permanently or for the current match).
Definition cmd.qc:134
string MapVote_Suggest(entity this, string m)
void ignore_list_send(entity this)
Definition cmd.qc:168
float ignore_list_send_time
Definition cmd.qh:9
void ignore_remove_player(entity this, entity ignore, bool from_db_too)
Removes a player from the ignore list of another player.
Definition cmd.qc:47
const int IGNORE_LIST_SEND_NOW
Definition cmd.qh:8
void ClientCommand_macro_write_aliases(float fh)
Used by common/command/generic.qc:GenericCommand_dumpcommands to list all commands into a ....
Definition cmd.qc:1160
int ignore_add_player(entity this, entity ignore, bool to_db_too)
Adds a player to the ignore list of another player.
Definition cmd.qc:88
const int IGNORE_MAXPLAYERS
Definition cmd.qh:11
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 cmd.qc:1165
float cmd_floodtime
Definition cmd.qh:6
float autocvar_sv_clientcommand_antispam_time
Definition cmd.qh:3
bool ignore_playerindb(entity this, entity pl)
Checks if pl is permanently ignored by this.
Definition cmd.qc:117
void ignore_clearall(entity this)
Definition cmd.qc:176
int autocvar_sv_clientcommand_antispam_count
Definition cmd.qh:4