3 #include <common/items/_mod.qh>
4 #include <common/items/item/ammo.qh>
5 #include <common/items/item/powerup.qh>
7 float instagib_respawntime_ammo = 45;
8 float instagib_respawntimejitter_ammo = 0;
9 GETTER(float, instagib_respawntime_ammo)
10 GETTER(float, instagib_respawntimejitter_ammo)
13 MODEL(VaporizerCells_ITEM, Item_Model("a_cells.md3"));
14 SOUND(VaporizerCells, Item_Sound("itempickup"));
18 int autocvar_g_instagib_ammo_drop;
19 void ammo_vaporizercells_init(entity item)
22 item.ammo_cells = autocvar_g_instagib_ammo_drop;
25 REGISTER_ITEM(VaporizerCells, Ammo) {
26 this.m_canonical_spawnfunc = "item_vaporizer_cells";
27 this.spawnflags = ITEM_FLAG_MUTATORBLOCKED;
29 this.m_model = MDL_VaporizerCells_ITEM;
30 this.m_sound = SND_VaporizerCells;
32 this.netname = "vaporizer_cells";
33 this.m_name = "Vaporizer Ammo";
34 this.m_icon = "ammo_supercells";
36 this.m_botvalue = 2000;
37 this.m_itemid = IT_CELLS;
38 this.m_respawntime = GET(instagib_respawntime_ammo);
39 this.m_respawntimejitter = GET(instagib_respawntimejitter_ammo);
40 this.m_iteminit = ammo_vaporizercells_init;
44 SPAWNFUNC_ITEM(item_vaporizer_cells, ITEM_VaporizerCells)
45 SPAWNFUNC_ITEM(item_minst_cells, ITEM_VaporizerCells)
48 MODEL(ExtraLife_ITEM, Item_Model("g_h100.md3"));
49 SOUND(ExtraLife, Item_Sound("megahealth"));
52 REGISTER_ITEM(ExtraLife, Powerup) {
54 this.m_model = MDL_ExtraLife_ITEM;
55 this.m_sound = SND_ExtraLife;
57 this.netname = "extralife";
58 this.m_name = "Extra life";
59 this.m_icon = "item_mega_health";
60 this.m_color = '1 0 0';
61 this.m_waypoint = _("Extra life");
62 this.m_waypointblink = 2;
63 this.m_itemid = IT_NAILS;
67 MODEL(Invisibility_ITEM, Item_Model("g_strength.md3"));
68 SOUND(Invisibility, Item_Sound("powerup"));
71 REGISTER_ITEM(Invisibility, Powerup) {
73 this.m_model = MDL_Invisibility_ITEM;
74 this.m_sound = SND_Invisibility;
76 this.netname = "invisibility";
77 this.m_name = "Invisibility";
78 this.m_icon = "strength";
79 this.m_color = '0 0 1';
80 this.m_waypoint = _("Invisibility");
81 this.m_waypointblink = 2;
82 this.m_itemid = IT_STRENGTH;
86 MODEL(Speed_ITEM, Item_Model("g_invincible.md3"));
87 SOUND(Speed, Item_Sound("powerup_shield"));
90 REGISTER_ITEM(Speed, Powerup) {
92 this.m_model = MDL_Speed_ITEM;
93 this.m_sound = SND_Speed;
95 this.netname = "speed";
96 this.m_name = "Speed";
97 this.m_icon = "shield";
98 this.m_color = '1 0 1';
99 this.m_waypoint = _("Speed");
100 this.m_waypointblink = 2;
101 this.m_itemid = IT_INVINCIBLE;