]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Waypoint icons: Updated game items.
authorLyberta <lyberta@lyberta.net>
Fri, 15 Jun 2018 17:47:27 +0000 (20:47 +0300)
committerLyberta <lyberta@lyberta.net>
Fri, 15 Jun 2018 17:47:27 +0000 (20:47 +0300)
qcsrc/common/items/item.qh
qcsrc/common/items/item/armor.qh
qcsrc/common/items/item/health.qh
qcsrc/common/items/item/jetpack.qh
qcsrc/common/items/item/powerup.qh
qcsrc/common/mutators/mutator/instagib/items.qh
qcsrc/common/mutators/mutator/waypoints/waypointsprites.qc

index 31b8f43cb17fe6041ec7c6155278db7aaad5823c..b224c8806f490d7759698dc13a3396e25fbc825e 100644 (file)
@@ -84,7 +84,8 @@ CLASS(GameItem, Object)
     ATTRIB(GameItem, m_name, string);
     ATTRIB(GameItem, m_icon, string);
     ATTRIB(GameItem, m_color, vector, '1 1 1');
-    ATTRIB(GameItem, m_waypoint, string);
+       ATTRIB(GameItem, m_waypoint_text, string);
+       ATTRIB(GameItem, m_waypoint_icon, string);
     ATTRIB(GameItem, m_waypointblink, int, 1);
 #ifdef GAMEQC
     ATTRIB(GameItem, m_glow, bool, false);
index 880a932d7c27db58ceb0cfc4943f36059a296483..165f3ed8c73fa8dce7dce8d6d55739810bdbdce4 100644 (file)
@@ -41,6 +41,7 @@ REGISTER_ITEM(ArmorSmall, Armor) {
     this.netname                =   "armor_small";
     this.m_name                 =   "5 Armor";
     this.m_icon                 =   "armor";
+       this.m_waypoint_icon        =   "waypoint_armor";
 #ifdef SVQC
     this.m_itemid               =   IT_ARMOR_SHARD;
     this.m_respawntime          =   GET(g_pickup_respawntime_short);
@@ -79,6 +80,7 @@ REGISTER_ITEM(ArmorMedium, Armor) {
     this.netname                =   "armor_medium";
     this.m_name                 =   "25 Armor";
     this.m_icon                 =   "armor";
+       this.m_waypoint_icon        =   "waypoint_armor";
 #ifdef SVQC
     this.m_itemid               =   IT_ARMOR;
     this.m_respawntime          =   GET(g_pickup_respawntime_medium);
@@ -118,7 +120,8 @@ REGISTER_ITEM(ArmorBig, Armor) {
     this.m_name                 =   "50 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_respawntime          =   GET(g_pickup_respawntime_long);
@@ -158,7 +161,8 @@ REGISTER_ITEM(ArmorMega, Armor) {
     this.m_name                 =   "100 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';
index 6a5ffc5ca478677cdece01528f17c5509ab333cf..059e8bb23106312933b55924abfb9f88ae20360a 100644 (file)
@@ -41,6 +41,7 @@ REGISTER_ITEM(HealthSmall, Health) {
     this.netname                =   "health_small";
     this.m_name                 =   "5 Health";
     this.m_icon                 =   "health";
+       this.m_waypoint_icon        =   "waypoint_health";
 #ifdef SVQC
     this.m_itemid               =   IT_5HP;
     this.m_respawntime          =   GET(g_pickup_respawntime_short);
@@ -79,6 +80,7 @@ REGISTER_ITEM(HealthMedium, Health) {
     this.netname                =   "health_medium";
     this.m_name                 =   "25 Health";
     this.m_icon                 =   "health";
+       this.m_waypoint_icon        =   "waypoint_health";
 #ifdef SVQC
     this.m_itemid               =   IT_25HP;
     this.m_respawntime          =   GET(g_pickup_respawntime_short);
@@ -118,7 +120,8 @@ REGISTER_ITEM(HealthBig, Health) {
     this.m_name                 =   "50 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_respawntime          =   GET(g_pickup_respawntime_medium);
@@ -158,7 +161,8 @@ REGISTER_ITEM(HealthMega, Health) {
     this.m_name                 =   "100 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';
index c56d682febb14625fb81a4ce36a988ece75f8e0a..e19eb49f2f11c15aab306a08c9bff36ce1615411 100644 (file)
@@ -38,7 +38,8 @@ REGISTER_ITEM(Jetpack, Powerup) {
     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;
@@ -96,7 +97,8 @@ REGISTER_ITEM(JetpackRegen, JetpackRegen) {
     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;
index 1c10afa488a581065888af5fa7a7324e82ca2eb6..a6f3519fa07c080d789203e36f90bc2b882c9390 100644 (file)
@@ -43,7 +43,8 @@ REGISTER_ITEM(Strength, Powerup) {
     this.m_name             =   "Strength Powerup";
     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;
     this.m_itemid           =   IT_STRENGTH;
 #ifdef SVQC
@@ -79,7 +80,8 @@ REGISTER_ITEM(Shield, Powerup) {
     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;
     this.m_itemid           =   IT_INVINCIBLE;
 #ifdef SVQC
index 95f4f3210c6a97c2650ff61317efb5018b509cdf..4d6ec3109420865af319ed79a22b4bb49a9b2491 100644 (file)
@@ -59,7 +59,8 @@ REGISTER_ITEM(ExtraLife, Powerup) {
     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;
 }
@@ -91,7 +92,8 @@ REGISTER_ITEM(Invisibility, Powerup) {
     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;
     this.m_itemid           =   IT_STRENGTH;
 #ifdef SVQC
@@ -126,7 +128,8 @@ REGISTER_ITEM(Speed, Powerup) {
     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;
     this.m_itemid           =   IT_INVINCIBLE;
 #ifdef SVQC
index 1eebd8ed83488fa4dca7b86a03c1749233061b7d..30b41637c5607a696cdab537c4002696dcb88ffd 100644 (file)
@@ -243,7 +243,7 @@ string spritelookuptext(entity this, string s)
                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;
+       if (s == WP_Item.netname) return Items_from(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))
     {
@@ -262,7 +262,7 @@ 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_Item.netname) return Items_from(this.wp_extra).m_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;
     if (MUTATOR_CALLHOOK(WP_Format, this, s))