itemnames.qc 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /* Copyright (C) 1996-2022 id Software LLC
  2. This program is free software; you can redistribute it and/or modify
  3. it under the terms of the GNU General Public License as published by
  4. the Free Software Foundation; either version 2 of the License, or
  5. (at your option) any later version.
  6. This program is distributed in the hope that it will be useful,
  7. but WITHOUT ANY WARRANTY; without even the implied warranty of
  8. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  9. GNU General Public License for more details.
  10. You should have received a copy of the GNU General Public License
  11. along with this program; if not, write to the Free Software
  12. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  13. See file, 'COPYING', for details.
  14. */
  15. string GetNetName( float item_number ) = {
  16. switch ( item_number ) {
  17. case IT_AXE:
  18. return "Axe";
  19. case IT_SHOTGUN:
  20. return "Shotgun";
  21. case IT_SUPER_SHOTGUN:
  22. return "Super Shotgun";
  23. case IT_NAILGUN:
  24. return "Nailgun";
  25. case IT_SUPER_NAILGUN:
  26. return "Perforator";
  27. case IT_GRENADE_LAUNCHER:
  28. return "Grenade Launcher";
  29. case IT_ROCKET_LAUNCHER:
  30. return "Rocket Launcher";
  31. case IT_LIGHTNING:
  32. return "Lightning Gun";
  33. case IT_EXTRA_WEAPON:
  34. return "Extra Weapon";
  35. case IT_SHELLS:
  36. return "Shells";
  37. case IT_NAILS:
  38. return "Nails";
  39. case IT_ROCKETS:
  40. return "Rockets";
  41. case IT_CELLS:
  42. return "Cells";
  43. case IT_ARMOR1:
  44. return "Green Armor";
  45. case IT_ARMOR2:
  46. return "Yellow Armor";
  47. case IT_ARMOR3:
  48. return "Red Armor";
  49. case IT_SUPERHEALTH:
  50. return "Mega Health";
  51. case IT_KEY1: {
  52. if ( world.worldtype == WORLDTYPE_MEDIEVAL )
  53. return "Silver key";
  54. else if ( world.worldtype == WORLDTYPE_METAL )
  55. return "Silver runkey";
  56. else if ( world.worldtype == WORLDTYPE_BASE )
  57. return "Silver keycard";
  58. }
  59. case IT_KEY2: {
  60. if ( world.worldtype == WORLDTYPE_MEDIEVAL )
  61. return "Gold key";
  62. else if ( world.worldtype == WORLDTYPE_METAL )
  63. return "Gold runkey";
  64. else if ( world.worldtype == WORLDTYPE_BASE )
  65. return "Gold keycard";
  66. }
  67. case IT_INVISIBILITY:
  68. return "Ring of Shadows";
  69. case IT_INVULNERABILITY:
  70. return "Pentagram of Protection";
  71. case IT_SUIT:
  72. return "Biohazard Suit";
  73. case IT_QUAD:
  74. return "Quad Damage";
  75. default:
  76. return string_null;
  77. }
  78. };