|
Xonotic QuakeC
The free, fast arena FPS with crisp movement and a wide array of weapons
|
|
Go to the source code of this file.
Functions | |
| void | accuracy_add (entity e, Weapon w, float fired, float hit, float real) |
| update accuracy stats | |
| bool | accuracy_canbegooddamage (entity attacker) |
| if damage were to occur, would accuracy_isgooddamage be able to return true? | |
| void | accuracy_free (entity e) |
| void | accuracy_init (entity e) |
| init/free | |
| bool | accuracy_isgooddamage (entity attacker, entity targ) |
| does this damage count towards accuracy stats? | |
| void | accuracy_resend (entity e) |
| force a resend of a player's accuracy stats | |
| void | accuracy_reset (entity e) |
| REPLICATE_INIT (bool, cvar_cl_accuracy_data_receive) | |
| REPLICATE_INIT (bool, cvar_cl_accuracy_data_share) | |
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 | accuracy_real [REGISTRY_MAX(Weapons)] |
| float | autocvar_sv_accuracy_data_share = 1 |
| Weapon Accuracy stats. | |
update accuracy stats
Definition at line 102 of file accuracy.qc.
References accuracy_byte(), BIT, CS(), entity(), FOREACH_CLIENT, IS_INDEPENDENT_PLAYER, IS_SPEC, Weapon::m_id, STAT, time, and WEP_FIRST.
Referenced by Fire_AddDamage(), fireBullet_falloff(), FireRailgunBullet(), PlayerDamage(), RadiusDamageForSource(), W_Arc_Beam_Think(), W_Fireball_Explode(), W_OverkillRocketPropelledChainsaw_Explode(), W_OverkillRocketPropelledChainsaw_Think(), W_RocketMinsta_Explosion(), W_SetupShot_Dir_ProjectileSize_Range(), and W_Shotgun_Melee_Think().
if damage were to occur, would accuracy_isgooddamage be able to return true?
used to check if potential damage (for accuracy_fired) is good
Definition at line 154 of file accuracy.qc.
References entity(), IS_CLIENT, and warmup_stage.
Referenced by W_RocketMinsta_Explosion(), and W_SetupShot_Dir_ProjectileSize_Range().
Definition at line 58 of file accuracy.qc.
init/free
Definition at line 50 of file accuracy.qc.
does this damage count towards accuracy stats?
e.g. ignore team damage, damage to dead players, damage to map entities
Definition at line 133 of file accuracy.qc.
References entity(), game_stopped, IS_CLIENT, IS_DEAD, MUT_ACCADD_INVALID, MUT_ACCADD_VALID, MUTATOR_CALLHOOK, SAME_TEAM, time, and warmup_stage.
Referenced by Fire_AddDamage(), fireBullet_falloff(), PlayerDamage(), RadiusDamageForSource(), W_Arc_Beam_Think(), W_Fireball_Explode(), W_OverkillRocketPropelledChainsaw_Think(), and W_Shotgun_Melee_Think().
force a resend of a player's accuracy stats
Definition at line 80 of file accuracy.qc.
References CS(), and entity().
Referenced by PutObserverInServer(), PutPlayerInServer(), and SpectateSet().
Definition at line 63 of file accuracy.qc.
References CS(), entity(), REGISTRY_MAX, and Weapons.
Referenced by reset_map().
| REPLICATE_INIT | ( | bool | , |
| cvar_cl_accuracy_data_receive | ) |
| REPLICATE_INIT | ( | bool | , |
| cvar_cl_accuracy_data_share | ) |
| entity accuracy |
Definition at line 26 of file accuracy.qh.
Referenced by Accuracy_GetColor(), and accuracy_init().
| float accuracy_cnt_fired[REGISTRY_MAX(Weapons)] |
Definition at line 33 of file accuracy.qh.
Referenced by PlayerStats_GameReport_Accuracy().
| float accuracy_cnt_hit[REGISTRY_MAX(Weapons)] |
Definition at line 32 of file accuracy.qh.
Referenced by PlayerStats_GameReport_Accuracy().
| float accuracy_fired[REGISTRY_MAX(Weapons)] |
Definition at line 31 of file accuracy.qh.
Referenced by PlayerStats_GameReport_Accuracy().
| float accuracy_frags[REGISTRY_MAX(Weapons)] |
Definition at line 27 of file accuracy.qh.
Referenced by PlayerStats_GameReport_Accuracy().
| float accuracy_hit[REGISTRY_MAX(Weapons)] |
Definition at line 30 of file accuracy.qh.
Referenced by PlayerStats_GameReport_Accuracy().
| float accuracy_real[REGISTRY_MAX(Weapons)] |
Definition at line 29 of file accuracy.qh.
Referenced by PlayerStats_GameReport_Accuracy().
| 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().