Debian Codegraph @

mp-pak0/botfiles/items.c

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