]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/weapon/tuba.qc
Weapons: remove unused field w_simplemdl
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / weapon / tuba.qc
index 2987d0b81697c8496d064b9f77410559b7ec6def..ef73577549f14f1753d13b87cc4407e82975685f 100644 (file)
@@ -8,7 +8,7 @@ REGISTER_WEAPON(
 /* rating    */ BOT_PICKUP_RATING_MID,
 /* color     */ '0 1 0',
 /* modelname */ "tuba",
-/* simplemdl */ "foobar",
+/* model     */ MDL_TUBA_ITEM,
 /* crosshair */ "gfx/crosshairtuba",
 /* wepimg    */ "weapontuba",
 /* refname   */ "tuba",
@@ -365,7 +365,7 @@ void W_Tuba_NoteOn(float hittype)
        }
 }
 
-bool W_Tuba(int req)
+bool W_Tuba(entity thiswep, int req)
 {SELFPARAM();
        switch(req)
        {
@@ -411,13 +411,6 @@ bool W_Tuba(int req)
                }
                case WR_INIT:
                {
-                       precache_model(W_Model("g_tuba.md3"));
-                       precache_model(W_Model("v_tuba.md3"));
-                       precache_model(W_Model("h_tuba.iqm"));
-                       precache_model(W_Model("v_akordeon.md3"));
-                       precache_model(W_Model("h_akordeon.iqm"));
-                       precache_model(W_Model("v_kleinbottle.md3"));
-                       precache_model(W_Model("h_kleinbottle.iqm"));
                        TUBA_SETTINGS(WEP_SKIP_CVAR, WEP_SET_PROP);
                        return true;
                }
@@ -488,7 +481,7 @@ bool W_Tuba(int req)
 }
 #endif
 #ifdef CSQC
-bool W_Tuba(int req)
+bool W_Tuba(entity thiswep, int req)
 {SELFPARAM();
        // nothing to do here; particles of tuba are handled differently
        // WEAPONTODO