home *** CD-ROM | disk | FTP | other *** search
/ Net Power 2000 November / Net02.iso / Patch / Q3PointRelease_125.exe / Main / pak4.pk3 / botfiles / weapons.c < prev   
Encoding:
C/C++ Source or Header  |  2000-09-08  |  6.4 KB  |  269 lines

  1. //===========================================================================
  2. //
  3. // Name:            weapons.c
  4. // Function:        weapon configuration
  5. // Programmer:        Mr Elusive
  6. // Last update:        1999-09-08
  7. // Tab Size:        4 (real tabs)
  8. //===========================================================================
  9.  
  10. #include "inv.h"
  11.  
  12. #define VEC_ORIGIN                        {0, 0, 0}
  13. //projectile flags
  14. #define PFL_WINDOWDAMAGE            1        //projectile damages through window
  15. #define PFL_RETURN                    2        //set when projectile returns to owner
  16. //weapon flags
  17. #define WFL_FIRERELEASED            1        //set when projectile is fired with key-up event
  18. //damage types
  19. #define DAMAGETYPE_IMPACT            1        //damage on impact
  20. #define DAMAGETYPE_RADIAL            2        //radial damage
  21. #define DAMAGETYPE_VISIBLE            4        //damage to all entities visible to the projectile
  22. #define DAMAGETYPE_IGNOREARMOR    8        //projectile goes right through armor
  23.  
  24. //===========================================================================
  25. // Gauntlet
  26. //===========================================================================
  27.  
  28. projectileinfo //for Gauntlet
  29. {
  30.     name                "gauntletdamage"
  31.     damage                50
  32.     damagetype            DAMAGETYPE_IMPACT
  33. }
  34.  
  35. weaponinfo //Gauntlet
  36. {
  37.     name                "Gauntlet"
  38.     number                WEAPONINDEX_GAUNTLET
  39.     projectile            "gauntletdamage"
  40.     numprojectiles        1
  41.     speed                0
  42. } //end weaponinfo
  43.  
  44. //===========================================================================
  45. // Machinegun
  46. //===========================================================================
  47.  
  48. projectileinfo //for Machinegun
  49. {
  50.     name                "machinegunbullet"
  51.     damage                7
  52.     damagetype            DAMAGETYPE_IMPACT
  53. }
  54.  
  55. weaponinfo //Machinegun
  56. {
  57.     name                "Machinegun"
  58.     number                WEAPONINDEX_MACHINEGUN
  59.     projectile            "machinegunbullet"
  60.     numprojectiles        1
  61.     speed                0
  62. } //end weaponinfo
  63.  
  64. //===========================================================================
  65. // Shotgun
  66. //===========================================================================
  67.  
  68. projectileinfo //for Shotgun
  69. {
  70.     name                "shotgunbullet"
  71.     damage                10
  72.     damagetype            DAMAGETYPE_IMPACT
  73. }
  74.  
  75. weaponinfo //Shotgun
  76. {
  77.     name                "Shotgun"
  78.     number                WEAPONINDEX_SHOTGUN
  79.     projectile            "shotgunbullet"
  80.     numprojectiles        11
  81.     speed                0
  82. } //end weaponinfo
  83.  
  84. //===========================================================================
  85. // Grenade Launcher
  86. //===========================================================================
  87.  
  88. projectileinfo //for Grenade Launcher
  89. {
  90.     name                "grenade"
  91.     damage                120
  92.     radius                160
  93.     damagetype            $evalint(DAMAGETYPE_IMPACT|DAMAGETYPE_RADIAL)
  94. }
  95.  
  96. weaponinfo //Grenade Launcher
  97. {
  98.     name                "Grenade Launcher"
  99.     number                WEAPONINDEX_GRENADE_LAUNCHER
  100.     projectile            "grenade"
  101.     numprojectiles        1
  102.     speed                700
  103. } //end weaponinfo
  104.  
  105. //===========================================================================
  106. // Rocket Launcher
  107. //===========================================================================
  108.  
  109. projectileinfo //for Rocket Launcher
  110. {
  111.     name                "rocket"
  112.     damage                100
  113.     radius                120
  114.     damagetype            $evalint(DAMAGETYPE_IMPACT|DAMAGETYPE_RADIAL)
  115. }
  116.  
  117. weaponinfo //Rocket Launcher
  118. {
  119.     name                "Rocket Launcher"
  120.     number                WEAPONINDEX_ROCKET_LAUNCHER
  121.     projectile            "rocket"
  122.     numprojectiles        1
  123.     speed                900
  124. } //end weaponinfo
  125.  
  126. //===========================================================================
  127. // Lightning
  128. //===========================================================================
  129.  
  130. projectileinfo //for Lightning
  131. {
  132.     name                "lightning"
  133.     damage                8
  134.     damagetype            DAMAGETYPE_IMPACT
  135. }
  136.  
  137. weaponinfo //Railgun
  138. {
  139.     name                "Lightning Gun"
  140.     number                WEAPONINDEX_LIGHTNING
  141.     projectile            "lightning"
  142.     numprojectiles        1
  143.     speed                0
  144. } //end weaponinfo
  145.  
  146. //===========================================================================
  147. // Railgun
  148. //===========================================================================
  149.  
  150. projectileinfo //for Railgun
  151. {
  152.     name                "rail"
  153.     damage                100
  154.     damagetype            DAMAGETYPE_IMPACT
  155. }
  156.  
  157. weaponinfo //Railgun
  158. {
  159.     name                "Railgun"
  160.     number                WEAPONINDEX_RAILGUN
  161.     projectile            "rail"
  162.     numprojectiles        1
  163.     speed                0
  164. } //end weaponinfo
  165.  
  166. //===========================================================================
  167. // Plasma Gun
  168. //===========================================================================
  169.  
  170. projectileinfo //for Plasma Gun
  171. {
  172.     name                "plasma"
  173.     damage                20
  174.     radius                20
  175.     damagetype            $evalint(DAMAGETYPE_IMPACT|DAMAGETYPE_RADIAL)
  176. }
  177.  
  178. weaponinfo //Plasma Gun
  179. {
  180.     name                "Plasma Gun"
  181.     number                WEAPONINDEX_PLASMAGUN
  182.     projectile            "plasma"
  183.     numprojectiles        1
  184.     speed                2000
  185. } //end weaponinfo
  186.  
  187. //===========================================================================
  188. // BFG10K
  189. //===========================================================================
  190.  
  191. projectileinfo //for BFG10K
  192. {
  193.     name                "bfgexplosion"
  194.     damage                100
  195.     radius                100
  196.     damagetype            $evalint(DAMAGETYPE_IMPACT|DAMAGETYPE_RADIAL)
  197. }
  198.  
  199. weaponinfo //BFG10K
  200. {
  201.     name                "BFG10K"
  202.     number                WEAPONINDEX_BFG
  203.     projectile            "bfgexplosion"
  204.     numprojectiles        1
  205.     speed                2000
  206. } //end weaponinfo
  207.  
  208. //===========================================================================
  209. // Nailgun
  210. //===========================================================================
  211.  
  212. projectileinfo //for Nailgun
  213. {
  214.     name                "nail"
  215.     damage                30
  216.     damagetype            $evalint(DAMAGETYPE_IMPACT)
  217. }
  218.  
  219. weaponinfo //Nailgun
  220. {
  221.     name                "Nailgun"
  222.     number                WEAPONINDEX_NAILGUN
  223.     projectile            "nail"
  224.     numprojectiles        13
  225.     speed                0
  226. } //end weaponinfo
  227.  
  228. //===========================================================================
  229. // Prox Launcher
  230. //===========================================================================
  231.  
  232. projectileinfo //for Prox launcher
  233. {
  234.     name                "mine"
  235.     damage                0
  236.     damagetype            $evalint(DAMAGETYPE_RADIAL)
  237. }
  238.  
  239. weaponinfo //Nailgun
  240. {
  241.     name                "Prox Launcher"
  242.     number                WEAPONINDEX_PROXLAUNCHER
  243.     projectile            "mine"
  244.     numprojectiles        1
  245.     speed                0
  246. } //end weaponinfo
  247.  
  248. //===========================================================================
  249. // Chaingun
  250. //===========================================================================
  251.  
  252. projectileinfo //for Chaingun
  253. {
  254.     name                "chaingunbullet"
  255.     damage                7
  256.     damagetype            $evalint(DAMAGETYPE_IMPACT)
  257. }
  258.  
  259. weaponinfo //Nailgun
  260. {
  261.     name                "Chaingun"
  262.     number                WEAPONINDEX_CHAINGUN
  263.     projectile            "chaingunbullet"
  264.     numprojectiles        1
  265.     speed                0
  266. } //end weaponinfo
  267.  
  268.  
  269.