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