]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/items/item/armor.qc
3dac22a5966c49338c2a37afb8e66c5d5e7b3e76
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / item / armor.qc
1 #include "armor.qh"
2 #include "../../../server/t_items.qh"
3
4 #define REGISTER_ARMOR(id, model, sound, resp, name, itemid, botvalue)  \
5 REGISTER_ITEM(id, Armor, LAMBDA({                                       \
6     this.m_model = model;                                               \
7     this.m_sound = sound;                                               \
8     this.m_respawntime = resp;                                          \
9     this.m_respawntimejitter = resp;                                    \
10     this.m_name = name;                                                 \
11     this.m_itemid = itemid;                                             \
12     this.m_botvalue = botvalue;                                         \
13 }))
14
15 REGISTER_ARMOR(ArmorSmall
16     , "models/items/item_armor_small.md3"
17     , "misc/armor1.wav"
18     , SPAWNTIME_SHORT
19     , "5 Armor"
20     , IT_ARMOR_SHARD
21     , BOT_PICKUP_RATING_LOW
22 )
23
24 REGISTER_ARMOR(ArmorMedium
25     , "models/items/item_armor_medium.md3"
26     , "misc/armor10.wav"
27     , SPAWNTIME_MEDIUM
28     , "25 Armor"
29     , IT_ARMOR
30     , BOT_PICKUP_RATING_MID
31 )
32
33 REGISTER_ARMOR(ArmorBig
34     , "models/items/item_armor_big.md3"
35     , "misc/armor17_5.wav"
36     , SPAWNTIME_LONG
37     , "50 Armor"
38     , IT_ARMOR
39     , 20000 // FIXME: higher than BOT_PICKUP_RATING_HIGH?
40 )
41
42 REGISTER_ARMOR(ArmorLarge
43     , "models/items/item_armor_large.md3"
44     , "misc/armor25.wav"
45     , SPAWNTIME_LONG
46     , "100 Armor"
47     , IT_ARMOR
48     , BOT_PICKUP_RATING_HIGH
49 )