]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/server/weapons/selection.qh
Unify boolean constants
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / weapons / selection.qh
1 // switch between weapons
2 void Send_WeaponComplain(entity e, float wpn, float type);
3
4 .float hasweapon_complain_spam;
5 float client_hasweapon(entity cl, float wpn, float andammo, float complain);
6
7 .float weaponcomplainindex;
8 float W_GetCycleWeapon(entity pl, string weaponorder, float dir, float imp, float complain, float skipmissing);
9
10 #define w_getbestweapon(ent) W_GetCycleWeapon(ent, ent.cvar_cl_weaponpriority, 0, -1, false, true)
11
12 void W_SwitchWeapon_Force(entity e, float w);
13
14 // perform weapon to attack (weaponstate and attack_finished check is here)
15 void W_SwitchToOtherWeapon(entity pl);
16 void W_SwitchWeapon(float imp);
17
18 void W_CycleWeapon(string weaponorder, float dir);
19
20 void W_NextWeaponOnImpulse(float imp);
21
22 // next weapon
23 void W_NextWeapon(float list);
24
25 // prev weapon
26 void W_PreviousWeapon(float list);
27
28 // previously used if exists and has ammo, (second) best otherwise
29 void W_LastWeapon(void);