]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/weapon.qh
Merge branch 'master' into TimePath/items
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapon.qh
index 624cb83f5226a478267018bc16f5f83146843db2..63ce4c31a7ef50eda58cb609d18a28868c636946 100644 (file)
@@ -2,6 +2,8 @@
 #define WEAPON_H
 #include "../items/item/pickup.qh"
 
+const int MAX_WEAPONSLOTS = 2;
+
 .int ammo_shells;
 .int ammo_nails;
 .int ammo_rockets;
@@ -50,7 +52,7 @@ CLASS(Weapon, Object)
     /** (SERVER) setup weapon data */
     METHOD(Weapon, wr_setup, void(Weapon this)) {}
     /** (SERVER) logic to run every frame */
-    METHOD(Weapon, wr_think, void(Weapon this, entity actor, bool fire1, bool fire2)) {}
+    METHOD(Weapon, wr_think, void(Weapon this, entity actor, int slot, int fire)) {}
     /** (SERVER) checks ammo for weapon primary */
     METHOD(Weapon, wr_checkammo1, bool(Weapon this)) {return false;}
     /** (SERVER) checks ammo for weapon second */