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