Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. // Emacs style mode select   -*- C++ -*-
  2. //-----------------------------------------------------------------------------
  3. //
  4. // $Id:$
  5. //
  6. // Copyright (C) 1993-1996 by id Software, Inc.
  7. //
  8. // This source is available for distribution and/or modification
  9. // only under the terms of the DOOM Source Code License as
  10. // published by id Software. All rights reserved.
  11. //
  12. // The source is distributed in the hope that it will be useful,
  13. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
  15. // for more details.
  16. //
  17. // $Log:$
  18. //
  19. // DESCRIPTION:
  20. //
  21. //-----------------------------------------------------------------------------
  22.  
  23. static const char
  24. rcsid[] = "$Id:$";
  25.  
  26. // We are referring to sprite numbers.
  27. #include "info.h"
  28.  
  29. #ifdef __GNUG__
  30. #pragma implementation "d_items.h"
  31. #endif
  32. #include "d_items.h"
  33.  
  34.  
  35. //
  36. // PSPRITE ACTIONS for waepons.
  37. // This struct controls the weapon animations.
  38. //
  39. // Each entry is:
  40. //   ammo/amunition type
  41. //  upstate
  42. //  downstate
  43. // readystate
  44. // atkstate, i.e. attack/fire/hit frame
  45. // flashstate, muzzle flash
  46. //
  47. weaponinfo_t    weaponinfo[NUMWEAPONS] =
  48. {
  49.     {
  50.         // fist
  51.         am_noammo,
  52.         S_PUNCHUP,
  53.         S_PUNCHDOWN,
  54.         S_PUNCH,
  55.         S_PUNCH1,
  56.         S_NULL
  57.     }, 
  58.     {
  59.         // pistol
  60.         am_clip,
  61.         S_PISTOLUP,
  62.         S_PISTOLDOWN,
  63.         S_PISTOL,
  64.         S_PISTOL1,
  65.         S_PISTOLFLASH
  66.     }, 
  67.     {
  68.         // shotgun
  69.         am_shell,
  70.         S_SGUNUP,
  71.         S_SGUNDOWN,
  72.         S_SGUN,
  73.         S_SGUN1,
  74.         S_SGUNFLASH1
  75.     },
  76.     {
  77.         // chaingun
  78.         am_clip,
  79.         S_CHAINUP,
  80.         S_CHAINDOWN,
  81.         S_CHAIN,
  82.         S_CHAIN1,
  83.         S_CHAINFLASH1
  84.     },
  85.     {
  86.         // missile launcher
  87.         am_misl,
  88.         S_MISSILEUP,
  89.         S_MISSILEDOWN,
  90.         S_MISSILE,
  91.         S_MISSILE1,
  92.         S_MISSILEFLASH1
  93.     },
  94.     {
  95.         // plasma rifle
  96.         am_cell,
  97.         S_PLASMAUP,
  98.         S_PLASMADOWN,
  99.         S_PLASMA,
  100.         S_PLASMA1,
  101.         S_PLASMAFLASH1
  102.     },
  103.     {
  104.         // bfg 9000
  105.         am_cell,
  106.         S_BFGUP,
  107.         S_BFGDOWN,
  108.         S_BFG,
  109.         S_BFG1,
  110.         S_BFGFLASH1
  111.     },
  112.     {
  113.         // chainsaw
  114.         am_noammo,
  115.         S_SAWUP,
  116.         S_SAWDOWN,
  117.         S_SAW,
  118.         S_SAW1,
  119.         S_NULL
  120.     },
  121.     {
  122.         // super shotgun
  123.         am_shell,
  124.         S_DSGUNUP,
  125.         S_DSGUNDOWN,
  126.         S_DSGUN,
  127.         S_DSGUN1,
  128.         S_DSGUNFLASH1
  129.     }, 
  130. };
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.