]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/items/item/armor.qc
Merge branch 'terencehill/obsolete_cvars_removal' into 'master'
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / items / item / armor.qc
1 #include "armor.qh"
2 #ifdef SVQC
3     #include "../../../server/t_items.qh"
4 #endif
5
6 REGISTER_ITEM(ArmorSmall, Armor) {
7     this.m_model                =   "models/items/item_armor_small.md3";
8     this.m_sound                =   "misc/armor1.wav";
9     this.m_name                 =   "5 Armor";
10 #ifdef SVQC
11     this.m_botvalue             =   BOT_PICKUP_RATING_LOW;
12     this.m_itemid               =   IT_ARMOR_SHARD;
13     this.m_respawntime          =   GET(g_pickup_respawntime_short);
14     this.m_respawntimejitter    =   GET(g_pickup_respawntimejitter_short);
15 #endif
16 }
17
18 REGISTER_ITEM(ArmorMedium, Armor) {
19     this.m_model                =   "models/items/item_armor_medium.md3";
20     this.m_sound                =   "misc/armor10.wav";
21     this.m_name                 =   "25 Armor";
22 #ifdef SVQC
23     this.m_botvalue             =   BOT_PICKUP_RATING_MID;
24     this.m_itemid               =   IT_ARMOR;
25     this.m_respawntime          =   GET(g_pickup_respawntime_medium);
26     this.m_respawntimejitter    =   GET(g_pickup_respawntimejitter_medium);
27 #endif
28 }
29
30 REGISTER_ITEM(ArmorLarge, Armor) {
31     this.m_model                =   "models/items/item_armor_big.md3";
32     this.m_sound                =   "misc/armor17_5.wav";
33     this.m_name                 =   "50 Armor";
34 #ifdef SVQC
35     this.m_botvalue             =   20000; // FIXME: higher than BOT_PICKUP_RATING_HIGH?
36     this.m_itemid               =   IT_ARMOR;
37     this.m_respawntime          =   GET(g_pickup_respawntime_long);
38     this.m_respawntimejitter    =   GET(g_pickup_respawntimejitter_long);
39 #endif
40 }
41
42 REGISTER_ITEM(ArmorMega, Armor) {
43     this.m_model                =   "models/items/item_armor_large.md3";
44     this.m_sound                =   "misc/armor25.wav";
45     this.m_name                 =   "100 Armor";
46 #ifdef SVQC
47     this.m_botvalue             =   BOT_PICKUP_RATING_HIGH;
48     this.m_itemid               =   IT_ARMOR;
49     this.m_respawntime          =   GET(g_pickup_respawntime_long);
50     this.m_respawntimejitter    =   GET(g_pickup_respawntimejitter_long);
51 #endif
52 }