#include "../../../server/constants.qh"
#endif
- REGISTER_ITEM(Jetpack, Pickup) {
+ #include "ammo.qh"
+ #include "powerup.qh"
+
+ REGISTER_ITEM(Jetpack, Powerup) {
this.m_model = "models/items/g_jetpack.md3";
this.m_name = "Jet pack";
+ this.m_icon = "jetpack";
#ifdef SVQC
this.m_botvalue = BOT_PICKUP_RATING_LOW;
- this.m_itemflags = FL_POWERUP;
this.m_itemid = IT_JETPACK;
this.m_pickupevalfunc = commodity_pickupevalfunc;
- this.m_respawntime = GET(g_pickup_respawntime_powerup);
- this.m_respawntimejitter = GET(g_pickup_respawntimejitter_powerup);
#endif
}
- REGISTER_ITEM(JetpackFuel, Pickup) {
- this.m_model = "models/items/g_fuel.md3";
- this.m_name = "Fuel";
- this.m_icon = "ammo_fuel";
+ REGISTER_ITEM(JetpackFuel, Ammo) {
+ this.m_model = "models/items/g_fuel.md3";
+ this.m_name = "Fuel";
- this.m_ammoPic = "ammo_fuel";
++ this.m_icon = "ammo_fuel";
#ifdef SVQC
- this.m_botvalue = BOT_PICKUP_RATING_LOW;
- this.m_itemid = IT_FUEL;
- this.m_pickupevalfunc = commodity_pickupevalfunc;
- this.m_respawntime = GET(g_pickup_respawntime_ammo);
- this.m_respawntimejitter = GET(g_pickup_respawntimejitter_ammo);
+ this.m_botvalue = BOT_PICKUP_RATING_LOW;
+ this.m_itemid = IT_FUEL;
#endif
}
this.m_model = "models/items/g_strength.md3";
this.m_sound = "misc/powerup.wav";
this.m_name = "Strength Powerup";
- #ifdef SVQC
+ this.m_icon = "strength";
this.m_itemid = IT_STRENGTH;
- #endif
}
REGISTER_ITEM(Shield, Powerup) {
this.m_model = "models/items/g_invincible.md3";
this.m_sound = "misc/powerup_shield.wav";
this.m_name = "Shield";
- #ifdef SVQC
+ this.m_icon = "shield";
this.m_itemid = IT_INVINCIBLE;
- #endif
}
string GetAmmoPicture(.int ammotype)
{
- switch(ammotype)
+ switch (ammotype)
{
- case ammo_shells: return "ammo_shells";
- case ammo_nails: return "ammo_bullets";
- case ammo_rockets: return "ammo_rockets";
- case ammo_cells: return "ammo_cells";
- case ammo_plasma: return "ammo_cells";
- case ammo_fuel: return "ammo_fuel";
- case ammo_shells: return ITEM_Shells.m_ammoPic;
- case ammo_nails: return ITEM_Bullets.m_ammoPic;
- case ammo_rockets: return ITEM_Rockets.m_ammoPic;
- case ammo_cells: return ITEM_Cells.m_ammoPic;
- case ammo_plasma: return ITEM_Plasma.m_ammoPic;
- case ammo_fuel: return ITEM_JetpackFuel.m_ammoPic;
++ case ammo_shells: return ITEM_Shells.m_icon;
++ case ammo_nails: return ITEM_Bullets.m_icon;
++ case ammo_rockets: return ITEM_Rockets.m_icon;
++ case ammo_cells: return ITEM_Cells.m_icon;
++ case ammo_plasma: return ITEM_Plasma.m_icon;
++ case ammo_fuel: return ITEM_JetpackFuel.m_icon;
default: return ""; // wtf, no ammo type?
}
}