]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/items/item/armor.qc
Merge branch 'master' into terencehill/tooltips_cleanup
[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 #ifndef MENUQC
7 MODEL(ArmorSmall_ITEM, Item_Model("item_armor_small.md3"));
8 #endif
9
10 REGISTER_ITEM(ArmorSmall, Armor) {
11 #ifndef MENUQC
12     this.m_model                =   MDL_ArmorSmall_ITEM;
13 #endif
14     this.m_sound                =   "misc/armor1.wav";
15     this.m_name                 =   "5 Armor";
16     this.m_icon                 =   "armor";
17 #ifdef SVQC
18     this.m_botvalue             =   BOT_PICKUP_RATING_LOW;
19     this.m_itemid               =   IT_ARMOR_SHARD;
20     this.m_respawntime          =   GET(g_pickup_respawntime_short);
21     this.m_respawntimejitter    =   GET(g_pickup_respawntimejitter_short);
22 #endif
23 }
24
25 #ifndef MENUQC
26 MODEL(ArmorMedium_ITEM, Item_Model("item_armor_medium.md3"));
27 #endif
28
29 REGISTER_ITEM(ArmorMedium, Armor) {
30 #ifndef MENUQC
31     this.m_model                =   MDL_ArmorMedium_ITEM;
32 #endif
33     this.m_sound                =   "misc/armor10.wav";
34     this.m_name                 =   "25 Armor";
35     this.m_icon                 =   "armor";
36 #ifdef SVQC
37     this.m_botvalue             =   BOT_PICKUP_RATING_MID;
38     this.m_itemid               =   IT_ARMOR;
39     this.m_respawntime          =   GET(g_pickup_respawntime_medium);
40     this.m_respawntimejitter    =   GET(g_pickup_respawntimejitter_medium);
41 #endif
42 }
43
44 #ifndef MENUQC
45 MODEL(ArmorLarge_ITEM, Item_Model("item_armor_big.md3"));
46 #endif
47
48 REGISTER_ITEM(ArmorLarge, Armor) {
49 #ifndef MENUQC
50     this.m_model                =   MDL_ArmorLarge_ITEM;
51 #endif
52     this.m_sound                =   "misc/armor17_5.wav";
53     this.m_name                 =   "50 Armor";
54     this.m_icon                 =   "armor";
55     this.m_color                =   '0 1 0';
56     this.m_waypoint             =   _("Large armor");
57 #ifdef SVQC
58     this.m_botvalue             =   20000; // FIXME: higher than BOT_PICKUP_RATING_HIGH?
59     this.m_itemid               =   IT_ARMOR;
60     this.m_respawntime          =   GET(g_pickup_respawntime_long);
61     this.m_respawntimejitter    =   GET(g_pickup_respawntimejitter_long);
62 #endif
63 }
64
65 #ifndef MENUQC
66 MODEL(ArmorMega_ITEM, Item_Model("item_armor_large.md3"));
67 #endif
68
69 REGISTER_ITEM(ArmorMega, Armor) {
70 #ifndef MENUQC
71     this.m_model                =   MDL_ArmorMega_ITEM;
72 #endif
73     this.m_sound                =   "misc/armor25.wav";
74     this.m_name                 =   "100 Armor";
75     this.m_icon                 =   "item_large_armor";
76     this.m_color                =   '0 1 0';
77     this.m_waypoint             =   _("Mega armor");
78     this.m_waypointblink        =   2;
79 #ifdef SVQC
80     this.m_botvalue             =   BOT_PICKUP_RATING_HIGH;
81     this.m_itemid               =   IT_ARMOR;
82     this.m_respawntime          =   GET(g_pickup_respawntime_long);
83     this.m_respawntimejitter    =   GET(g_pickup_respawntimejitter_long);
84 #endif
85 }