]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/items/item/pickup.qh
Remove SPAWNTIMES enum
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / item / pickup.qh
1 #ifndef PICKUP_H
2 #define PICKUP_H
3 #include "../item.qh"
4 CLASS(Pickup, GameItem)
5     METHOD(Pickup, respondTo, bool(entity, int))
6     ATTRIB(Pickup, m_model, string, string_null)
7     ATTRIB(Pickup, m_sound, string, string_null)
8     ATTRIB(Pickup, m_name, string, string_null)
9     ATTRIB(Pickup, m_itemid, int, 0)
10 #ifdef SVQC
11     ATTRIB(Pickup, m_botvalue, int, 0)
12     ATTRIB(Pickup, m_respawntime, int, 0)
13     ATTRIB(Pickup, m_respawntimejitter, int, 0)
14 #endif
15 ENDCLASS(Pickup)
16
17 #ifdef SVQC
18 // For g_pickup_respawntime
19 #include "../../../server/defs.qh"
20 #endif
21
22 bool Pickup_respondTo(entity this, int request)
23 {
24     switch (request) {
25         default: return false;
26         case ITEM_SIGNAL(Default):
27             print(strcat(this.m_name, " responding\n"));
28             return true;
29     }
30 }
31
32 #endif