]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/all.qh
Use the function in client code too
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / all.qh
index e00b38c0154df658bf3284c401583cb2e411198b..081e13a7e58e64f4c5205d047b58fa8f3f7ea0d0 100644 (file)
@@ -90,10 +90,8 @@ string GetAmmoPicture(.int ammotype);
 int GetAmmoStat(.int ammotype);
 #endif
 
-#ifdef SVQC
 string W_Sound(string w_snd);
 string W_Model(string w_mdl);
-#endif
 
 // ammo types
 .int ammo_shells;
@@ -214,11 +212,7 @@ CLASS(Weapon, Object)
                this.bot_pickupbasevalue = pickupbasevalue;
                this.wpcolor = clr;
                this.mdl = modelname;
-               #ifdef SVQC
                this.model = strzone(W_Model(strcat("g_", modelname, ".md3")));
-               #elif defined(CSQC)
-               this.model = strzone(strcat("models/weapons/g_", modelname, ".md3"));
-               #endif
                this.w_simplemdl = strzone(simplemdl); // simpleitems weapon model/image
                this.w_crosshair = strzone(car(crosshair));
                string s = cdr(crosshair);