Xonotic
|
#include "sv_damagetext.qh"
Go to the source code of this file.
Macros | |
#define | SV_DAMAGETEXT_ALL() (autocvar_sv_damagetext >= 3) |
#define | SV_DAMAGETEXT_DISABLED() (autocvar_sv_damagetext <= 0) |
#define | SV_DAMAGETEXT_PLAYERS() (autocvar_sv_damagetext >= 2) |
#define | SV_DAMAGETEXT_SPECTATORS_ONLY() (autocvar_sv_damagetext >= 1) |
Functions | |
AUTOCVAR (sv_damagetext, int, 2, "<= 0: disabled, >= 1: visible to spectators, >= 2: visible to attacker, >= 3: all players see everyone's damage") | |
MUTATOR_HOOKFUNCTION (damagetext, PlayerDamaged) | |
REGISTER_MUTATOR (damagetext, true) | |
bool | write_damagetext (entity this, entity client, int sf) |
Variables | |
float | dent_net_armor |
float | dent_net_deathtype |
int | dent_net_flags |
float | dent_net_health |
float | dent_net_potential |
#define SV_DAMAGETEXT_ALL | ( | ) | (autocvar_sv_damagetext >= 3) |
Definition at line 10 of file sv_damagetext.qc.
Referenced by write_damagetext().
#define SV_DAMAGETEXT_DISABLED | ( | ) | (autocvar_sv_damagetext <= 0) |
Definition at line 7 of file sv_damagetext.qc.
Referenced by MUTATOR_HOOKFUNCTION().
#define SV_DAMAGETEXT_PLAYERS | ( | ) | (autocvar_sv_damagetext >= 2) |
Definition at line 9 of file sv_damagetext.qc.
Referenced by write_damagetext().
#define SV_DAMAGETEXT_SPECTATORS_ONLY | ( | ) | (autocvar_sv_damagetext >= 1) |
Definition at line 8 of file sv_damagetext.qc.
Referenced by write_damagetext().
AUTOCVAR | ( | sv_damagetext | , |
int | , | ||
2 | , | ||
"<= 0: | disabled, | ||
>=1:visible to | spectators, | ||
>=2:visible to | attacker, | ||
>=3:all players see everyone 's damage" | |||
) |
MUTATOR_HOOKFUNCTION | ( | damagetext | , |
PlayerDamaged | |||
) |
Definition at line 57 of file sv_damagetext.qc.
References almost_equals_eps(), DAMAGETEXT_SHORT_LIMIT, DEATH_WEAPONOF, DTFLAG_BIG_ARMOR, DTFLAG_BIG_HEALTH, DTFLAG_BIG_POTENTIAL, DTFLAG_NO_ARMOR, DTFLAG_NO_POTENTIAL, DTFLAG_SAMETEAM, entity(), flags, health, M_ARGV, new_pure, SAME_TEAM, setthink, SV_DAMAGETEXT_DISABLED, time, and write_damagetext().
REGISTER_MUTATOR | ( | damagetext | , |
true | |||
) |
Definition at line 18 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, realowner, SV_DAMAGETEXT_ALL, SV_DAMAGETEXT_PLAYERS, SV_DAMAGETEXT_SPECTATORS_ONLY, WriteByte(), and WriteShort().
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().