X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fitems%2Fitem%2Fpowerup.qc;h=7c7405b75bb4e34dcad03f2260454c637f19ef48;hb=60b0e81cdaed847a7aac9d234f219937ab9462b2;hp=9100e0bb3643430a4fe5cb84a2b8e8948e7dead3;hpb=ac7f397ceff9390594c5d9d331449192ba07f6f8;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/items/item/powerup.qc b/qcsrc/common/items/item/powerup.qc index 9100e0bb3..7c7405b75 100644 --- a/qcsrc/common/items/item/powerup.qc +++ b/qcsrc/common/items/item/powerup.qc @@ -1,40 +1 @@ #include "powerup.qh" -#include "../../../server/t_items.qh" - -#define WITH(it) this.m_##it; -#define CONFIGURE(...) MAP(WITH, __VA_ARGS__) -#define DEFINE(id, ...) \ - REGISTER_ITEM(id, Ammo, LAMBDA( \ - IF(SV, CONFIGURE \ - , botvalue = 100000 \ - , itemflags = FL_POWERUP \ - , respawntime = GET(g_pickup_respawntime_powerup) \ - , respawntimejitter = GET(g_pickup_respawntimejitter_powerup) \ - ) \ - MAP(IDENTITY, __VA_ARGS__) \ - )) - -DEFINE(Strength - ,IF(ALL, CONFIGURE - , model = "models/items/g_strength.md3" - , sound = "misc/powerup.wav" - , name = "Strength Powerup" - ) - ,IF(SV, CONFIGURE - , itemid = IT_STRENGTH - ) -) -DEFINE(Shield - ,IF(ALL, CONFIGURE - , model = "models/items/g_invincible.md3" - , sound = "misc/powerup_shield.wav" - , name = "Shield" - ) - ,IF(SV, CONFIGURE - , itemid = IT_INVINCIBLE - ) -) - -#undef WITH -#undef CONFIGURE -#undef DEFINE