]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/items/item/powerup.qh
For sanity, give items an identifier name (like all other registries)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / item / powerup.qh
index ef0d223b61067eae3c2058f24606c8d3e926fd7e..41b658c2fc5a25afe03eefcaeea7867e07f1a6de 100644 (file)
@@ -37,6 +37,7 @@ REGISTER_ITEM(Strength, Powerup) {
     this.m_glow             =   true;
     this.m_respawnsound     =   SND_STRENGTH_RESPAWN;
 #endif
+    this.netname            =   "strength";
     this.m_name             =   "Strength Powerup";
     this.m_icon             =   "strength";
     this.m_color            =   '0 0 1';
@@ -68,6 +69,7 @@ REGISTER_ITEM(Shield, Powerup) {
     this.m_glow             =   true;
     this.m_respawnsound     =   SND_SHIELD_RESPAWN;
 #endif
+    this.netname            =   "invincible";
     this.m_name             =   "Shield";
     this.m_icon             =   "shield";
     this.m_color            =   '1 0 1';