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).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_Monster.netname) return get_monsterinfo(this.wp_extra).m_icon;
{
drawpic(o, str, sz, rgb, a, DRAWFLAG_NORMAL);
// https://docs.gimp.org/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);
+ //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;
ATTRIB(Weapon, w_reticle, string, string_null);
/** M: wepimg : "weaponfoobar" side view image file of weapon. WEAPONTODO: Move out of skin files, move to common files */
ATTRIB(Weapon, model2, string, "");
+ /** M: waypoint icon name : "waypoint_weapon_foobar" Name of the weapon waypoint icon */
+ ATTRIB(Weapon, m_waypoint_icon, string, "");
/** M: refname : reference name name */
ATTRIB(Weapon, netname, string, "");
/** M: wepname : human readable name */
/* crosshair */ ATTRIB(Blaster, w_crosshair, string, "gfx/crosshairlaser");
/* crosshair */ ATTRIB(Blaster, w_crosshair_size, float, 0.5);
/* wepimg */ ATTRIB(Blaster, model2, string, "weaponlaser");
+/* wp_icon */ ATTRIB(Blaster, m_waypoint_icon, string, "waypoint_weapon_blaster");
/* refname */ ATTRIB(Blaster, netname, string, "blaster");
/* wepname */ ATTRIB(Blaster, m_name, string, _("Blaster"));
/* crosshair */ ATTRIB(Crylink, w_crosshair, string, "gfx/crosshaircrylink");
/* crosshair */ ATTRIB(Crylink, w_crosshair_size, float, 0.5);
/* wepimg */ ATTRIB(Crylink, model2, string, "weaponcrylink");
+/* wp_icon */ ATTRIB(Crylink, m_waypoint_icon, string, "waypoint_weapon_crylink");
/* refname */ ATTRIB(Crylink, netname, string, "crylink");
/* wepname */ ATTRIB(Crylink, m_name, string, _("Crylink"));
/* crosshair */ ATTRIB(Devastator, w_crosshair, string, "gfx/crosshairrocketlauncher");
/* crosshair */ ATTRIB(Devastator, w_crosshair_size, float, 0.7);
/* wepimg */ ATTRIB(Devastator, model2, string, "weaponrocketlauncher");
+/* wp_icon */ ATTRIB(Devastator, m_waypoint_icon, string, "waypoint_weapon_devastator");
/* refname */ ATTRIB(Devastator, netname, string, "devastator");
/* wepname */ ATTRIB(Devastator, m_name, string, _("Devastator"));
/* crosshair */ ATTRIB(Electro, w_crosshair, string, "gfx/crosshairelectro");
/* crosshair */ ATTRIB(Electro, w_crosshair_size, float, 0.6);
/* wepimg */ ATTRIB(Electro, model2, string, "weaponelectro");
+/* wp_icon */ ATTRIB(Electro, m_waypoint_icon, string, "waypoint_weapon_electro");
/* refname */ ATTRIB(Electro, netname, string, "electro");
/* wepname */ ATTRIB(Electro, m_name, string, _("Electro"));
/* crosshair */ ATTRIB(Hagar, w_crosshair, string, "gfx/crosshairhagar");
/* crosshair */ ATTRIB(Hagar, w_crosshair_size, float, 0.8);
/* wepimg */ ATTRIB(Hagar, model2, string, "weaponhagar");
+/* wp_icon */ ATTRIB(Hagar, m_waypoint_icon, string, "waypoint_weapon_hagar");
/* refname */ ATTRIB(Hagar, netname, string, "hagar");
/* wepname */ ATTRIB(Hagar, m_name, string, _("Hagar"));
/* crosshair */ ATTRIB(MachineGun, w_crosshair, string, "gfx/crosshairuzi");
/* crosshair */ ATTRIB(MachineGun, w_crosshair_size, float, 0.6);
/* wepimg */ ATTRIB(MachineGun, model2, string, "weaponuzi");
+/* wp_icon */ ATTRIB(MachineGun, m_waypoint_icon, string, "waypoint_weapon_machinegun");
/* refname */ ATTRIB(MachineGun, netname, string, "machinegun");
/* wepname */ ATTRIB(MachineGun, m_name, string, _("MachineGun"));
/* crosshair */ ATTRIB(MineLayer, w_crosshair, string, "gfx/crosshairminelayer");
/* crosshair */ ATTRIB(MineLayer, w_crosshair_size, float, 0.9);
/* wepimg */ ATTRIB(MineLayer, model2, string, "weaponminelayer");
+/* wp_icon */ ATTRIB(MineLayer, m_waypoint_icon, string, "waypoint_weapon_minelayer");
/* refname */ ATTRIB(MineLayer, netname, string, "minelayer");
/* wepname */ ATTRIB(MineLayer, m_name, string, _("Mine Layer"));
/* crosshair */ ATTRIB(Mortar, w_crosshair, string, "gfx/crosshairgrenadelauncher");
/* crosshair */ ATTRIB(Mortar, w_crosshair_size, float, 0.7);
/* wepimg */ ATTRIB(Mortar, model2, string, "weapongrenadelauncher");
+/* wp_icon */ ATTRIB(Mortar, m_waypoint_icon, string, "waypoint_weapon_mortar");
/* refname */ ATTRIB(Mortar, netname, string, "mortar");
/* wepname */ ATTRIB(Mortar, m_name, string, _("Mortar"));
/* crosshair */ ATTRIB(Shotgun, w_crosshair, string, "gfx/crosshairshotgun");
/* crosshair */ ATTRIB(Shotgun, w_crosshair_size, float, 0.65);
/* wepimg */ ATTRIB(Shotgun, model2, string, "weaponshotgun");
+/* wp_icon */ ATTRIB(Shotgun, m_waypoint_icon, string, "waypoint_weapon_shotgun");
/* refname */ ATTRIB(Shotgun, netname, string, "shotgun");
/* wepname */ ATTRIB(Shotgun, m_name, string, _("Shotgun"));
/* crosshair */ ATTRIB(Vortex, w_crosshair_size, float, 0.65);
/* reticle */ ATTRIB(Vortex, w_reticle, string, "gfx/reticle_nex");
/* wepimg */ ATTRIB(Vortex, model2, string, "weaponnex");
+/* wp_icon */ ATTRIB(Vortex, m_waypoint_icon, string, "waypoint_weapon_vortex");
/* refname */ ATTRIB(Vortex, netname, string, "vortex");
/* wepname */ ATTRIB(Vortex, m_name, string, _("Vortex"));