]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/weapons/weaponstats.qh
#include this
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / weapons / weaponstats.qh
1 #ifndef WEAPONSTATS_H
2 #define WEAPONSTATS_H
3
4 #if defined(CSQC)
5 #elif defined(MENUQC)
6 #elif defined(SVQC)
7     #include "../../common/util-pre.qh"
8     #include "../sys-pre.qh"
9     #include "../../dpdefs/progsdefs.qc"
10     #include "../../dpdefs/dpextensions.qc"
11     #include "../sys-post.qh"
12     #include "../../warpzonelib/anglestransform.qh"
13     #include "../../warpzonelib/mathlib.qh"
14     #include "../../warpzonelib/common.qh"
15     #include "../../warpzonelib/util_server.qh"
16     #include "../../warpzonelib/server.qh"
17     #include "../../common/constants.qh"
18     #include "../../common/stats.qh"
19     #include "../../common/teams.qh"
20     #include "../../common/util.qh"
21     #include "../../common/nades.qh"
22     #include "../../common/buffs.qh"
23     #include "../../common/test.qh"
24     #include "../../common/counting.qh"
25     #include "../../common/urllib.qh"
26     #include "../../common/command/markup.qh"
27     #include "../../common/command/rpn.qh"
28     #include "../../common/command/generic.qh"
29     #include "../../common/command/shared_defs.qh"
30     #include "../../common/net_notice.qh"
31     #include "../../common/animdecide.qh"
32     #include "../../common/monsters/monsters.qh"
33     #include "../../common/monsters/sv_monsters.qh"
34     #include "../../common/monsters/spawn.qh"
35     #include "../../common/weapons/config.qh"
36     #include "../../common/weapons/weapons.qh"
37     #include "accuracy.qh"
38     #include "common.qh"
39     #include "csqcprojectile.qh"
40     #include "hitplot.qh"
41     #include "selection.qh"
42     #include "spawning.qh"
43     #include "throwing.qh"
44     #include "tracing.qh"
45 #endif
46
47 float weaponstats_buffer;
48
49 void WeaponStats_Init();
50 void WeaponStats_ready(entity fh, entity pass, float status);
51 void WeaponStats_Shutdown();
52 void WeaponStats_LogItem(float awep, float abot, float vwep, float vbot, vector item);
53 void WeaponStats_LogDamage(float awep, float abot, float vwep, float vbot, float damage);
54 void WeaponStats_LogKill(float awep, float abot, float vwep, float vbot);
55
56 #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))
57 #endif