home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Inne / Gry / OpenArena / baseoa / pak6-misc.pk3 / botfiles / items.c < prev    next >
C/C++ Source or Header  |  2007-10-15  |  14KB  |  739 lines

  1. /*
  2. ===========================================================================
  3. Copyright (C) 2006 Dmn_clown (aka: Bob Isaac (rjisaac@gmail.com))
  4.  
  5. This file is part of Open Arena and is based upon Mr. Elusive's fuzzy logic
  6. system found in Quake 3 Arena.
  7.  
  8. Open Arena is free software; you can redistribute it
  9. and/or modify it under the terms of the GNU General Public License as
  10. published by the Free Software Foundation; either version 2 of the License,
  11. or (at your option) any later version.
  12.  
  13. Open Arena is distributed in the hope that it will be
  14. useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. GNU General Public License for more details.
  17.  
  18. You should have received a copy of the GNU General Public License
  19. along with Foobar; if not, write to the Free Software
  20. Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  21. ===========================================================================
  22. */
  23.  
  24. #include "inv.h"
  25.  
  26. #define NOITEM        0
  27. #define AMMOI        1
  28. #define WEAPONI        2
  29. #define HEALTHI        3
  30. #define ARMORI        4
  31. #define POWERI        5
  32. #define FLAGI        6
  33. #define ROAMI        7
  34.  
  35. //===================================
  36. // ARMOR
  37. //===================================
  38.  
  39. iteminfo "ammo_belt"
  40. {
  41. name        "Chaingun Belt"
  42. model        "models/powerups/ammo/chaingunam.md3"
  43. modelindex    MODELINDEX_BELT
  44. type        AMMOI
  45. index        INVENTORY_BELT
  46. respawntime    30
  47. mins        {-13,-13,-13}
  48. maxs        {13,13,13}
  49.  
  50. iteminfo "ammo_bfg"
  51. {
  52. name        "Bfg ammo"
  53. model        "models/powerups/ammo/bfgam.md3"
  54. modelindex    MODELINDEX_BFGAMMO
  55. type        AMMOI
  56. index        INVENTORY_BFGAMMO
  57. respawntime    30
  58. mins        {-13,-13,-13}
  59. maxs        {13,13,13}
  60.  
  61. iteminfo "ammo_bullets"
  62. {
  63. name        "Bullets"
  64. model        "models/powerups/ammo/machinegunam.md3"
  65. modelindex    MODELINDEX_BULLETS
  66. type        AMMOI
  67. index        INVENTORY_BULLETS
  68. respawntime    30
  69. mins        {-13,-13,-13}
  70. maxs        {13,13,13}
  71.  
  72. iteminfo "ammo_cells"
  73. {
  74. name        "Cells"
  75. model        "models/powerups/ammo/plasmaam.md3"
  76. modelindex    MODELINDEX_CELLS
  77. type        AMMOI
  78. index        INVENTORY_CELLS
  79. respawntime    30
  80. mins        {-13,-13,-13}
  81. maxs        {13,13,13}
  82.  
  83. iteminfo "ammo_grenades"
  84. {
  85. name        "Grenades"
  86. model        "models/powerups/ammo/grenadeam.md3"
  87. modelindex    MODELINDEX_GRENADES
  88. type        AMMOI
  89. index        INVENTORY_GRENADES
  90. respawntime    30
  91. mins        {-13,-13,-13}
  92. maxs        {13,13,13}
  93. }
  94.  
  95. iteminfo "ammo_lightning"
  96. {
  97. name        "Lightning"
  98. model        "models/powerups/ammo/lightningam.md3"
  99. modelindex    MODELINDEX_LIGHTNINGAMMO
  100. type        AMMOI
  101. index        INVENTORY_LIGHTNINGAMMO
  102. respawntime    30
  103. mins        {-13,-13,-13}
  104. maxs        {13,13,13}
  105.  
  106. iteminfo "ammo_mines"
  107. {
  108. name        "Proximity Mines"
  109. model        "models/powerups/ammo/proxmineam.md3"
  110. modelindex    MODELINDEX_MINES
  111. type        AMMOI
  112. index        INVENTORY_MINES
  113. respawntime    30
  114. mins        {-13,-13,-13}
  115. maxs        {13,13,13}
  116.  
  117. iteminfo "ammo_nails"
  118. {
  119. name        "Nails"
  120. model        "models/powerups/ammo/nailgunam.md3"
  121. modelindex    MODELINDEX_NAILS
  122. type        AMMOI
  123. index        INVENTORY_NAILS
  124. respawntime    30
  125. mins        {-13,-13,-13}
  126. maxs        {13,13,13}
  127.  
  128. iteminfo "ammo_rockets"
  129. {
  130. name        "Rockets"
  131. model        "models/powerups/ammo/rocketam.dm3"
  132. modelindex    MODELINDEX_ROCKETS
  133. type        AMMOI
  134. index        INVENTORY_ROCKETS
  135. respawntime    30
  136. mins        {-13,-13,-13}
  137. maxs        {13,13,13}
  138.  
  139. iteminfo "ammo_shells"
  140. {
  141. name        "Shells"
  142. model        "models/powerups/ammo/shotgunam.md3"
  143. modelindex    MODELINDEX_SHELLS
  144. type        AMMOI
  145. index        INVENTORY_SHELLS
  146. respawntime    30
  147. mins        {-13,-13,-13}
  148. maxs        {13,13,13}
  149.  
  150. iteminfo "ammo_slugs"
  151. {
  152. name        "Slugs"
  153. model        "models/powerups/ammo/railgunam.md3"
  154. modelindex    MODELINDEX_SLUGS
  155. type        AMMOI
  156. index        INVENTORY_SLUGS
  157. respawntime    30
  158. mins        {-13,-13,-13}
  159. maxs        {13,13,13}
  160.  
  161. iteminfo "holdable_invulnerability"
  162. {
  163. name        "Invulnerability"
  164. model        "models/powerups/holdable/invulnerability.md3"
  165. modelindex    MODELINDEX_INVULNERABILITY
  166. type        POWERI
  167. index        INVENTORY_PORTAL
  168. respawntime    30
  169. mins        {-13,-13,-13}
  170. maxs        {13,13,13}
  171. }
  172.  
  173. iteminfo "holdable_kamikaze"
  174. {
  175. name        "Kamikaze"
  176. model        "models/powerups/kamikazi.md3"
  177. modelindex    MODELINDEX_KAMIKAZE
  178. type        POWERI
  179. index        INVENTORY_KAMIKAZE
  180. respawntime    30
  181. mins        {-13,-13,-13}
  182. maxs        {13,13,13}
  183.  
  184. iteminfo "holdable_medkit"
  185. {
  186. name        "Medkit"
  187. model        "models/powerups/holdable/medkit.md3"
  188. modelindex    MODELINDEX_MEDKIT
  189. type        HEALTHI
  190. index        INVENTORY_MEDKIT
  191. respawntime    30
  192. mins        {-13,-13,-13}
  193. maxs        {13,13,13}
  194. }
  195.  
  196. iteminfo "holdable_portal"
  197. {
  198. name        "Portal"
  199. model        "models/powerups/holdable/teleporter.md3"
  200. modelindex    MODELINDEX_PORTAL
  201. type        POWERI
  202. index        INVENTORY_PORTAL
  203. respawntime    30
  204. mins        {-13,-13,-13}
  205. maxs        {13,13,13}
  206.  
  207. iteminfo "holdable_teleporter"
  208. {
  209. name        "Personal Teleporter"
  210. model        "models/powerups/holdable/teleporter.md3"
  211. modelindex    MODELINDEX_TELEPORTER
  212. type        POWERI
  213. index        INVENTORY_TELEPORTER
  214. respawntime    60
  215. mins        {-13,-13,-13}
  216. maxs        {13,13,13}
  217.  
  218. iteminfo "item_armor_body"
  219. {
  220. name        "Heavy Armor"
  221. model        "models/powerups/armor/armor_red.md3"
  222. modelindex    MODELINDEX_ARMORBODY
  223. type        ARMORI
  224. index        INVENTORY_ARMOR
  225. respawntime    30
  226. mins        {-13,-13,-13}
  227. maxs        {13,13,13}
  228.  
  229.  
  230. iteminfo "item_armor_combat"
  231. {
  232. name        "Armor"
  233. model        "models/powerups/armor/armor_yel.md3"
  234. modelindex    MODELINDEX_ARMORCOMBAT
  235. type        ARMORI
  236. index        INVENTORY_ARMOR
  237. respawntime    30
  238. mins        {-13,-13,-13}
  239. maxs        {13,13,13}
  240.  
  241. iteminfo "item_armor_shard"
  242. {
  243. name        "Armor Shard"
  244. model        "models/powerups/armor/shard.md3"
  245. modelindex    MODELINDEX_ARMORSHARD
  246. type        ARMORI
  247. index        INVENTORY_ARMOR
  248. respawntime    30
  249. mins        {-13,-13,-13}
  250. maxs        {13,13,13}
  251.  
  252.  
  253. iteminfo "item_health"
  254. {
  255. name        "25 Health"
  256. model        "models/powerups/health/medium_cross.md3"
  257. modelindex    MODELINDEX_HEALTH
  258. type        HEALTHI
  259. index        INVENTORY_HEALTH
  260. respawntime    30
  261. mins        {-13,-13,-13}
  262. maxs        {13,13,13}
  263.  
  264. iteminfo "item_health_large"
  265. {
  266. name        "50 Health"
  267. model        "models/powerups/health/large_cross.md3"
  268. modelindex    MODELINDEX_HEALTHLARGE
  269. type        HEALTHI
  270. index        INVENTORY_HEALTH
  271. respawntime    30
  272. mins        {-13,-13,-13}
  273. maxs        {13,13,13}
  274. }
  275.  
  276. iteminfo "item_health_mega"
  277. {
  278. name        "Mega Health"
  279. model        "models/powerups/health/mega_cross.md3"
  280. modelindex    MODELINDEX_HEALTHMEGA
  281. type        HEALTHI
  282. index        INVENTORY_HEALTH
  283. respawntime    30
  284. mins        {-13,-13,-13}
  285. maxs        {13,13,13}
  286.  
  287.  
  288. iteminfo "item_health_small"
  289. {
  290. name        "5 Health"
  291. model        "models/powerups/health/small_cross.md3"
  292. modelindex    MODELINDEX_HEALTHSMALL
  293. type        HEALTHI
  294. index        INVENTORY_HEALTH
  295. respawntime    30
  296. mins        {-13,-13,-13}
  297. maxs        {13,13,13}
  298.  
  299. iteminfo "weapon_bfg"
  300. {
  301. name        "BFG10K"
  302. model        "models/weapons2/bfg/bfg.md3"
  303. modelindex    MODELINDEX_BFG10K
  304. type        WEAPONI
  305. index        INVENTORY_BFG10K
  306. respawntime    30
  307. mins        {-13,-13,-13}
  308. maxs        {13,13,13}
  309.  
  310. iteminfo "weapon_chaingun"
  311. {
  312. name        "Chaingun"
  313. model        "models/weapons/vulcan/vulcan.md3"
  314. modelindex    MODELINDEX_CHAINGUN
  315. type        WEAPONI
  316. index        INVENTORY_CHAINGUN
  317. respawntime    30
  318. mins        {-13,-13,-13}
  319. maxs        {13,13,13}
  320.  
  321.  
  322. iteminfo "weapon_gauntlet"
  323. {
  324. name        "Gauntlet"
  325. model        "models/weapons2/gauntlet/gauntlet.md3"
  326. modelindex    MODELINDEX_GAUNTLET
  327. type        WEAPONI
  328. index        INVENTORY_GAUNTLET
  329. respawntime    30
  330. mins        {-13,-13,-13}
  331. maxs        {13,13,13}
  332.  
  333. iteminfo "weapon_grapplinghook"
  334. {
  335. name        "Grappling Hook"
  336. model        ""
  337. modelindex    MODELINDEX_GRAPPLINGHOOK
  338. type        WEAPONI
  339. index        INVENTORY_GRAPPLINGHOOK
  340. respawntime    30
  341. mins        {-13,-13,-13}
  342. maxs        {13,13,13}
  343.  
  344.  
  345. iteminfo "weapon_grenadelauncher"
  346. {
  347. name        "Grenade Launcher"
  348. model        "models/weapons2/grenadel/grenadel.md2"
  349. modelindex    MODELINDEX_GRENADELAUNCHER
  350. type        WEAPONI
  351. index        INVENTORY_GRENADELAUNCHER
  352. respawntime    30
  353. mins        {-13,-13,-13}
  354. maxs        {13,13,13}
  355.  
  356. iteminfo "weapon_lightning"
  357. {
  358. name        "Lightning Gun"
  359. model        "models/weapons2/lightning/lightning.md3"
  360. modelindex    MODELINDEX_LIGHTNING
  361. type        WEAPONI
  362. index        INVENTORY_LIGHTNING
  363. respawntime    30
  364. mins        {-13,-13,-13}
  365. maxs        {13,13,13}
  366.  
  367.  
  368. iteminfo "weapon_machinegun"
  369. {
  370. name        "Machinegun"
  371. model        "models/weapons2/machinegun/machinegun.md3"
  372. modelindex    MODELINDEX_MACHINEGUN
  373. type        WEAPONI
  374. index        INVENTORY_MACHINEGUN
  375. respawntime    30
  376. mins        {-13,-13,-13}
  377. maxs        {13,13,13}
  378.  
  379.  
  380. iteminfo "weapon_shotgun"
  381. {
  382. name        "Shotgun"
  383. model        "models/weapons2/shotgun/shotgun.md3"
  384. modelindex    MODELINDEX_SHOTGUN
  385. type        WEAPONI
  386. index        INVENTORY_SHOTGUN
  387. respawntime    30
  388. mins        {-13,-13,-13}
  389. maxs        {13,13,13}
  390.  
  391.  
  392. iteminfo "weapon_railgun"
  393. {
  394. name        "Railgun"
  395. model        "models/weapons2/railgun/railgun.md3"
  396. modelindex    MODELINDEX_RAILGUN
  397. type        WEAPONI
  398. index        INVENTORY_RAILGUN
  399. respawntime    30
  400. mins        {-13,-13,-13}
  401. maxs        {13,13,13}
  402.  
  403.  
  404. iteminfo "weapon_rocketlauncher"
  405. {
  406. name        "Rocket Launcher"
  407. model        "models/weapons2/rocketl/rocketl.md3"
  408. modelindex    MODELINDEX_ROCKETLAUNCHER
  409. type        WEAPONI
  410. index        INVENTORY_ROCKETLAUNCHER
  411. respawntime    30
  412. mins        {-13,-13,-13}
  413. maxs        {13,13,13}
  414.  
  415. iteminfo "weapon_nailgun"
  416. {
  417. name        "Nailgun"
  418. model        "models/weapons/nailgun/nailgun.md3"
  419. modelindex    MODELINDEX_NAILGUN
  420. type        WEAPONI
  421. index        INVENTORY_NAILGUN
  422. respawntime    30
  423. mins        {-13,-13,-13}
  424. maxs        {13,13,13}
  425.  
  426.  
  427. iteminfo "weapon_plasmagun"
  428. {
  429. name        "Plasma Gun"
  430. model        "models/weapons2/plasma/plasma.md3"
  431. modelindex    MODELINDEX_PLASMAGUN
  432. type        WEAPONI
  433. index        INVENTORY_PLASMAGUN
  434. respawntime    30
  435. mins        {-13,-13,-13}
  436. maxs        {13,13,13}
  437.  
  438.  
  439. iteminfo "weapon_prox_launcher"
  440. {
  441. name        "Prox Launcher"
  442. model        "models/weapons/proxmine/proxmine.md3"
  443. modelindex    MODELINDEX_PROXLAUNCHER
  444. type        WEAPONI
  445. index        INVENTORY_PROXLAUNCHER
  446. respawntime    30
  447. mins        {-13,-13,-13}
  448. maxs        {13,13,13}
  449.  
  450.  
  451.  
  452.  
  453.  
  454. iteminfo "item_quad"
  455. {
  456. name        "Quad Damage"
  457. model        "models/powerups/instant/quad.md3"
  458. modelindex    MODELINDEX_QUAD
  459. type        POWERI
  460. index        INVENTORY_QUAD
  461. respawntime    60
  462. mins        {-13,-13,-13}
  463. maxs        {13,13,13}
  464.  
  465. iteminfo "item_enviro"
  466. {
  467. name        "Battle Suit"
  468. model        "models/powerups/instant/enviro.md3"
  469. modelindex    MODELINDEX_ENVIRONMENTSUIT
  470. type        POWERI
  471. index        INVENTORY_ENVIRONMENTSUIT
  472. respawntime    60
  473. mins        {-13,-13,-13}
  474. maxs        {13,13,13}
  475.  
  476. iteminfo "item_haste"
  477. {
  478. name        "Speed"
  479. model        "models/powerups/instant/haste_ring.md3"
  480. modelindex    MODELINDEX_HASTE
  481. type        POWERI
  482. index        INVENTORY_HASTE
  483. respawntime    60
  484. mins        {-13,-13,-13}
  485. maxs        {13,13,13}
  486.  
  487. iteminfo "item_invisibility"
  488. {
  489. name        "Invisibility"
  490. model        "models/powerups/instant/invis.md3"
  491. modelindex    MODELINDEX_INVISIBILITY
  492. type        POWERI
  493. index        INVENTORY_INVISIBILITY
  494. respawntime    60
  495. mins        {-13,-13,-13}
  496. maxs        {13,13,13}
  497.  
  498. iteminfo "item_regen"
  499. {
  500. name        "Regeneration"
  501. model        "models/powerups/instant/regen_ring.md3"
  502. modelindex    MODELINDEX_REGEN
  503. type        POWERI
  504. index        INVENTORY_REGEN
  505. respawntime    60
  506. mins        {-13,-13,-13}
  507. maxs        {13,13,13}
  508.  
  509. iteminfo "item_flight"
  510. {
  511. name        "Flight"
  512. model        "models/powerups/instant/flight_ring.md3"
  513. modelindex    MODELINDEX_FLIGHT
  514. type        POWERI
  515. index        INVENTORY_FLIGHT
  516. respawntime    60
  517. mins        {-13,-13,-13}
  518. maxs        {13,13,13}
  519. }
  520.  
  521. iteminfo "item_scout"
  522. {
  523. name        "Scout"
  524. model        "models/powerups/scout.md3"
  525. modelindex    MODELINDEX_SCOUT
  526. type        POWERI
  527. index        INVENTORY_SCOUT
  528. respawntime    60
  529. mins        {-13,-13,-13}
  530. maxs        {13,13,13}
  531.  
  532. iteminfo "item_guard"
  533. {
  534. name        "Guard"
  535. model        "models/powerups/guard.md3"
  536. modelindex    MODELINDEX_GUARD
  537. type        POWERI
  538. index        INVENTORY_GUARD
  539. respawntime    60
  540. mins        {-13,-13,-13}
  541. maxs        {13,13,13}
  542.  
  543. iteminfo "item_doubler"
  544. {
  545. name        "Doubler"
  546. model        "models/powerups/doubler.md3"
  547. modelindex    MODELINDEX_DOUBLER
  548. type        POWERI
  549. index        INVENTORY_DOUBLER
  550. respawntime    60
  551. mins        {-13,-13,-13}
  552. maxs        {13,13,13}
  553.  
  554. iteminfo "item_ammoregen"
  555. {
  556. name        "Ammo Regen"
  557. model        "models/powerups/ammo.md3"
  558. modelindex    MODELINDEX_AMMOREGEN
  559. type        POWERI
  560. index        INVENTORY_AMMOREGEN
  561. respawntime    60
  562. mins        {-13,-13,-13}
  563. maxs        {13,13,13}
  564.  
  565. iteminfo "team_CTF_redflag"
  566. {
  567. name        "Red Flag"
  568. model        "models/flags/r_flag.md3"
  569. modelindex    MODELINDEX_REDFLAG
  570. type        FLAGI
  571. index        INVENTORY_REDFLAG
  572. mins        {-13,-13,-13}
  573. maxs        {13,13,13}
  574. }
  575.  
  576. iteminfo "team_CTF_blueflag"
  577. {
  578. name        "Blue Flag"
  579. model        "models/flags/b_flag.md3"
  580. modelindex    MODELINDEX_BLUEFLAG
  581. type        FLAGI
  582. index        INVENTORY_BLUEFLAG
  583. mins        {-13,-13,-13}
  584. maxs        {13,13,13}
  585.  
  586. iteminfo "team_CTF_neutralflag"
  587. {
  588. name        "Neutral Flag"
  589. model        "models/flags/n_flag.md3"
  590. modelindex    MODELINDEX_NEUTRALFLAG
  591. type        FLAGI
  592. index        INVENTORY_NEUTRALFLAG
  593. mins        {-13,-13,-13}
  594. maxs        {13,13,13}
  595.  
  596. iteminfo "team_redobelisk"
  597. {
  598. name        "Red Obelisk"
  599. model        "models/powerups/obelisk/obelisk.md3"
  600. modelindex    0
  601. type        NOITEM
  602. index        0
  603. mins        {-14, -14, 1}
  604. maxs        {14, 14, 87}
  605.  
  606. iteminfo "team_blueobelisk"
  607. {
  608. name        "Blue Obelisk"
  609. model        "models/powerups/obelisk/obelisk.md3"
  610. modelindex    0
  611. type        NOITEM
  612. index        0
  613. mins        {-14, -14, 1}
  614. maxs        {14, 14, 87}
  615.  
  616. iteminfo "team_neutralobelisk"
  617. {
  618. name        "Neutral Obelisk"
  619. model        "models/powerups/obelisk/obelisk.md3"
  620. modelindex    0
  621. type        NOITEM
  622. index        0
  623. mins        {-14, -14, 1}
  624. maxs        {14, 14, 87}
  625.  
  626. iteminfo "item_redcube"
  627. {
  628. name        "Red Cube"
  629. model        "models/powerups/orb/r_orb.md3"
  630. modelindex    MODELINDEX_REDCUBE
  631. type        FLAGI
  632. index        INVENTORY_REDCUBE
  633. mins        {-13,-13,-13}
  634. maxs        {13,13,13}
  635.  
  636. iteminfo "item_bluecube"
  637. {
  638. name        "Blue Cube"
  639. model        "models/powerups/orb/b_orb.md3"
  640. modelindex    MODELINDEX_BLUECUBE
  641. type        FLAGI
  642. index        INVENTORY_BLUECUBE
  643. mins        {-13,-13,-13}
  644. maxs        {13,13,13}
  645.  
  646. iteminfo "item_botroam"
  647. {
  648. name        "Bot Roam Goal"
  649. model        ""
  650. modelindex    0
  651. type        ROAMI
  652. index        0
  653. mins        {-13,-13,-13}
  654. maxs        {13,13,13}
  655. }
  656.  
  657. //Domination points:
  658. iteminfo "team_dom_pointWhite"
  659. {
  660. name        "Neutral domination point"
  661. model        "models/dpoints/a_white.md3"
  662. modelindex    MODELINDEX_POINTWHITE
  663. type        FLAGI
  664. index        INVENTORY_POINTWHITE
  665. mins        {-13,-13,-13}
  666. maxs        {13,13,13}
  667. }
  668.  
  669. iteminfo "team_dom_pointBlue"
  670. {
  671. name        "Blue domination point"
  672. model        "models/dpoints/a_blue.md3"
  673. modelindex    MODELINDEX_POINTBLUE
  674. type        FLAGI
  675. index        INVENTORY_POINTBLUE
  676. mins        {-13,-13,-13}
  677. maxs        {13,13,13}
  678. }
  679.  
  680. iteminfo "team_dom_pointRed"
  681. {
  682. name        "Red domination point"
  683. model        "models/dpoints/a_red.md3"
  684. modelindex    MODELINDEX_POINTRED
  685. type        FLAGI
  686. index        INVENTORY_POINTRED
  687. mins        {-13,-13,-13}
  688. maxs        {13,13,13}
  689. }
  690.  
  691.