Xonotic
|
Go to the source code of this file.
Macros | |
#define | WEAPONSTATS_GETINDEX(awep, abot, vwep, vbot) (((vwep) + (awep) * (WEP_LAST - WEP_FIRST + 1) - (WEP_FIRST + WEP_FIRST * (WEP_LAST - WEP_FIRST + 1))) * 4 + (abot) * 2 + (vbot)) |
Functions | |
void | WeaponStats_Init () |
void | WeaponStats_LogDamage (float awep, float abot, float vwep, float vbot, float damage) |
void | WeaponStats_LogItem (float awep, float abot, float vwep, float vbot, vector item) |
void | WeaponStats_LogKill (float awep, float abot, float vwep, float vbot) |
void | WeaponStats_ready (entity fh, entity pass, float status) |
void | WeaponStats_Shutdown () |
Variables | |
string | autocvar_sv_weaponstats_file |
float | weaponstats_buffer |
#define WEAPONSTATS_GETINDEX | ( | awep, | |
abot, | |||
vwep, | |||
vbot | |||
) | (((vwep) + (awep) * (WEP_LAST - WEP_FIRST + 1) - (WEP_FIRST + WEP_FIRST * (WEP_LAST - WEP_FIRST + 1))) * 4 + (abot) * 2 + (vbot)) |
Definition at line 14 of file weaponstats.qh.
Referenced by WeaponStats_LogItem(), and WeaponStats_ready().
void WeaponStats_Init | ( | ) |
Definition at line 9 of file weaponstats.qc.
References autocvar_sv_weaponstats_file, buf_create, and weaponstats_buffer.
Referenced by RestoreGame(), and spawnfunc().
Definition at line 101 of file weaponstats.qc.
References error(), and WeaponStats_LogItem().
Referenced by PlayerDamage().
Definition at line 88 of file weaponstats.qc.
References stov(), vtos(), weaponstats_buffer, WEAPONSTATS_GETINDEX, WEP_FIRST, and WEP_LAST.
Referenced by WeaponStats_LogDamage(), and WeaponStats_LogKill().
Definition at line 108 of file weaponstats.qc.
References WeaponStats_LogItem().
Referenced by PlayerDamage().
Definition at line 14 of file weaponstats.qc.
References argv(), autocvar_hostname, cvar_purechanges, cvar_purechanges_count, ftos(), GetGametype(), GetMapname(), LOG_INFO, stov(), strcat(), tokenizebyseparator, url_fclose(), url_fgets(), url_fputs(), URL_READY_CANREAD, URL_READY_CANWRITE, URL_READY_CLOSED, URL_READY_ERROR, v, vector(), weaponstats_buffer, WEAPONSTATS_GETINDEX, WEP_FIRST, and WEP_LAST.
Referenced by WeaponStats_Shutdown().
void WeaponStats_Shutdown | ( | ) |
Definition at line 73 of file weaponstats.qc.
References autocvar_sv_weaponstats_file, FILE_APPEND, NULL, url_multi_fopen(), weaponstats_buffer, and WeaponStats_ready().
Referenced by NextLevel(), and Shutdown().
string autocvar_sv_weaponstats_file |
Definition at line 3 of file weaponstats.qh.
Referenced by WeaponStats_Init(), and WeaponStats_Shutdown().
float weaponstats_buffer |
Definition at line 5 of file weaponstats.qh.
Referenced by WeaponStats_Init(), WeaponStats_LogItem(), WeaponStats_ready(), and WeaponStats_Shutdown().