]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/items/item/ammo.qc
Remove _all indirection
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / item / ammo.qc
index 5868eeb844c5df86a8be2a9bc43893842dbe763f..d7e0dcc6872d0d55b9d7b00aad234920acf5cb45 100644 (file)
@@ -1,18 +1 @@
 #include "ammo.qh"
-
-#define REGISTER_AMMO(id) REGISTER_ITEM(id, Ammo, LAMBDA(this.ammoName = #id))
-REGISTER_AMMO(nails)
-REGISTER_AMMO(rockets)
-REGISTER_AMMO(cells)
-REGISTER_AMMO(plasma)
-REGISTER_AMMO(fuel)
-
-bool Ammo_respondTo(entity this, int request)
-{
-    switch (request) {
-        default: return false;
-        case ITEM_SIGNAL(Default):
-            print(strcat(this.ammoName, " responding\n"));
-            return true;
-    }
-}