));
}
+string Item_Model(string item_mdl)
+{
+ string output = strcat("models/items/", item_mdl);
+#ifdef SVQC
+ MUTATOR_CALLHOOK(ItemModel, item_mdl, output);
+ output = item_model_output;
+#endif
+ return output;
+}
+
#endif
void Dump_Items();
+#ifndef MENUQC
+string Item_Model(string item_mdl);
+#endif
+
#endif
#include "inventory.qh"
#include "../../../server/t_items.qh"
#endif
+#ifndef MENUQC
+MODEL(Bullets_ITEM, Item_Model("a_bullets.mdl"));
+#endif
+
REGISTER_ITEM(Bullets, Ammo) {
- this.m_model = "a_bullets.mdl";
+#ifndef MENUQC
+ this.m_model = MDL_Bullets_ITEM;
+#endif
this.m_name = "bullets";
this.m_icon = "ammo_bullets";
#ifdef SVQC
this.m_itemid = IT_NAILS;
#endif
}
+
+#ifndef MENUQC
+MODEL(Cells_ITEM, Item_Model("a_cells.md3"));
+#endif
+
REGISTER_ITEM(Cells, Ammo) {
- this.m_model = "a_cells.md3";
+#ifndef MENUQC
+ this.m_model = MDL_Cells_ITEM;
+#endif
this.m_name = "cells";
this.m_icon = "ammo_cells";
#ifdef SVQC
this.m_itemid = IT_CELLS;
#endif
}
+
+#ifndef MENUQC
+MODEL(Plasma_ITEM, Item_Model("a_cells.md3"));
+#endif
+
REGISTER_ITEM(Plasma, Ammo) {
- this.m_model = "a_cells.md3";
+#ifndef MENUQC
+ this.m_model = MDL_Plasma_ITEM;
+#endif
this.m_name = "plasma";
this.m_icon = "ammo_plasma";
#ifdef SVQC
this.m_itemid = IT_PLASMA;
#endif
}
+
+#ifndef MENUQC
+MODEL(Rockets_ITEM, Item_Model("a_rockets.md3"));
+#endif
+
REGISTER_ITEM(Rockets, Ammo) {
- this.m_model = "a_rockets.md3";
+#ifndef MENUQC
+ this.m_model = MDL_Rockets_ITEM;
+#endif
this.m_name = "rockets";
this.m_icon = "ammo_rockets";
#ifdef SVQC
this.m_itemid = IT_ROCKETS;
#endif
}
+
+#ifndef MENUQC
+MODEL(Shells_ITEM, Item_Model("a_shells.md3"));
+#endif
+
REGISTER_ITEM(Shells, Ammo) {
- this.m_model = "a_shells.md3";
+#ifndef MENUQC
+ this.m_model = MDL_Shells_ITEM;
+#endif
this.m_name = "shells";
this.m_icon = "ammo_shells";
#ifdef SVQC
#include "../../../server/t_items.qh"
#endif
+#ifndef MENUQC
+MODEL(ArmorSmall_ITEM, Item_Model("item_armor_small.md3"));
+#endif
+
REGISTER_ITEM(ArmorSmall, Armor) {
- this.m_model = "item_armor_small.md3";
+#ifndef MENUQC
+ this.m_model = MDL_ArmorSmall_ITEM;
+#endif
this.m_sound = "misc/armor1.wav";
this.m_name = "5 Armor";
this.m_icon = "armor";
#endif
}
+#ifndef MENUQC
+MODEL(ArmorMedium_ITEM, Item_Model("item_armor_medium.md3"));
+#endif
+
REGISTER_ITEM(ArmorMedium, Armor) {
- this.m_model = "item_armor_medium.md3";
+#ifndef MENUQC
+ this.m_model = MDL_ArmorMedium_ITEM;
+#endif
this.m_sound = "misc/armor10.wav";
this.m_name = "25 Armor";
this.m_icon = "armor";
#endif
}
+#ifndef MENUQC
+MODEL(ArmorLarge_ITEM, Item_Model("item_armor_big.md3"));
+#endif
+
REGISTER_ITEM(ArmorLarge, Armor) {
- this.m_model = "item_armor_big.md3";
+#ifndef MENUQC
+ this.m_model = MDL_ArmorLarge_ITEM;
+#endif
this.m_sound = "misc/armor17_5.wav";
this.m_name = "50 Armor";
this.m_icon = "armor";
#endif
}
+#ifndef MENUQC
+MODEL(ArmorMega_ITEM, Item_Model("item_armor_large.md3"));
+#endif
+
REGISTER_ITEM(ArmorMega, Armor) {
- this.m_model = "item_armor_large.md3";
+#ifndef MENUQC
+ this.m_model = MDL_ArmorMega_ITEM;
+#endif
this.m_sound = "misc/armor25.wav";
this.m_name = "100 Armor";
this.m_icon = "item_large_armor";
#include "../../../server/t_items.qh"
#endif
+#ifndef MENUQC
+MODEL(HealthSmall_ITEM, Item_Model("g_h1.md3"));
+#endif
+
REGISTER_ITEM(HealthSmall, Health) {
- this.m_model = "g_h1.md3";
+#ifndef MENUQC
+ this.m_model = MDL_HealthSmall_ITEM;
+#endif
this.m_sound = "misc/minihealth.wav";
this.m_name = "5 Health";
this.m_icon = "health";
#endif
}
+#ifndef MENUQC
+MODEL(HealthMedium_ITEM, Item_Model("g_h25.md3"));
+#endif
+
REGISTER_ITEM(HealthMedium, Health) {
- this.m_model = "g_h25.md3";
+#ifndef MENUQC
+ this.m_model = MDL_HealthMedium_ITEM;
+#endif
this.m_sound = "misc/mediumhealth.wav";
this.m_name = "25 Health";
this.m_icon = "health";
#endif
}
+#ifndef MENUQC
+MODEL(HealthLarge_ITEM, Item_Model("g_h50.md3"));
+#endif
+
REGISTER_ITEM(HealthLarge, Health) {
- this.m_model = "g_h50.md3";
+#ifndef MENUQC
+ this.m_model = MDL_HealthLarge_ITEM;
+#endif
this.m_sound = "misc/mediumhealth.wav";
this.m_name = "50 Health";
this.m_icon = "health";
#endif
}
+#ifndef MENUQC
+MODEL(HealthMega_ITEM, Item_Model("g_h100.md3"));
+#endif
+
REGISTER_ITEM(HealthMega, Health) {
- this.m_model = "g_h100.md3";
+#ifndef MENUQC
+ this.m_model = MDL_HealthMega_ITEM;
+#endif
this.m_sound = "misc/megahealth.wav";
this.m_name = "100 Health";
this.m_icon = "item_mega_health";
#include "ammo.qh"
#include "powerup.qh"
+#ifndef MENUQC
+MODEL(Jetpack_ITEM, Item_Model("g_jetpack.md3"));
+#endif
+
REGISTER_ITEM(Jetpack, Powerup) {
- this.m_model = "g_jetpack.md3";
+#ifndef MENUQC
+ this.m_model = MDL_Jetpack_ITEM;
+#endif
this.m_name = "Jet pack";
this.m_icon = "jetpack";
this.m_color = '0.5 0.5 0.5';
#endif
}
+#ifndef MENUQC
+MODEL(JetpackFuel_ITEM, Item_Model("g_fuel.md3"));
+#endif
+
REGISTER_ITEM(JetpackFuel, Ammo) {
- this.m_model = "g_fuel.md3";
+#ifndef MENUQC
+ this.m_model = MDL_JetpackFuel_ITEM;
+#endif
this.m_name = "Fuel";
this.m_icon = "ammo_fuel";
#ifdef SVQC
#endif
}
+#ifndef MENUQC
+MODEL(JetpackRegen_ITEM, Item_Model("g_fuelregen.md3"));
+#endif
+
REGISTER_ITEM(JetpackRegen, Pickup) {
- this.m_model = "g_fuelregen.md3";
+#ifndef MENUQC
+ this.m_model = MDL_JetpackRegen_ITEM;
+#endif
this.m_name = "Fuel regenerator";
this.m_icon = "fuelregen";
this.m_color = '1 0.5 0';
#define PICKUP_H
#include "../item.qh"
CLASS(Pickup, GameItem)
- ATTRIB(Pickup, m_model, string, string_null)
+#ifndef MENUQC
+ ATTRIB(Pickup, m_model, Model, NULL)
+#endif
ATTRIB(Pickup, m_sound, string, "misc/itempickup.wav")
ATTRIB(Pickup, m_name, string, string_null)
METHOD(Pickup, show, void(entity this));
#ifndef SVQC
.int m_itemid;
#endif
+
+#ifndef MENUQC
+MODEL(Strength_ITEM, Item_Model("g_strength.md3"));
+#endif
+
REGISTER_ITEM(Strength, Powerup) {
- this.m_model = "g_strength.md3";
+#ifndef MENUQC
+ this.m_model = MDL_Strength_ITEM;
+#endif
this.m_sound = "misc/powerup.wav";
this.m_name = "Strength Powerup";
this.m_icon = "strength";
this.m_waypointblink = 2;
this.m_itemid = IT_STRENGTH;
}
+
+#ifndef MENUQC
+MODEL(Shield_ITEM, Item_Model("g_invincible.md3"));
+#endif
+
REGISTER_ITEM(Shield, Powerup) {
- this.m_model = "g_invincible.md3";
+#ifndef MENUQC
+ this.m_model = MDL_Shield_ITEM;
+#endif
this.m_sound = "misc/powerup_shield.wav";
this.m_name = "Shield";
this.m_icon = "shield";
GETTER(float, instagib_respawntime_ammo)
GETTER(float, instagib_respawntimejitter_ammo)
+#ifndef MENUQC
+MODEL(VaporizerCells_ITEM, Item_Model("a_cells.md3"));
+#endif
+
REGISTER_ITEM(VaporizerCells, Ammo) {
- this.m_model = "a_cells.md3";
+#ifndef MENUQC
+ this.m_model = MDL_VaporizerCells_ITEM;
+#endif
this.m_sound = "misc/itempickup.wav";
this.m_name = "Vaporizer Ammo";
this.m_icon = "ammo_supercells";
#endif
}
+#ifndef MENUQC
+MODEL(ExtraLife_ITEM, Item_Model("g_h100.md3"));
+#endif
+
REGISTER_ITEM(ExtraLife, Powerup) {
- this.m_model = "g_h100.md3";
+#ifndef MENUQC
+ this.m_model = MDL_ExtraLife_ITEM;
+#endif
this.m_sound = "misc/megahealth.wav";
this.m_name = "Extra life";
this.m_icon = "item_mega_health";
this.m_itemid = IT_NAILS;
}
+#ifndef MENUQC
+MODEL(Invisibility_ITEM, Item_Model("g_strength.md3"));
+#endif
+
REGISTER_ITEM(Invisibility, Powerup) {
- this.m_model = "g_strength.md3";
+#ifndef MENUQC
+ this.m_model = MDL_Invisibility_ITEM;
+#endif
this.m_sound = "misc/powerup.wav";
this.m_name = "Invisibility";
this.m_icon = "strength";
this.m_itemid = IT_STRENGTH;
}
+#ifndef MENUQC
+MODEL(Speed_ITEM, Item_Model("g_invincible.md3"));
+#endif
+
REGISTER_ITEM(Speed, Powerup) {
- this.m_model = "g_invincible.md3";
+#ifndef MENUQC
+ this.m_model = MDL_Speed_ITEM;
+#endif
this.m_sound = "misc/powerup_shield.wav";
this.m_name = "Speed";
this.m_icon = "shield";
}
}
-string Item_Model(string item_mdl)
-{
- string output = strcat("models/items/", item_mdl);
- MUTATOR_CALLHOOK(ItemModel, item_mdl, output);
- return strzone(item_model_output);
-}
-
void StartItemA (entity a)
{SELFPARAM();
self.itemdef = a;
- StartItem(Item_Model(a.m_model), a.m_sound, a.m_respawntime(), a.m_respawntimejitter(), a.m_name, a.m_itemid, 0, a.m_itemflags, a.m_pickupevalfunc, a.m_botvalue);
+ StartItem(strzone(a.m_model.model_str()), a.m_sound, a.m_respawntime(), a.m_respawntimejitter(), a.m_name, a.m_itemid, 0, a.m_itemflags, a.m_pickupevalfunc, a.m_botvalue);
}
void spawnfunc_item_rockets()