Xonotic
|
#include "sv_superspec.qh"
Go to the source code of this file.
Macros | |
#define | _ISLOCAL(ent) ((edict_num(1) == (ent)) ? true : false) |
#define | _SSMAGIX "SUPERSPEC_OPTIONSFILE_V1" |
#define | OPTIONINFO(flag, var, test, text, long, short) |
Functions | |
MUTATOR_HOOKFUNCTION (superspec, ItemTouch) | |
MUTATOR_HOOKFUNCTION (superspec, SV_ParseClientCommand) | |
MUTATOR_HOOKFUNCTION (superspec, BuildMutatorsString) | |
MUTATOR_HOOKFUNCTION (superspec, BuildMutatorsPrettyString) | |
MUTATOR_HOOKFUNCTION (superspec, ClientConnect) | |
MUTATOR_HOOKFUNCTION (superspec, PlayerDies) | |
MUTATOR_HOOKFUNCTION (superspec, ClientDisconnect) | |
REGISTER_MUTATOR (superspec, expr_evaluate(autocvar_g_superspectate)) | |
float | superspec_filteritem (entity _for, entity _item) |
void | superspec_hello (entity this) |
void | superspec_msg (string _center_title, string _con_title, entity _to, string _msg, float _spamlevel) |
void | superspec_save_client_conf (entity this) |
bool | superspec_Spectate (entity this, entity targ) |
Variables | |
const float | ASF_ALL = 0xFFFFFF |
const float | ASF_FLAG_GRAB = BIT(4) |
const float | ASF_FOLLOWKILLER = BIT(8) |
const float | ASF_MEGA_AR = BIT(2) |
const float | ASF_MEGA_HP = BIT(3) |
const float | ASF_OBSERVER_ONLY = BIT(5) |
const float | ASF_SHIELD = BIT(1) |
const float | ASF_SHOWWHAT = BIT(6) |
const float | ASF_SSIM = BIT(7) |
const float | ASF_STRENGTH = BIT(0) |
string | autocvar_g_superspectate |
float | autospec_flags |
const float | SSF_ITEMMSG = 4 |
const float | SSF_SILENT = 1 |
const float | SSF_VERBOSE = 2 |
float | superspec_flags |
string | superspec_itemfilter |
Definition at line 7 of file sv_superspec.qc.
Referenced by MUTATOR_HOOKFUNCTION(), and superspec_save_client_conf().
#define _SSMAGIX "SUPERSPEC_OPTIONSFILE_V1" |
Definition at line 6 of file sv_superspec.qc.
Referenced by MUTATOR_HOOKFUNCTION(), and superspec_save_client_conf().
#define OPTIONINFO | ( | flag, | |
var, | |||
test, | |||
text, | |||
long, | |||
short | |||
) |
Referenced by MUTATOR_HOOKFUNCTION().
MUTATOR_HOOKFUNCTION | ( | superspec | , |
ItemTouch | |||
) |
Definition at line 102 of file sv_superspec.qc.
References entity(), FOREACH_CLIENT, IS_OBSERVER, IS_SPEC, M_ARGV, MUT_ITEMTOUCH_CONTINUE, superspec_filteritem(), and superspec_msg().
MUTATOR_HOOKFUNCTION | ( | superspec | , |
SV_ParseClientCommand | |||
) |
Definition at line 152 of file sv_superspec.qc.
References argv(), ASF_ALL, ASF_FLAG_GRAB, ASF_FOLLOWKILLER, ASF_MEGA_AR, ASF_MEGA_HP, ASF_OBSERVER_ONLY, ASF_SHIELD, ASF_SHOWWHAT, ASF_SSIM, ASF_STRENGTH, cmd_argc, cmd_name, entity(), FOREACH_CLIENT, ftos(), IS_PLAYER, M_ARGV, MUTATOR_RETURNVALUE, OPTIONINFO, SSF_ITEMMSG, SSF_SILENT, SSF_VERBOSE, strcat(), strunzone(), strzone(), superspec_msg(), superspec_Spectate(), and tokenize_console.
MUTATOR_HOOKFUNCTION | ( | superspec | , |
BuildMutatorsString | |||
) |
Definition at line 374 of file sv_superspec.qc.
References M_ARGV, and strcat().
MUTATOR_HOOKFUNCTION | ( | superspec | , |
BuildMutatorsPrettyString | |||
) |
Definition at line 379 of file sv_superspec.qc.
References M_ARGV, and strcat().
MUTATOR_HOOKFUNCTION | ( | superspec | , |
ClientConnect | |||
) |
Definition at line 392 of file sv_superspec.qc.
References _ISLOCAL, _SSMAGIX, entity(), fclose(), fgets(), FILE_READ, fopen(), IS_REAL_CLIENT, LOG_TRACE, M_ARGV, new_pure, setthink, SSF_VERBOSE, stof(), strzone(), superspec_hello(), and time.
MUTATOR_HOOKFUNCTION | ( | superspec | , |
PlayerDies | |||
) |
Definition at line 440 of file sv_superspec.qc.
References ASF_FOLLOWKILLER, entity(), FOREACH_CLIENT, IS_PLAYER, IS_SPEC, and M_ARGV.
MUTATOR_HOOKFUNCTION | ( | superspec | , |
ClientDisconnect | |||
) |
Definition at line 456 of file sv_superspec.qc.
References entity(), M_ARGV, and superspec_save_client_conf().
REGISTER_MUTATOR | ( | superspec | , |
expr_evaluate(autocvar_g_superspectate) | |||
) |
Definition at line 82 of file sv_superspec.qc.
References argv(), and tokenize_console.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 384 of file sv_superspec.qc.
References enemy.
Referenced by MUTATOR_HOOKFUNCTION().
void superspec_msg | ( | string | _center_title, |
string | _con_title, | ||
entity | _to, | ||
string | _msg, | ||
float | _spamlevel | ||
) |
Definition at line 68 of file sv_superspec.qc.
References centerprint(), sprint(), and strcat().
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 36 of file sv_superspec.qc.
References _ISLOCAL, _SSMAGIX, autospec_flags, crypto_idfp, fclose(), FILE_WRITE, fopen(), fputs(), ftos(), LOG_TRACE, superspec_flags, and superspec_itemfilter.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 28 of file sv_superspec.qc.
References Spectate(), and TRANSMUTE().
Referenced by MUTATOR_HOOKFUNCTION().
const float ASF_ALL = 0xFFFFFF |
Definition at line 18 of file sv_superspec.qc.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 13 of file sv_superspec.qc.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 17 of file sv_superspec.qc.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 11 of file sv_superspec.qc.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 12 of file sv_superspec.qc.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 14 of file sv_superspec.qc.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 10 of file sv_superspec.qc.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 15 of file sv_superspec.qc.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 16 of file sv_superspec.qc.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 9 of file sv_superspec.qc.
Referenced by MUTATOR_HOOKFUNCTION().
string autocvar_g_superspectate |
Definition at line 3 of file sv_superspec.qc.
float autospec_flags |
Definition at line 19 of file sv_superspec.qc.
Referenced by superspec_save_client_conf().
const float SSF_ITEMMSG = 4 |
Definition at line 23 of file sv_superspec.qc.
Referenced by MUTATOR_HOOKFUNCTION().
const float SSF_SILENT = 1 |
Definition at line 21 of file sv_superspec.qc.
Referenced by MUTATOR_HOOKFUNCTION().
const float SSF_VERBOSE = 2 |
Definition at line 22 of file sv_superspec.qc.
Referenced by MUTATOR_HOOKFUNCTION().
float superspec_flags |
Definition at line 24 of file sv_superspec.qc.
Referenced by superspec_save_client_conf().
string superspec_itemfilter |
Definition at line 26 of file sv_superspec.qc.
Referenced by superspec_save_client_conf().