X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fcommon%2Fitems%2Fitem.qh;h=bac127059daa12c6db32695d90aea95cf22f28ff;hb=58a8c756c67948a1c9e4bce9b7b9f1edcaacec97;hp=e46df6b3c31d8374ff0b5fc8084c84e78a5c1d64;hpb=3e21073f2bd7f282947bc1f214b3ec25d69ccae0;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/items/item.qh b/qcsrc/common/items/item.qh index e46df6b3c..bac127059 100644 --- a/qcsrc/common/items/item.qh +++ b/qcsrc/common/items/item.qh @@ -1,4 +1,5 @@ #pragma once +#include const int IT_UNLIMITED_WEAPON_AMMO = BIT(0); // when this bit is set, using a weapon does not reduce ammo. Checkpoints can give this powerup. const int IT_UNLIMITED_SUPERWEAPONS = BIT(1); // when this bit is set, superweapons don't expire. Checkpoints can give this powerup. @@ -45,6 +46,10 @@ CLASS(GameItem, Object) ATTRIB(GameItem, m_color, vector, '1 1 1'); ATTRIB(GameItem, m_waypoint, string); ATTRIB(GameItem, m_waypointblink, int, 1); +#ifdef GAMEQC + ATTRIB(GameItem, m_glow, bool, false); + ATTRIB(GameItem, m_respawnsound, Sound, SND_ITEMRESPAWN); +#endif METHOD(GameItem, display, void(GameItem this, void(string name, string icon) returns)) { TC(GameItem, this);