5 PROPERTY(float, g_pickup_ammo_anyway);
10 ATTRIB(Ammo, m_pickupevalfunc, float(entity player, entity item), ammo_pickupevalfunc);
11 ATTRIB(Ammo, m_respawntime, float(), GET(g_pickup_respawntime_ammo));
12 ATTRIB(Ammo, m_respawntimejitter, float(), GET(g_pickup_respawntimejitter_ammo));
13 ATTRIB(Ammo, m_pickupanyway, float(), GET(g_pickup_ammo_anyway));
18 #include <common/t_items.qh>
22 MODEL(Bullets_ITEM, Item_Model("a_bullets.mdl"));
26 PROPERTY(int, g_pickup_nails);
27 void ammo_bullets_init(entity item)
29 if (!item.ammo_nails) {
30 item.ammo_nails = g_pickup_nails;
34 REGISTER_ITEM(Bullets, Ammo)
37 this.m_model = MDL_Bullets_ITEM;
39 this.netname = "bullets";
40 this.m_name = "bullets";
41 this.m_icon = "ammo_bullets";
43 this.m_botvalue = 1500;
44 this.m_itemid = IT_NAILS;
45 this.m_iteminit = ammo_bullets_init;
50 MODEL(Cells_ITEM, Item_Model("a_cells.md3"));
54 PROPERTY(int, g_pickup_cells);
55 void ammo_cells_init(entity item)
57 if (!item.ammo_cells) {
58 item.ammo_cells = g_pickup_cells;
62 REGISTER_ITEM(Cells, Ammo)
65 this.m_model = MDL_Cells_ITEM;
67 this.netname = "cells";
68 this.m_name = "cells";
69 this.m_icon = "ammo_cells";
71 this.m_botvalue = 1500;
72 this.m_itemid = IT_CELLS;
73 this.m_iteminit = ammo_cells_init;
78 MODEL(Plasma_ITEM, Item_Model("a_cells.md3"));
82 PROPERTY(int, g_pickup_plasma);
83 void ammo_plasma_init(entity item)
85 if (!item.ammo_plasma) {
86 item.ammo_plasma = g_pickup_plasma;
90 REGISTER_ITEM(Plasma, Ammo)
93 this.m_model = MDL_Plasma_ITEM;
95 this.netname = "plasma";
96 this.m_name = "plasma";
97 this.m_icon = "ammo_plasma";
99 this.m_botvalue = 1500;
100 this.m_itemid = IT_PLASMA;
101 this.m_iteminit = ammo_plasma_init;
106 MODEL(Rockets_ITEM, Item_Model("a_rockets.md3"));
110 PROPERTY(int, g_pickup_rockets);
111 void ammo_rockets_init(entity item)
113 if (!item.ammo_rockets) {
114 item.ammo_rockets = g_pickup_rockets;
118 REGISTER_ITEM(Rockets, Ammo)
121 this.m_model = MDL_Rockets_ITEM;
123 this.netname = "rockets";
124 this.m_name = "rockets";
125 this.m_icon = "ammo_rockets";
127 this.m_botvalue = 1500;
128 this.m_itemid = IT_ROCKETS;
129 this.m_iteminit = ammo_rockets_init;
134 MODEL(Shells_ITEM, Item_Model("a_shells.md3"));
138 PROPERTY(int, g_pickup_shells);
139 void ammo_shells_init(entity item)
141 if (!item.ammo_shells) {
142 item.ammo_shells = g_pickup_shells;
146 REGISTER_ITEM(Shells, Ammo)
149 this.m_model = MDL_Shells_ITEM;
151 this.netname = "shells";
152 this.m_name = "shells";
153 this.m_icon = "ammo_shells";
155 this.m_botvalue = 1000;
156 this.m_itemid = IT_SHELLS;
157 this.m_iteminit = ammo_shells_init;