]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/wepent.qh
Add a networked entity to hold weapon state
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / wepent.qh
1 #pragma once
2
3 REGISTER_NET_LINKED(ENT_CLIENT_WEPENT)
4 REGISTER_NET_TEMP(CLIENT_WEPENT)
5
6 #ifdef SVQC
7
8         bool wepent_send(entity this, entity to, int sf);
9
10         void wepent_update(entity this);
11
12         void wepent_link(entity wep);
13
14         .int m_forceupdate;
15
16         .Weapon m_switchweapon;
17         .Weapon m_weapon;
18         .Weapon m_switchingweapon;
19
20 #endif
21
22 #ifdef CSQC
23         .int m_wepent_slot;
24
25         .Weapon activeweapon;
26         .Weapon switchingweapon;
27         .Weapon switchweapon;
28 #endif