]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/compat/quake3.qh
Rename GetAmmoConsumptionPrimary to GetAmmoConsumptionQ3 and move to quake3.qc
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / compat / quake3.qh
index 321c6fb4feb5ace4bb736d766a48892afdfefe54..029485ab03f969fecd2d45c033a309dc2b0f5092 100644 (file)
@@ -5,6 +5,7 @@ int q3compat = 0;
 #define Q3COMPAT_DEFI BIT(1)
 
 bool DoesQ3ARemoveThisEntity(entity this);
+int GetAmmoConsumptionQ3(string netname);
 
 .int fragsfilter_cnt;
 
@@ -17,7 +18,7 @@ bool DoesQ3ARemoveThisEntity(entity this);
        spawnfunc(ammo_classname) \
        { \
                if(this.count && xonwep.ammo_type) \
-                       SetResource(this, xonwep.ammo_type, this.count * GetAmmoConsumptionPrimary(xonwep.netname)); \
+                       SetResource(this, xonwep.ammo_type, this.count * GetAmmoConsumptionQ3(xonwep.netname)); \
        SPAWNFUNC_BODY(GetAmmoItem(xonwep.ammo_type)) \
        }