From: Lyberta Date: Sun, 8 Oct 2017 00:16:21 +0000 (+0300) Subject: Forcing uniform classnames for a few items. X-Git-Tag: xonotic-v0.8.5~2426^2~39 X-Git-Url: http://de.git.xonotic.org/?a=commitdiff_plain;h=3afebe84cefd5580e3d3160b5bd4800ec71c2a88;p=xonotic%2Fxonotic-data.pk3dir.git Forcing uniform classnames for a few items. --- diff --git a/qcsrc/server/items.qc b/qcsrc/server/items.qc index 413703906..f2f47c469 100644 --- a/qcsrc/server/items.qc +++ b/qcsrc/server/items.qc @@ -422,10 +422,44 @@ spawnfunc(item_jetpack) // Compatibility spawn functions -spawnfunc(item_armor1) { spawnfunc_item_armor_small(this); } // FIXME: in Quake this is green armor, in Xonotic maps it is an armor shard -spawnfunc(item_armor25) { spawnfunc_item_armor_mega(this); } -spawnfunc(item_armor_large) { spawnfunc_item_armor_mega(this); } -spawnfunc(item_health1) { spawnfunc_item_health_small(this); } -spawnfunc(item_health25) { spawnfunc_item_health_medium(this); } -spawnfunc(item_health_large) { spawnfunc_item_health_big(this); } -spawnfunc(item_health100) { spawnfunc_item_health_mega(this); } +spawnfunc(item_armor1) +{ + this.classname = "item_armor_small"; + spawnfunc_item_armor_small(this); // FIXME: in Quake this is green armor, in Xonotic maps it is an armor shard +} + +spawnfunc(item_armor25) +{ + this.classname = "item_armor_mega"; + spawnfunc_item_armor_mega(this); +} + +spawnfunc(item_armor_large) +{ + this.classname = "item_armor_mega"; + spawnfunc_item_armor_mega(this); +} + +spawnfunc(item_health1) +{ + this.classname = "item_health_small"; + spawnfunc_item_health_small(this); +} + +spawnfunc(item_health25) +{ + this.classname = "item_health_medium"; + spawnfunc_item_health_medium(this); +} + +spawnfunc(item_health_large) +{ + this.classname = "item_health_big"; + spawnfunc_item_health_big(this); +} + +spawnfunc(item_health100) +{ + this.classname = "item_health_mega"; + spawnfunc_item_health_mega(this); +}