]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/items/item/powerup.qc
Refer to item flags from item definitions
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / item / powerup.qc
index 0f025aed8f5a4ab4ee0282f24343e05077922f3e..c4bfb39361f2efffe7c97064ef6408748a1a713b 100644 (file)
@@ -1,19 +1,18 @@
 #include "powerup.qh"
 #include "../../../server/t_items.qh"
 
+#ifndef SVQC
+.int m_itemid;
+#endif
 REGISTER_ITEM(Strength, Powerup) {
     this.m_model    =   "models/items/g_strength.md3";
     this.m_sound    =   "misc/powerup.wav";
     this.m_name     =   "Strength Powerup";
-#ifdef SVQC
     this.m_itemid   =   IT_STRENGTH;
-#endif
 }
 REGISTER_ITEM(Shield, Powerup) {
     this.m_model    =   "models/items/g_invincible.md3";
     this.m_sound    =   "misc/powerup_shield.wav";
     this.m_name     =   "Shield";
-#ifdef SVQC
     this.m_itemid   =   IT_INVINCIBLE;
-#endif
 }