Xonotic
|
Go to the source code of this file.
Functions | |
void | accuracy_add (entity e, Weapon w, float fired, float hit) |
bool | accuracy_canbegooddamage (entity attacker) |
void | accuracy_free (entity e) |
void | accuracy_init (entity e) |
bool | accuracy_isgooddamage (entity attacker, entity targ) |
void | accuracy_resend (entity e) |
void | accuracy_reset (entity e) |
REPLICATE_INIT (bool, cvar_cl_accuracy_data_share) | |
REPLICATE_INIT (bool, cvar_cl_accuracy_data_receive) | |
Variables | |
entity | accuracy |
float | accuracy_cnt_fired [REGISTRY_MAX(Weapons)] |
float | accuracy_cnt_hit [REGISTRY_MAX(Weapons)] |
float | accuracy_fired [REGISTRY_MAX(Weapons)] |
float | accuracy_frags [REGISTRY_MAX(Weapons)] |
float | accuracy_hit [REGISTRY_MAX(Weapons)] |
float | autocvar_sv_accuracy_data_share = 1 |
Weapon Accuracy stats. More... | |
Definition at line 83 of file accuracy.qc.
References accuracy_byte(), CS(), entity(), FOREACH_CLIENT, IS_INDEPENDENT_PLAYER, IS_SPEC, Weapon::m_id, time, and WEP_FIRST.
Referenced by Fire_AddDamage(), fireBullet_antilag(), FireRailgunBullet(), RadiusDamageForSource(), and W_SetupShot_Dir_ProjectileSize_Range().
Definition at line 132 of file accuracy.qc.
References IS_CLIENT, REPLICATE(), and warmup_stage.
Referenced by W_SetupShot_Dir_ProjectileSize_Range().
Definition at line 53 of file accuracy.qc.
References CS().
Definition at line 45 of file accuracy.qc.
References accuracy, accuracy_send(), CS(), entity(), and new_pure.
Definition at line 112 of file accuracy.qc.
References IS_CLIENT, IS_DEAD, MUT_ACCADD_INVALID, MUT_ACCADD_VALID, MUTATOR_CALLHOOK, SAME_TEAM, time, and warmup_stage.
Referenced by Fire_AddDamage(), fireBullet_antilag(), PlayerDamage(), and RadiusDamageForSource().
Definition at line 74 of file accuracy.qc.
References CS().
Referenced by PutObserverInServer(), PutPlayerInServer(), and SpectateSet().
Definition at line 58 of file accuracy.qc.
References CS(), entity(), and REGISTRY_MAX.
Referenced by reset_map().
REPLICATE_INIT | ( | bool | , |
cvar_cl_accuracy_data_share | |||
) |
REPLICATE_INIT | ( | bool | , |
cvar_cl_accuracy_data_receive | |||
) |
entity accuracy |
Definition at line 26 of file accuracy.qh.
Referenced by accuracy_init().
float accuracy_cnt_fired[REGISTRY_MAX(Weapons)] |
Definition at line 32 of file accuracy.qh.
float accuracy_cnt_hit[REGISTRY_MAX(Weapons)] |
Definition at line 31 of file accuracy.qh.
float accuracy_fired[REGISTRY_MAX(Weapons)] |
Definition at line 30 of file accuracy.qh.
float accuracy_frags[REGISTRY_MAX(Weapons)] |
Definition at line 27 of file accuracy.qh.
float accuracy_hit[REGISTRY_MAX(Weapons)] |
Definition at line 29 of file accuracy.qh.
float autocvar_sv_accuracy_data_share = 1 |
Weapon Accuracy stats.
These stats are sent to all the clients to be displayed on the scoreboard and also to Xonstats.
Note that weapon damage is counted differently from player damage:
Definition at line 21 of file accuracy.qh.
Referenced by accuracy_send().