home *** CD-ROM | disk | FTP | other *** search
/ Chip 2011 November / CHIP_2011_11.iso / Programy / Inne / Gry / OpenArena / baseoa / pak6-misc.pk3 / botfiles / weapons.c < prev   
C/C++ Source or Header  |  2006-11-10  |  4KB  |  227 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 IMPACT_DAMAGE            1        //straight impact damage
  27. #define SPLASH_DAMAGE            2        //splash damage
  28.  
  29. projectileinfo 
  30. {
  31. name                "bfgexploision"
  32. damage                40
  33. radius                100
  34. damagetype            $evalint(IMPACT_DAMAGE|SPLASH_DAMAGE)
  35. }
  36.  
  37. weaponinfo 
  38. {
  39. name                "BFG10K"
  40. number                WEAPONINDEX_BFG
  41. projectile            "bfgexploision"
  42. numprojectiles            1
  43. speed                0
  44.  
  45. projectileinfo 
  46. {
  47. name                "gauntletdamage"
  48. damage                50
  49. damagetype            IMPACT_DAMAGE
  50. }
  51.  
  52. weaponinfo 
  53. {
  54. name                "Gauntlet"
  55. number                WEAPONINDEX_GAUNTLET
  56. projectile            "gauntletdamage"
  57. numprojectiles            1
  58. speed                0
  59. }
  60.  
  61. projectileinfo 
  62. {
  63. name                "grenade"
  64. damage                120
  65. radius                160
  66. damagetype            $evalint(IMPACT_DAMAGE|SPLASH_DAMAGE)
  67. }
  68.  
  69. weaponinfo 
  70. {
  71. name                "Grenade Launcher"
  72. number                WEAPONINDEX_GRENADE_LAUNCHER
  73. projectile            "grenade"
  74. numprojectiles            1
  75. speed                700
  76. }
  77.  
  78.  
  79. projectileinfo
  80. {
  81. name                "lightning"
  82. damage                24
  83. damagetype            IMPACT_DAMAGE
  84. }
  85.  
  86. weaponinfo
  87. {
  88. name                "Lightning Gun"
  89. number                WEAPONINDEX_LIGHTNING
  90. projectile            "lightning"
  91. numprojectiles            1
  92. speed                0
  93.  
  94.  
  95. projectileinfo 
  96. {
  97. name                "machinegunbullet"
  98. damage                8
  99. damagetype            IMPACT_DAMAGE
  100. }
  101.  
  102. weaponinfo 
  103. {
  104. name                "Machinegun"
  105. number                WEAPONINDEX_MACHINEGUN
  106. projectile            "machinegunbullet"
  107. numprojectiles            1
  108. speed                0
  109. }
  110.  
  111. projectileinfo 
  112. {
  113. name                "plasma"
  114. damage                20
  115. radius                20
  116. damagetype            $evalint(IMPACT_DAMAGE|SPLASH_DAMAGE)
  117. }
  118.  
  119. weaponinfo 
  120. {
  121. name                "Plasma Gun"
  122. number                WEAPONINDEX_PLASMAGUN
  123. projectile            "plasma"
  124. numprojectiles            1
  125. speed                2000
  126.  
  127. projectileinfo 
  128. {
  129. name                "rail"
  130. damage                100
  131. damagetype            IMPACT_DAMAGE
  132. }
  133.  
  134. weaponinfo 
  135. {
  136. name                "Railgun"
  137. number                WEAPONINDEX_RAILGUN
  138. projectile            "rail"
  139. numprojectiles            1
  140. speed                0
  141.  
  142. projectileinfo
  143. {
  144. name                "rocket"
  145. damage                100
  146. radius                120
  147. damagetype            $evalint(IMPACT_DAMAGE|SPLASH_DAMAGE)
  148. }
  149.  
  150. weaponinfo 
  151. {
  152. name                "Rocket Launcher"
  153. number                WEAPONINDEX_ROCKET_LAUNCHER
  154. projectile            "rocket"
  155. numprojectiles            1
  156. speed                900
  157. }
  158.  
  159.  
  160. projectileinfo
  161. {
  162. name                "shotgunbullet"
  163. damage                10
  164. damagetype            IMPACT_DAMAGE
  165. }
  166.  
  167. weaponinfo
  168. {
  169. name                "Shotgun"
  170. number                WEAPONINDEX_SHOTGUN
  171. projectile            "shotgunbullet"
  172. numprojectiles            11
  173. speed                0
  174. }
  175.  
  176. projectileinfo 
  177. {
  178. name                "chaingunbullet"
  179. damage                7
  180. damagetype            $evalint(IMPACT_DAMAGE)
  181. }
  182.  
  183. weaponinfo 
  184. {
  185. name                "Chaingun"
  186. number                WEAPONINDEX_CHAINGUN
  187. projectile            "chaingunbullet"
  188. numprojectiles            1
  189. speed                0
  190.  
  191. projectileinfo 
  192. {
  193. name                "nail"
  194. damage                30
  195. damagetype            $evalint(IMPACT_DAMAGE)
  196. }
  197.  
  198. weaponinfo 
  199. {
  200. name                "Nailgun"
  201. number                WEAPONINDEX_NAILGUN
  202. projectile            "nail"
  203. numprojectiles            13
  204. speed                0
  205.  
  206. projectileinfo 
  207. {
  208. name                "mine"
  209. damage                0
  210. damagetype            $evalint(SPLASH_DAMAGE)
  211. }
  212.  
  213. weaponinfo 
  214. {
  215. name                "Prox Launcher"
  216. number                WEAPONINDEX_PROXLAUNCHER
  217. projectile            "mine"
  218. numprojectiles        1
  219. speed                0
  220. }
  221.