]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/weapons/weaponstats.qh
b67399ee7e0f584d5dcc70c459a0e732fa9b432b
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / weapons / weaponstats.qh
1 #pragma once
2
3 string autocvar_sv_weaponstats_file;
4
5 float weaponstats_buffer;
6
7 void WeaponStats_Init();
8 void WeaponStats_ready(entity fh, entity pass, float status);
9 void WeaponStats_Shutdown();
10 void WeaponStats_LogItem(float awep, float abot, float vwep, float vbot, vector item);
11 void WeaponStats_LogDamage(float awep, float abot, float vwep, float vbot, float damage);
12 void WeaponStats_LogKill(float awep, float abot, float vwep, float vbot);
13
14 #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))