|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
#include "sv_damagetext.qh"Go to the source code of this file.
Macros | |
| #define | SV_DAMAGETEXT_ALL() |
| #define | SV_DAMAGETEXT_DISABLED() |
| #define | SV_DAMAGETEXT_PLAYERS() |
| #define | SV_DAMAGETEXT_SPECTATORS_ONLY() |
Functions | |
| AUTOCVAR (sv_damagetext, int, 2, "\\\"0\\\" = disable damage text, \\\"1\\\" = show damage text to spectators, \\\"2\\\" = also to the attacker, \\\"3\\\" = show damage text to all players") | |
| MUTATOR_HOOKFUNCTION (damagetext, ClientDisconnect) | |
| MUTATOR_HOOKFUNCTION (damagetext, PlayerDamaged) | |
| MUTATOR_HOOKFUNCTION (damagetext, PlayerSpawn) | |
| REGISTER_MUTATOR (damagetext, true) | |
| bool | write_damagetext (entity this, entity client, int sf) |
Variables | |
| const int | BITS_PER_INT = 24 |
| int | dent_attackers [DENT_ATTACKERS_SIZE] |
| const int | DENT_ATTACKERS_SIZE = 11 |
| float | dent_net_armor |
| float | dent_net_deathtype |
| int | dent_net_flags |
| float | dent_net_health |
| float | dent_net_potential |
| #define SV_DAMAGETEXT_ALL | ( | ) |
Definition at line 10 of file sv_damagetext.qc.
Referenced by write_damagetext().
| #define SV_DAMAGETEXT_DISABLED | ( | ) |
Definition at line 7 of file sv_damagetext.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| #define SV_DAMAGETEXT_PLAYERS | ( | ) |
Definition at line 9 of file sv_damagetext.qc.
Referenced by write_damagetext().
| #define SV_DAMAGETEXT_SPECTATORS_ONLY | ( | ) |
Definition at line 8 of file sv_damagetext.qc.
Referenced by write_damagetext().
| AUTOCVAR | ( | sv_damagetext | , |
| int | , | ||
| 2 | , | ||
| "\\\"0\\\" | = disable damage text, | ||
| \\\"1\\\" | = show damage text to spectators, | ||
| \\\"2\\\" | = also to the attacker ) |
| MUTATOR_HOOKFUNCTION | ( | damagetext | , |
| ClientDisconnect | ) |
Definition at line 138 of file sv_damagetext.qc.
References BIT, BITS_PER_INT, ClientDisconnect, entity(), etof, floor(), FOREACH_CLIENT, IS_PLAYER, and M_ARGV.
| MUTATOR_HOOKFUNCTION | ( | damagetext | , |
| PlayerDamaged | ) |
Definition at line 62 of file sv_damagetext.qc.
References almost_equals_eps(), BIT, BITS_PER_INT, DAMAGETEXT_SHORT_LIMIT, DEATH_WEAPONOF, DTFLAG_BIG_ARMOR, DTFLAG_BIG_HEALTH, DTFLAG_BIG_POTENTIAL, DTFLAG_NO_ARMOR, DTFLAG_NO_POTENTIAL, DTFLAG_SAMETEAM, DTFLAG_STOP_ACCUMULATION, entity(), etof, flags, floor(), health, M_ARGV, MUTATOR_IS_ENABLED, Net_LinkEntity(), new_pure, SAME_TEAM, setthink, SUB_Remove(), SV_DAMAGETEXT_DISABLED, time, and write_damagetext().
| MUTATOR_HOOKFUNCTION | ( | damagetext | , |
| PlayerSpawn | ) |
Definition at line 150 of file sv_damagetext.qc.
References DENT_ATTACKERS_SIZE, entity(), and M_ARGV.
| REGISTER_MUTATOR | ( | damagetext | , |
| true | ) |
Definition at line 23 of file sv_damagetext.qc.
References DAMAGETEXT_PRECISION_MULTIPLIER, dent_net_armor, dent_net_deathtype, dent_net_flags, dent_net_health, dent_net_potential, DTFLAG_BIG_ARMOR, DTFLAG_BIG_HEALTH, DTFLAG_BIG_POTENTIAL, DTFLAG_NO_ARMOR, DTFLAG_NO_POTENTIAL, enemy, entity(), etof, flags, health, IS_OBSERVER, IS_SPEC, MSG_ENTITY, realowner, SV_DAMAGETEXT_ALL, SV_DAMAGETEXT_PLAYERS, SV_DAMAGETEXT_SPECTATORS_ONLY, WriteByte(), WriteHeader, and WriteShort().
Referenced by MUTATOR_HOOKFUNCTION().
| const int BITS_PER_INT = 24 |
Definition at line 18 of file sv_damagetext.qc.
Referenced by MUTATOR_HOOKFUNCTION(), and MUTATOR_HOOKFUNCTION().
| int dent_attackers[DENT_ATTACKERS_SIZE] |
Definition at line 21 of file sv_damagetext.qc.
| const int DENT_ATTACKERS_SIZE = 11 |
Definition at line 19 of file sv_damagetext.qc.
Referenced by MUTATOR_HOOKFUNCTION().
| float dent_net_armor |
Definition at line 15 of file sv_damagetext.qc.
Referenced by write_damagetext().
| float dent_net_deathtype |
Definition at line 13 of file sv_damagetext.qc.
Referenced by write_damagetext().
| int dent_net_flags |
Definition at line 12 of file sv_damagetext.qc.
Referenced by write_damagetext().
| float dent_net_health |
Definition at line 14 of file sv_damagetext.qc.
Referenced by write_damagetext().
| float dent_net_potential |
Definition at line 16 of file sv_damagetext.qc.
Referenced by write_damagetext().