this.m_sound = SND_ArmorSmall;
#endif
this.netname = "armor_small";
- this.m_name = "5 Armor";
+ this.m_name = _("Small armor");
this.m_icon = "armor";
+ this.m_waypoint_icon = "waypoint_armor";
#ifdef SVQC
- this.m_itemid = IT_ARMOR_SHARD;
+ this.m_itemid = IT_RESOURCE;
this.m_respawntime = GET(g_pickup_respawntime_short);
this.m_respawntimejitter = GET(g_pickup_respawntimejitter_short);
this.m_pickupanyway = GET(g_pickup_armorsmall_anyway);
this.m_sound = SND_ArmorMedium;
#endif
this.netname = "armor_medium";
- this.m_name = "25 Armor";
+ this.m_name = _("Medium armor");
this.m_icon = "armor";
+ this.m_waypoint_icon = "waypoint_armor";
#ifdef SVQC
- this.m_itemid = IT_ARMOR;
+ this.m_itemid = IT_RESOURCE;
this.m_respawntime = GET(g_pickup_respawntime_medium);
this.m_respawntimejitter = GET(g_pickup_respawntimejitter_medium);
this.m_pickupanyway = GET(g_pickup_armormedium_anyway);
this.m_sound = SND_ArmorBig;
#endif
this.netname = "armor_big";
- this.m_name = "50 Armor";
+ this.m_name = _("Big armor");
this.m_icon = "armor";
this.m_color = '0 1 0';
- this.m_waypoint = _("Big armor");
+ this.m_waypoint_text = _("Big armor");
+ this.m_waypoint_icon = "waypoint_armor";
#ifdef SVQC
- this.m_itemid = IT_ARMOR;
+ this.m_itemid = IT_RESOURCE;
this.m_respawntime = GET(g_pickup_respawntime_long);
this.m_respawntimejitter = GET(g_pickup_respawntimejitter_long);
this.m_pickupanyway = GET(g_pickup_armorbig_anyway);
this.m_sound = SND_ArmorMega;
#endif
this.netname = "armor_mega";
- this.m_name = "100 Armor";
+ this.m_name = _("Mega armor");
this.m_icon = "item_large_armor";
this.m_color = '0 1 0';
- this.m_waypoint = _("Mega armor");
+ this.m_waypoint_text = _("Mega armor");
+ this.m_waypoint_icon = "waypoint_armor_mega";
this.m_waypointblink = 2;
#ifdef SVQC
this.m_maxs = '16 16 70';
this.m_sound = SND_HealthSmall;
#endif
this.netname = "health_small";
- this.m_name = "5 Health";
+ this.m_name = _("Small health");
this.m_icon = "health";
+ this.m_waypoint_icon = "waypoint_health";
#ifdef SVQC
- this.m_itemid = IT_5HP;
+ this.m_itemid = IT_RESOURCE;
this.m_respawntime = GET(g_pickup_respawntime_short);
this.m_respawntimejitter = GET(g_pickup_respawntimejitter_short);
this.m_pickupanyway = GET(g_pickup_healthsmall_anyway);
this.m_sound = SND_HealthMedium;
#endif
this.netname = "health_medium";
- this.m_name = "25 Health";
+ this.m_name = _("Medium health");
this.m_icon = "health";
+ this.m_waypoint_icon = "waypoint_health";
#ifdef SVQC
- this.m_itemid = IT_25HP;
+ this.m_itemid = IT_RESOURCE;
this.m_respawntime = GET(g_pickup_respawntime_short);
this.m_respawntimejitter = GET(g_pickup_respawntimejitter_short);
this.m_pickupanyway = GET(g_pickup_healthmedium_anyway);
this.m_sound = SND_HealthBig;
#endif
this.netname = "health_big";
- this.m_name = "50 Health";
+ this.m_name = _("Big health");
this.m_icon = "health";
this.m_color = '1 0 0';
- this.m_waypoint = _("Big health");
+ this.m_waypoint_text = _("Big health");
+ this.m_waypoint_icon = "waypoint_health";
#ifdef SVQC
- this.m_itemid = IT_25HP;
+ this.m_itemid = IT_RESOURCE;
this.m_respawntime = GET(g_pickup_respawntime_medium);
this.m_respawntimejitter = GET(g_pickup_respawntimejitter_medium);
this.m_pickupanyway = GET(g_pickup_healthbig_anyway);
this.m_sound = SND_HealthMega;
#endif
this.netname = "health_mega";
- this.m_name = "100 Health";
+ this.m_name = _("Mega health");
this.m_icon = "item_mega_health";
this.m_color = '1 0 0';
- this.m_waypoint = _("Mega health");
+ this.m_waypoint_text = _("Mega health");
+ this.m_waypoint_icon = "waypoint_health_mega";
this.m_waypointblink = 2;
#ifdef SVQC
this.m_maxs = '16 16 70';
this.m_itemid = IT_JETPACK;
#endif
this.netname = "jetpack";
- this.m_name = "Jetpack";
+ this.m_name = _("Jetpack");
this.m_icon = "jetpack";
this.m_color = '0.5 0.5 0.5';
- this.m_waypoint = _("Jetpack");
+ this.m_waypoint_text = _("Jetpack");
+ this.m_waypoint_icon = "waypoint_jetpack";
this.m_waypointblink = 2;
#ifdef SVQC
this.m_botvalue = 3000;
this.m_model = MDL_JetpackRegen_ITEM;
#endif
this.netname = "fuel_regen";
- this.m_name = "Fuel regenerator";
+ this.m_name = _("Fuel regenerator");
this.m_icon = "fuelregen";
this.m_color = '1 0.5 0';
- this.m_waypoint = _("Fuel regen");
+ this.m_waypoint_text = _("Fuel regen");
+ this.m_waypoint_icon = "waypoint_fuel_regen";
this.m_waypointblink = 2;
#ifdef SVQC
this.m_botvalue = 3000;
this.m_respawnsound = SND_STRENGTH_RESPAWN;
#endif
this.netname = "strength";
- this.m_name = "Strength Powerup";
+ this.m_name = _("Strength");
this.m_icon = "strength";
this.m_color = '0 0 1';
- this.m_waypoint = _("Strength");
+ this.m_waypoint_text = _("Strength");
+ this.m_waypoint_icon = "waypoint_strength";
this.m_waypointblink = 2;
+ #ifdef GAMEQC
this.m_itemid = IT_STRENGTH;
+ #endif
#ifdef SVQC
this.m_iteminit = powerup_strength_init;
#endif
this.m_respawnsound = SND_SHIELD_RESPAWN;
#endif
this.netname = "invincible";
- this.m_name = "Shield";
+ this.m_name = _("Shield");
this.m_icon = "shield";
this.m_color = '1 0 1';
- this.m_waypoint = _("Shield");
+ this.m_waypoint_text = _("Shield");
+ this.m_waypoint_icon = "waypoint_shield";
this.m_waypointblink = 2;
+ #ifdef GAMEQC
this.m_itemid = IT_INVINCIBLE;
+ #endif
#ifdef SVQC
this.m_iteminit = powerup_shield_init;
#endif
this.m_sound = SND_ExtraLife;
#endif
this.netname = "extralife";
- this.m_name = "Extra life";
+ this.m_name = _("Extra life");
this.m_icon = "item_mega_health";
this.m_color = '1 0 0';
- this.m_waypoint = _("Extra life");
+ this.m_waypoint_text = _("Extra life");
+ this.m_waypoint_icon = "waypoint_health_mega";
this.m_waypointblink = 2;
- this.m_itemid = IT_NAILS;
+ #ifdef SVQC
+ this.m_itemid = IT_RESOURCE;
+ #endif
}
SPAWNFUNC_ITEM(item_extralife, ITEM_ExtraLife)
this.m_respawnsound = SND_STRENGTH_RESPAWN;
#endif
this.netname = "invisibility";
- this.m_name = "Invisibility";
+ this.m_name = _("Invisibility");
this.m_icon = "strength";
this.m_color = '0 0 1';
- this.m_waypoint = _("Invisibility");
+ this.m_waypoint_text = _("Invisibility");
+ this.m_waypoint_icon = "waypoint_invisibility";
this.m_waypointblink = 2;
+ #ifdef GAMEQC
this.m_itemid = IT_STRENGTH;
+ #endif
#ifdef SVQC
this.m_iteminit = powerup_invisibility_init;
#endif
this.m_respawnsound = SND_SHIELD_RESPAWN;
#endif
this.netname = "speed";
- this.m_name = "Speed";
+ this.m_name = _("Speed");
this.m_icon = "shield";
this.m_color = '1 0 1';
- this.m_waypoint = _("Speed");
+ this.m_waypoint_text = _("Speed");
+ this.m_waypoint_icon = "waypoint_speed";
this.m_waypointblink = 2;
+ #ifdef GAMEQC
this.m_itemid = IT_INVINCIBLE;
+ #endif
#ifdef SVQC
this.m_iteminit = powerup_speed_init;
#endif
if(autocvar_g_waypointsprite_spam && waypointsprite_count >= autocvar_g_waypointsprite_spam)
return "Spam"; // no need to translate this debug string
if (s == WP_RaceStartFinish.netname) return (race_checkpointtime || race_mycheckpointtime) ? _("Finish") : _("Start");
- if (s == WP_Weapon.netname) return Weapons_from(this.wp_extra).m_name;
- if (s == WP_Item.netname) return Items_from(this.wp_extra).m_waypoint_text;
+ if (s == WP_Weapon.netname) return REGISTRY_GET(Weapons, this.wp_extra).m_name;
- if (s == WP_Item.netname) return REGISTRY_GET(Items, this.wp_extra).m_waypoint;
++ if (s == WP_Item.netname) return REGISTRY_GET(Items, this.wp_extra).m_waypoint_text;
if (s == WP_Monster.netname) return get_monsterinfo(this.wp_extra).monster_name;
if (MUTATOR_CALLHOOK(WP_Format, this, s))
{
string spritelookupicon(entity this, string s)
{
// TODO: needs icons! //if (s == WP_RaceStartFinish.netname) return (race_checkpointtime || race_mycheckpointtime) ? _("Finish") : _("Start");
- //if (s == WP_Weapon.netname) return Weapons_from(this.wp_extra).model2;
- if (s == WP_Weapon.netname) return Weapons_from(this.wp_extra).m_waypoint_icon;
- if (s == WP_Item.netname) return Items_from(this.wp_extra).m_waypoint_icon;
- if (s == WP_Vehicle.netname) return Vehicles_from(this.wp_extra).m_icon;
- if (s == WP_Weapon.netname) return REGISTRY_GET(Weapons, this.wp_extra).model2;
- if (s == WP_Item.netname) return REGISTRY_GET(Items, this.wp_extra).m_icon;
++ //if (s == WP_Weapon.netname) return REGISTRY_GET(Weapons, this.wp_extra).model2;
++ if (s == WP_Weapon.netname) return REGISTRY_GET(Weapons, this.wp_extra).m_waypoint_icon;
++ if (s == WP_Item.netname) return REGISTRY_GET(Items, this.wp_extra).m_waypoint_icon;
+ if (s == WP_Vehicle.netname) return REGISTRY_GET(Vehicles, this.wp_extra).m_icon;
//if (s == WP_Monster.netname) return get_monsterinfo(this.wp_extra).m_icon;
if (MUTATOR_CALLHOOK(WP_Format, this, s))
{
o.x += 0.5 * (w - sw);
- if (is_text)
- drawstring(o, str, sz, rgb, a, DRAWFLAG_NORMAL);
- else
- drawpic(o, str, sz, rgb, a, DRAWFLAG_NORMAL);
+ if (is_text)
+ {
+ drawstring(o, str, sz, rgb, a, DRAWFLAG_NORMAL);
+ }
+ else
+ {
+ drawpic(o, str, sz, rgb, a, DRAWFLAG_NORMAL);
- // https://docs.gimp.org/en/gimp-tool-desaturate.html
++ // https://docs.gimp.org/2.8/en/gimp-tool-desaturate.html
+ //float gray = rgb.x * 0.21 + rgb.y * 0.72 + rgb.z * 0.07;
+ //drawpic(o, str, sz, '1 1 1', gray * a, DRAWFLAG_ADDITIVE);
+ }
o.x += 0.5 * sw;
o.y += 0.5 * h;