]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/weapons/all.qh
Add the remaining weapon model calls
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / weapons / all.qh
index 91ca10557a2cfd5ec7e5fbf91acddad278ba500a..e00b38c0154df658bf3284c401583cb2e411198b 100644 (file)
@@ -214,7 +214,11 @@ 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);