Xonotic
|
#include "accuracy.qh"
#include <common/constants.qh>
#include <common/net_linked.qh>
#include <common/teams.qh>
#include <common/util.qh>
#include <common/weapons/_all.qh>
#include <server/client.qh>
#include <server/damage.qh>
#include <server/mutators/_mod.qh>
#include <server/player.qh>
#include <server/world.qh>
Go to the source code of this file.
Functions | |
void | accuracy_add (entity this, Weapon w, float fired, float hit) |
int | accuracy_byte (float n, float d) |
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) |
bool | accuracy_send (entity this, entity to, int sf) |
REPLICATE (cvar_cl_accuracy_data_share, bool, "cl_accuracy_data_share") | |
REPLICATE (cvar_cl_accuracy_data_receive, bool, "cl_accuracy_data_receive") | |
Variables | |
float | fired_time |
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 14 of file accuracy.qc.
References rint().
Referenced by accuracy_add(), and accuracy_send().
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().
Referenced by ClientState_attach(), and ClientState_detach().
Definition at line 45 of file accuracy.qc.
References accuracy, accuracy_send(), CS(), entity(), and new_pure.
Referenced by ClientState_attach(), and PlayerState_detach().
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().
Definition at line 21 of file accuracy.qc.
References accuracy_byte(), autocvar_sv_accuracy_data_share, CS(), CS_CVAR, entity(), IS_SPEC, owner, WEP_FIRST, WEP_LAST, and WriteByte().
Referenced by accuracy_init().
REPLICATE | ( | cvar_cl_accuracy_data_share | , |
bool | , | ||
"cl_accuracy_data_share" | |||
) |
REPLICATE | ( | cvar_cl_accuracy_data_receive | , |
bool | , | ||
"cl_accuracy_data_receive" | |||
) |
float fired_time |
Definition at line 81 of file accuracy.qc.