]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/weapons/selection.qh
Effects: make sending entities easier, make sending server ids harder
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / weapons / selection.qh
index 0c9aeefb3db77278b69cf597c416e769b34f8471..69f644c70a0f1e65dde06150f69d03996a762be7 100644 (file)
@@ -1,10 +1,13 @@
+#ifndef SELECTION_H
+#define SELECTION_H
+
 // switch between weapons
 void Send_WeaponComplain(entity e, float wpn, float type);
 
 .float hasweapon_complain_spam;
 float client_hasweapon(entity cl, float wpn, float andammo, float complain);
 
-.float weaponcomplainindex;
+.int weaponcomplainindex;
 float W_GetCycleWeapon(entity pl, string weaponorder, float dir, float imp, float complain, float skipmissing);
 
 #define w_getbestweapon(ent) W_GetCycleWeapon(ent, ent.cvar_cl_weaponpriority, 0, -1, false, true)
@@ -27,3 +30,4 @@ void W_PreviousWeapon(float list);
 
 // previously used if exists and has ammo, (second) best otherwise
 void W_LastWeapon(void);
+#endif