home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 2000 June / CD-Gamer_2000-06_10_cd.bin / Patches / Quake3A / q3pointrelease_116n.exe / Main / pak2.pk3 / botfiles / items.c < prev    next >
Encoding:
C/C++ Source or Header  |  1999-12-29  |  10.9 KB  |  481 lines

  1. //===========================================================================
  2. //
  3. // Name:            items.c
  4. // Function:        item configuration
  5. // Programmer:        Mr Elusive
  6. // Last update:        1999-12-28
  7. // Tab Size:        4 (real tabs)
  8. //===========================================================================
  9.  
  10. #include "inv.h"
  11.  
  12. #define ITEM_NONE                    0
  13. #define ITEM_AMMO                    1
  14. #define ITEM_WEAPON                    2
  15. #define ITEM_HEALTH                    3
  16. #define ITEM_ARMOR                    4
  17. #define ITEM_POWERUP                5
  18. #define ITEM_KEY                    6
  19. #define ITEM_FLAG                    7
  20. #define ITEM_ROAM                    8
  21.  
  22. //===================================
  23. // ARMOR
  24. //===================================
  25.  
  26. iteminfo "item_armor_shard"
  27. {
  28.     name                    "Armor Shard"
  29.     model                    "models/powerups/armor/shard.md3"
  30.     modelindex                MODELINDEX_ARMORSHARD
  31.     type                    ITEM_ARMOR
  32.     index                    INVENTORY_ARMOR
  33.     respawntime            20
  34.     mins                    {-15,-15,-15}
  35.     maxs                    {15,15,15}
  36. } //end iteminfo
  37.  
  38. iteminfo "item_armor_combat"
  39. {
  40.     name                    "Armor"
  41.     model                    "models/powerups/armor/armor_yel.md3"
  42.     modelindex                MODELINDEX_ARMORCOMBAT
  43.     type                    ITEM_ARMOR
  44.     index                    INVENTORY_ARMOR
  45.     respawntime            20
  46.     mins                    {-15,-15,-15}
  47.     maxs                    {15,15,15}
  48. } //end iteminfo
  49.  
  50. iteminfo "item_armor_body"
  51. {
  52.     name                    "Heavy Armor"
  53.     model                    "models/powerups/armor/armor_red.md3"
  54.     modelindex                MODELINDEX_ARMORBODY
  55.     type                    ITEM_ARMOR
  56.     index                    INVENTORY_ARMOR
  57.     respawntime            20
  58.     mins                    {-15,-15,-15}
  59.     maxs                    {15,15,15}
  60. } //end iteminfo
  61.  
  62. //===================================
  63. // HEALTH
  64. //===================================
  65.  
  66. iteminfo "item_health_small"
  67. {
  68.     name                    "5 Health"
  69.     model                    "models/powerups/health/small_cross.md3"
  70.     modelindex                MODELINDEX_HEALTHSMALL
  71.     type                    ITEM_HEALTH
  72.     index                    INVENTORY_HEALTH
  73.     respawntime            30
  74.     mins                    {-15,-15,-15}
  75.     maxs                    {15,15,15}
  76. } //end iteminfo
  77.  
  78. iteminfo "item_health"
  79. {
  80.     name                    "25 Health"
  81.     model                    "models/powerups/health/medium_cross.md3"
  82.     modelindex                MODELINDEX_HEALTH
  83.     type                    ITEM_HEALTH
  84.     index                    INVENTORY_HEALTH
  85.     respawntime            30
  86.     mins                    {-15,-15,-15}
  87.     maxs                    {15,15,15}
  88. } //end iteminfo
  89.  
  90. iteminfo "item_health_large"
  91. {
  92.     name                    "50 Health"
  93.     model                    "models/powerups/health/large_cross.md3"
  94.     modelindex                MODELINDEX_HEALTHLARGE
  95.     type                    ITEM_HEALTH
  96.     index                    INVENTORY_HEALTH
  97.     respawntime            30
  98.     mins                    {-15,-15,-15}
  99.     maxs                    {15,15,15}
  100. } //end iteminfo
  101.  
  102. iteminfo "item_health_mega"
  103. {
  104.     name                    "Mega Health"
  105.     model                    "models/powerups/health/mega_cross.md3"
  106.     modelindex                MODELINDEX_HEALTHMEGA
  107.     type                    ITEM_HEALTH
  108.     index                    INVENTORY_HEALTH
  109.     respawntime            30
  110.     mins                    {-15,-15,-15}
  111.     maxs                    {15,15,15}
  112. } //end iteminfo
  113.  
  114. //===================================
  115. // WEAPONS
  116. //===================================
  117. //*
  118. iteminfo "weapon_gauntlet"
  119. {
  120.     name                    "Gauntlet"
  121.     model                    "models/weapons2/gauntlet/gauntlet.md3"
  122.     modelindex                MODELINDEX_GAUNTLET
  123.     type                    ITEM_WEAPON
  124.     index                    INVENTORY_GAUNTLET
  125.     respawntime            30
  126.     mins                    {-15,-15,-15}
  127.     maxs                    {15,15,15}
  128. } //end iteminfo*/
  129.  
  130. iteminfo "weapon_shotgun"
  131. {
  132.     name                    "Shotgun"
  133.     model                    "models/weapons2/shotgun/shotgun.md3"
  134.     modelindex                MODELINDEX_SHOTGUN
  135.     type                    ITEM_WEAPON
  136.     index                    INVENTORY_SHOTGUN
  137.     respawntime            30
  138.     mins                    {-15,-15,-15}
  139.     maxs                    {15,15,15}
  140. } //end iteminfo
  141.  
  142. iteminfo "weapon_machinegun"
  143. {
  144.     name                    "Machinegun"
  145.     model                    "models/weapons2/machinegun/machinegun.md3"
  146.     modelindex                MODELINDEX_MACHINEGUN
  147.     type                    ITEM_WEAPON
  148.     index                    INVENTORY_MACHINEGUN
  149.     respawntime            30
  150.     mins                    {-15,-15,-15}
  151.     maxs                    {15,15,15}
  152. } //end iteminfo
  153.  
  154. iteminfo "weapon_grenadelauncher"
  155. {
  156.     name                    "Grenade Launcher"
  157.     model                    "models/weapons2/grenadel/grenadel.md2"
  158.     modelindex                MODELINDEX_GRENADELAUNCHER
  159.     type                    ITEM_WEAPON
  160.     index                    INVENTORY_GRENADELAUNCHER
  161.     respawntime            30
  162.     mins                    {-15,-15,-15}
  163.     maxs                    {15,15,15}
  164. } //end iteminfo
  165.  
  166. iteminfo "weapon_rocketlauncher"
  167. {
  168.     name                    "Rocket Launcher"
  169.     model                    "models/weapons2/rocketl/rocketl.md3"
  170.     modelindex                MODELINDEX_ROCKETLAUNCHER
  171.     type                    ITEM_WEAPON
  172.     index                    INVENTORY_ROCKETLAUNCHER
  173.     respawntime            30
  174.     mins                    {-15,-15,-15}
  175.     maxs                    {15,15,15}
  176. } //end iteminfo
  177.  
  178. iteminfo "weapon_lightning"
  179. {
  180.     name                    "Lightning Gun"
  181.     model                    "models/weapons2/lightning/lightning.md3"
  182.     modelindex                MODELINDEX_LIGHTNING
  183.     type                    ITEM_WEAPON
  184.     index                    INVENTORY_LIGHTNING
  185.     respawntime            30
  186.     mins                    {-15,-15,-15}
  187.     maxs                    {15,15,15}
  188. } //end iteminfo
  189.  
  190. iteminfo "weapon_railgun"
  191. {
  192.     name                    "Railgun"
  193.     model                    "models/weapons2/railgun/railgun.md3"
  194.     modelindex                MODELINDEX_RAILGUN
  195.     type                    ITEM_WEAPON
  196.     index                    INVENTORY_RAILGUN
  197.     respawntime            30
  198.     mins                    {-15,-15,-15}
  199.     maxs                    {15,15,15}
  200. } //end iteminfo
  201.  
  202. iteminfo "weapon_plasmagun"
  203. {
  204.     name                    "Plasma Gun"
  205.     model                    "models/weapons2/plasma/plasma.md3"
  206.     modelindex                MODELINDEX_PLASMAGUN
  207.     type                    ITEM_WEAPON
  208.     index                    INVENTORY_PLASMAGUN
  209.     respawntime            30
  210.     mins                    {-15,-15,-15}
  211.     maxs                    {15,15,15}
  212. } //end iteminfo
  213.  
  214. iteminfo "weapon_bfg"
  215. {
  216.     name                    "BFG10K"
  217.     model                    "models/weapons2/bfg/bfg.md3"
  218.     modelindex                MODELINDEX_BFG10K
  219.     type                    ITEM_WEAPON
  220.     index                    INVENTORY_BFG10K
  221.     respawntime            30
  222.     mins                    {-15,-15,-15}
  223.     maxs                    {15,15,15}
  224. } //end iteminfo
  225.  
  226. iteminfo "weapon_grapplinghook"
  227. {
  228.     name                    "Grappling Hook"
  229.     model                    "models/weapons2/grapple/grapple.md3"
  230.     modelindex                MODELINDEX_GRAPPLINGHOOK
  231.     type                    ITEM_WEAPON
  232.     index                    INVENTORY_GRAPPLINGHOOK
  233.     respawntime            30
  234.     mins                    {-15,-15,-15}
  235.     maxs                    {15,15,15}
  236. } //end iteminfo
  237.  
  238. //===================================
  239. // AMMO
  240. //===================================
  241.  
  242. iteminfo "ammo_shells"
  243. {
  244.     name                    "Shells"
  245.     model                    "models/powerups/ammo/shotgunam.md3"
  246.     modelindex                MODELINDEX_SHELLS
  247.     type                    ITEM_AMMO
  248.     index                    INVENTORY_SHELLS
  249.     respawntime            30
  250.     mins                    {-15,-15,-15}
  251.     maxs                    {15,15,15}
  252. } //end iteminfo
  253.  
  254. iteminfo "ammo_bullets"
  255. {
  256.     name                    "Bullets"
  257.     model                    "models/powerups/ammo/machinegunam.md3"
  258.     modelindex                MODELINDEX_BULLETS
  259.     type                    ITEM_AMMO
  260.     index                    INVENTORY_BULLETS
  261.     respawntime            30
  262.     mins                    {-15,-15,-15}
  263.     maxs                    {15,15,15}
  264. } //end iteminfo
  265.  
  266. iteminfo "ammo_grenades"
  267. {
  268.     name                    "Grenades"
  269.     model                    "models/powerups/ammo/grenadeam.md3"
  270.     modelindex                MODELINDEX_GRENADES
  271.     type                    ITEM_AMMO
  272.     index                    INVENTORY_GRENADES
  273.     respawntime            30
  274.     mins                    {-15,-15,-15}
  275.     maxs                    {15,15,15}
  276. } //end iteminfo
  277.  
  278. iteminfo "ammo_cells"
  279. {
  280.     name                    "Cells"
  281.     model                    "models/powerups/ammo/plasmaam.md3"
  282.     modelindex                MODELINDEX_CELLS
  283.     type                    ITEM_AMMO
  284.     index                    INVENTORY_CELLS
  285.     respawntime            30
  286.     mins                    {-15,-15,-15}
  287.     maxs                    {15,15,15}
  288. } //end iteminfo
  289.  
  290. iteminfo "ammo_lightning"
  291. {
  292.     name                    "Lightning"
  293.     model                    "models/powerups/ammo/lightningam.md3"
  294.     modelindex                MODELINDEX_LIGHTNINGAMMO
  295.     type                    ITEM_AMMO
  296.     index                    INVENTORY_LIGHTNINGAMMO
  297.     respawntime            30
  298.     mins                    {-15,-15,-15}
  299.     maxs                    {15,15,15}
  300. } //end iteminfo
  301.  
  302. iteminfo "ammo_rockets"
  303. {
  304.     name                    "Rockets"
  305.     model                    "models/powerups/ammo/rocketam.dm3"
  306.     modelindex                MODELINDEX_ROCKETS
  307.     type                    ITEM_AMMO
  308.     index                    INVENTORY_ROCKETS
  309.     respawntime            30
  310.     mins                    {-15,-15,-15}
  311.     maxs                    {15,15,15}
  312. } //end iteminfo
  313.  
  314. iteminfo "ammo_slugs"
  315. {
  316.     name                    "Slugs"
  317.     model                    "models/powerups/ammo/railgunam.md3"
  318.     modelindex                MODELINDEX_SLUGS
  319.     type                    ITEM_AMMO
  320.     index                    INVENTORY_SLUGS
  321.     respawntime            30
  322.     mins                    {-15,-15,-15}
  323.     maxs                    {15,15,15}
  324. } //end iteminfo
  325.  
  326. iteminfo "ammo_bfg"
  327. {
  328.     name                    "Bfg ammo"
  329.     model                    "models/powerups/ammo/bfgam.md3"
  330.     modelindex                MODELINDEX_BFGAMMO
  331.     type                    ITEM_AMMO
  332.     index                    INVENTORY_BFGAMMO
  333.     respawntime            30
  334.     mins                    {-15,-15,-15}
  335.     maxs                    {15,15,15}
  336. } //end iteminfo
  337.  
  338. //===================================
  339. // POWERUPS
  340. //===================================
  341.  
  342. iteminfo "holdable_teleporter"
  343. {
  344.     name                    "Personal Teleporter"
  345.     model                    "models/powerups/holdable/teleporter.md3"
  346.     modelindex                MODELINDEX_TELEPORTER
  347.     type                    ITEM_POWERUP
  348.     index                    INVENTORY_TELEPORTER
  349.     respawntime            60
  350.     mins                    {-15,-15,-15}
  351.     maxs                    {15,15,15}
  352. } //end iteminfo
  353.  
  354. iteminfo "holdable_medkit"
  355. {
  356.     name                    "Medkit"
  357.     model                    "models/powerups/holdable/medkit.md3"
  358.     modelindex                MODELINDEX_MEDKIT
  359.     type                    ITEM_HEALTH
  360.     index                    INVENTORY_MEDKIT
  361.     respawntime            30
  362.     mins                    {-15,-15,-15}
  363.     maxs                    {15,15,15}
  364. } //end iteminfo
  365.  
  366. iteminfo "item_quad"
  367. {
  368.     name                    "Quad Damage"
  369.     model                    "models/powerups/instant/quad.md3"
  370.     modelindex                MODELINDEX_QUAD
  371.     type                    ITEM_POWERUP
  372.     index                    INVENTORY_QUAD
  373.     respawntime            60
  374.     mins                    {-15,-15,-15}
  375.     maxs                    {15,15,15}
  376. } //end iteminfo
  377.  
  378. iteminfo "item_enviro"
  379. {
  380.     name                    "Battle Suit"
  381.     model                    "models/powerups/instant/enviro.md3"
  382.     modelindex                MODELINDEX_ENVIRONMENTSUIT
  383.     type                    ITEM_POWERUP
  384.     index                    INVENTORY_ENVIRONMENTSUIT
  385.     respawntime            60
  386.     mins                    {-15,-15,-15}
  387.     maxs                    {15,15,15}
  388. } //end iteminfo
  389.  
  390. iteminfo "item_haste"
  391. {
  392.     name                    "Speed"
  393.     model                    "models/powerups/instant/haste_ring.md3"
  394.     modelindex                MODELINDEX_HASTE
  395.     type                    ITEM_POWERUP
  396.     index                    INVENTORY_HASTE
  397.     respawntime            60
  398.     mins                    {-15,-15,-15}
  399.     maxs                    {15,15,15}
  400. } //end iteminfo
  401.  
  402. iteminfo "item_invisibility"
  403. {
  404.     name                    "Invisibility"
  405.     model                    "models/powerups/instant/invis.md3"
  406.     modelindex                MODELINDEX_INVISIBILITY
  407.     type                    ITEM_POWERUP
  408.     index                    INVENTORY_INVISIBILITY
  409.     respawntime            60
  410.     mins                    {-15,-15,-15}
  411.     maxs                    {15,15,15}
  412. } //end iteminfo
  413.  
  414. iteminfo "item_regen"
  415. {
  416.     name                    "Regeneration"
  417.     model                    "models/powerups/instant/regen_ring.md3"
  418.     modelindex                MODELINDEX_REGEN
  419.     type                    ITEM_POWERUP
  420.     index                    INVENTORY_REGEN
  421.     respawntime            60
  422.     mins                    {-15,-15,-15}
  423.     maxs                    {15,15,15}
  424. } //end iteminfo
  425.  
  426. iteminfo "item_flight"
  427. {
  428.     name                    "Flight"
  429.     model                    "models/powerups/instant/flight_ring.md3"
  430.     modelindex                MODELINDEX_FLIGHT
  431.     type                    ITEM_POWERUP
  432.     index                    INVENTORY_FLIGHT
  433.     respawntime            60
  434.     mins                    {-15,-15,-15}
  435.     maxs                    {15,15,15}
  436. } //end iteminfo
  437.  
  438.  
  439. //===================================
  440. // CTF flags
  441. //===================================
  442.  
  443. iteminfo "team_CTF_redflag"
  444. {
  445.     name                    "Red Flag"
  446.     model                    "models/flags/r_flag.md3"
  447.     modelindex                MODELINDEX_REDFLAG
  448.     type                    ITEM_FLAG
  449.     index                    INVENTORY_REDFLAG
  450.     mins                    {-15,-15,-15}
  451.     maxs                    {15,15,15}
  452. } //end iteminfo
  453.  
  454. iteminfo "team_CTF_blueflag"
  455. {
  456.     name                    "Blue Flag"
  457.     model                    "models/flags/b_flag.md3"
  458.     modelindex                MODELINDEX_BLUEFLAG
  459.     type                    ITEM_FLAG
  460.     index                    INVENTORY_BLUEFLAG
  461.     mins                    {-15,-15,-15}
  462.     maxs                    {15,15,15}
  463. } //end iteminfo
  464.  
  465. //===================================
  466. // bot roam item
  467. //===================================
  468.  
  469. iteminfo "item_botroam"
  470. {
  471.     name                    "Bot Roam Goal"
  472.     model                    ""
  473.     modelindex                0
  474.     type                    ITEM_ROAM
  475.     index                    0
  476.     mins                    {-15,-15,-15}
  477.     maxs                    {15,15,15}
  478. }
  479.  
  480.  
  481.