|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "sv_superspec.qh"Go to the source code of this file.
Macros | |
| #define | _ISLOCAL(ent) |
| #define | _SSMAGIX "SUPERSPEC_OPTIONSFILE_V1" |
| #define | OPTIONINFO(flag, var, test, text, long, short) |
Functions | |
| MUTATOR_HOOKFUNCTION (superspec, BuildMutatorsPrettyString) | |
| MUTATOR_HOOKFUNCTION (superspec, BuildMutatorsString) | |
| MUTATOR_HOOKFUNCTION (superspec, ClientConnect) | |
| MUTATOR_HOOKFUNCTION (superspec, ClientDisconnect) | |
| MUTATOR_HOOKFUNCTION (superspec, ItemTouch) | |
| MUTATOR_HOOKFUNCTION (superspec, PlayerDies) | |
| MUTATOR_HOOKFUNCTION (superspec, SV_ParseClientCommand) | |
| 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 int | ASF_ALL = 0xFFFFFF |
| const int | ASF_FLAG_GRAB = BIT(4) |
| const int | ASF_FOLLOWKILLER = BIT(8) |
| const int | ASF_MEGA_AR = BIT(2) |
| const int | ASF_MEGA_HP = BIT(3) |
| const int | ASF_OBSERVER_ONLY = BIT(5) |
| const int | ASF_SHIELD = BIT(1) |
| const int | ASF_SHOWWHAT = BIT(6) |
| const int | ASF_SSIM = BIT(7) |
| const int | ASF_STRENGTH = BIT(0) |
| string | autocvar_g_superspectate |
| int | autospec_flags |
| const int | SSF_ITEMMSG = BIT(2) |
| const int | SSF_SILENT = BIT(0) |
| const int | SSF_VERBOSE = BIT(1) |
| int | superspec_flags |
| string | superspec_itemfilter |
| #define _ISLOCAL | ( | ent | ) |
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 | , |
| BuildMutatorsPrettyString | ) |
Definition at line 377 of file sv_superspec.qc.
| MUTATOR_HOOKFUNCTION | ( | superspec | , |
| BuildMutatorsString | ) |
| MUTATOR_HOOKFUNCTION | ( | superspec | , |
| ClientConnect | ) |
Definition at line 390 of file sv_superspec.qc.
References _ISLOCAL, _SSMAGIX, ClientConnect, entity(), fclose(), fgets(), FILE_READ, fopen(), IS_REAL_CLIENT, LOG_TRACE, M_ARGV, new_pure, setthink, SSF_VERBOSE, stoi, strzone(), superspec_hello(), and time.
| MUTATOR_HOOKFUNCTION | ( | superspec | , |
| ClientDisconnect | ) |
Definition at line 454 of file sv_superspec.qc.
References ClientDisconnect, entity(), M_ARGV, and superspec_save_client_conf().
| MUTATOR_HOOKFUNCTION | ( | superspec | , |
| ItemTouch | ) |
Definition at line 100 of file sv_superspec.qc.
References ASF_FLAG_GRAB, ASF_MEGA_AR, ASF_MEGA_HP, ASF_OBSERVER_ONLY, ASF_SHIELD, ASF_SHOWWHAT, ASF_SSIM, ASF_STRENGTH, entity(), FOREACH_CLIENT, IS_OBSERVER, IS_SPEC, M_ARGV, MUT_ITEMTOUCH_CONTINUE, SSF_ITEMMSG, SSF_VERBOSE, superspec_filteritem(), superspec_msg(), superspec_Spectate(), and toucher.
| MUTATOR_HOOKFUNCTION | ( | superspec | , |
| PlayerDies | ) |
Definition at line 438 of file sv_superspec.qc.
References ASF_FOLLOWKILLER, ASF_SHOWWHAT, entity(), FOREACH_CLIENT, frag_target, IS_PLAYER, IS_SPEC, M_ARGV, superspec_msg(), and superspec_Spectate().
| MUTATOR_HOOKFUNCTION | ( | superspec | , |
| SV_ParseClientCommand | ) |
Definition at line 150 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, StatusEffects_active(), strcat(), strunzone(), strzone(), superspec_msg(), superspec_Spectate(), SV_ParseClientCommand, and tokenize_console.
| REGISTER_MUTATOR | ( | superspec | , |
| expr_evaluate(autocvar_g_superspectate) | ) |
References autocvar_g_superspectate.
Definition at line 80 of file sv_superspec.qc.
References argv(), entity(), and tokenize_console.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 382 of file sv_superspec.qc.
References enemy, entity(), and Send_Notification().
Referenced by MUTATOR_HOOKFUNCTION().
| void superspec_msg | ( | string | _center_title, |
| string | _con_title, | ||
| entity | _to, | ||
| string | _msg, | ||
| float | _spamlevel ) |
Definition at line 66 of file sv_superspec.qc.
References centerprint(), entity(), sprint(), SSF_SILENT, SSF_VERBOSE, and strcat().
Referenced by MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
Definition at line 34 of file sv_superspec.qc.
References _ISLOCAL, _SSMAGIX, autospec_flags, crypto_idfp, entity(), fclose(), FILE_WRITE, fopen(), fputs(), itos, LOG_TRACE, superspec_flags, and superspec_itemfilter.
Referenced by MUTATOR_HOOKFUNCTION().
Definition at line 28 of file sv_superspec.qc.
References entity(), and Spectate().
Referenced by MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
| const int 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(), and MUTATOR_HOOKFUNCTION().
Definition at line 17 of file sv_superspec.qc.
Referenced by MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
Definition at line 11 of file sv_superspec.qc.
Referenced by MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
Definition at line 12 of file sv_superspec.qc.
Referenced by MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
Definition at line 14 of file sv_superspec.qc.
Referenced by MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
Definition at line 10 of file sv_superspec.qc.
Referenced by MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
Definition at line 15 of file sv_superspec.qc.
Referenced by MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
Definition at line 16 of file sv_superspec.qc.
Referenced by MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
Definition at line 9 of file sv_superspec.qc.
Referenced by MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
| string autocvar_g_superspectate |
Definition at line 3 of file sv_superspec.qc.
Referenced by REGISTER_MUTATOR().
| int autospec_flags |
Definition at line 19 of file sv_superspec.qc.
Referenced by superspec_save_client_conf().
Definition at line 23 of file sv_superspec.qc.
Referenced by MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
Definition at line 21 of file sv_superspec.qc.
Referenced by MUTATOR_HOOKFUNCTION(), and superspec_msg().
Definition at line 22 of file sv_superspec.qc.
Referenced by MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), MUTATOR_HOOKFUNCTION(), and superspec_msg().
| int 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().