Advertisement
Guest User

Untitled

a guest
Feb 1st, 2015
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.82 KB | None | 0 0
  1. //----------------------------------------------------------------
  2. // lightninggun.def
  3. //
  4. // Copyright 2002-2004 Raven Software
  5. //----------------------------------------------------------------
  6.  
  7. export lightning_gun
  8. {
  9. options -prefix LIGNTNING_ -scale .4 -keep barrel spire_1 spire_2 spire_3 spire_4 -sourcedir work/models/weapons/strogg_lightning_gun/animations -destdir models/weapons/lightning_gun
  10.  
  11. addoptions -skipmesh rt_strogg_arm_mesh
  12. addoptions -skipmesh lft_strogg_arm_mesh
  13.  
  14. mesh idle_00.ma -dest mesh
  15. anim idle_00.ma -dest idle
  16. anim lower.ma -dest lower
  17. anim raise.ma -dest raise
  18. anim shoot_start.ma -dest shoot_start
  19. anim shoot_loop.ma -dest shoot_loop
  20. anim shoot_end.ma -dest shoot_end
  21. }
  22.  
  23. export lightning_gun_strogg
  24. {
  25. options -prefix LIGNTNING_ -scale .4 -keep barrel spire_1 spire_2 spire_3 spire_4 -sourcedir work/models/weapons/strogg_lightning_gun/animations -destdir models/weapons/lightning_gun
  26. addoptions -skipmesh rt_arm_mesh
  27. addoptions -skipmesh lft_arm_mesh
  28. mesh idle_00.ma -dest mesh_strogg
  29. }
  30.  
  31. export lightning_gun
  32. {
  33. options -prefix PLAYER_LG_ -scale .4 -keep muzzle_flash ATTACHER -sourcedir work/models/characters/marine/animation_mocap_cinematics -destdir models/weapons/lightning_gun/world -rename ATTACHER origin -clearorigin
  34. mesh newMarine_oneframe_idle.ma -dest lightninggun
  35. anim newMarine_oneframe_idle.ma -dest idle
  36. }
  37.  
  38. entityDef viewStyle_q3_lightninggun {
  39. "viewoffset" "0 -1.7 1"
  40. "viewangles" "-7.4 8.5 9.8"
  41. }
  42.  
  43. //--------------------------------------------------------------------------------------------------------------------
  44. // Weapon Definition
  45. //--------------------------------------------------------------------------------------------------------------------
  46. entityDef weapon_lightninggun
  47. {
  48. "editor_color" ".3 .3 1"
  49. "editor_mins" "-16 -16 0"
  50. "editor_maxs" "16 16 32"
  51.  
  52. "editor_usage" "Lightning Gun"
  53. "editor_menu" "pickup"
  54. "editor_var inv_weaponmod" "comma separated of any of the following lightning gun modifications.\n - weapon_lightninggun_chain"
  55.  
  56. "spawnclass" "idItem"
  57. "weaponclass" "rvWeaponLightningGun"
  58. "size" "32 32 32"
  59. "model_view" "weapon_lightninggun_view"
  60. "model_view_strogg" "weapon_lightninggun_view_strogg"
  61. "model_world" "weapon_lightninggun_world"
  62. "model" "models/weapons/lightning_gun/w_lg.lwo"
  63. "def_dropItem" "weapon_lightninggun"
  64.  
  65. "chainLightningRange" "0 0"
  66.  
  67. "fireRate" ".05"
  68. "spread" "1"
  69. "range" "1600"
  70.  
  71. "joint_attach" "LG_ATTACHER"
  72. "joint_view_flash" "barrel"
  73. "joint_world_flash" "muzzle_flash"
  74.  
  75. // "joint_hideGun_flash" "GNT_ATTACHER"
  76. "joint_hideGun_flash" "waist"
  77.  
  78. "inv_weapon" "weapon_lightninggun"
  79. "inv_start_ammo_lightninggun" "100"
  80. "inv_item" "1"
  81. "inv_icon" "gfx/guis/hud/icons/item_lightning.tga"
  82. "inv_name" "#str_107405"
  83.  
  84. "mtr_crosshair" "gfx/guis/crosshairs/crosshair_lightninggun"
  85. "ammoType" "ammo_lightninggun"
  86. "ammoRequired" "1"
  87. "clipSize" "0"
  88. "lowAmmo" "10"
  89. "mtr_icon" "gfx/guis/hud/icons/gun_lightninggun"
  90.  
  91. "muzzle_kick_time" "0.1"
  92. "muzzle_kick_maxtime" "0.5"
  93. "muzzle_kick_angles" "-3 0 0"
  94. "muzzle_kick_offset" "0.5 .15 .15"
  95.  
  96. "recoilTime" "145"
  97. "recoilAngles" "-1 0 0"
  98.  
  99. "def_damage" "damage_lightninggun"
  100.  
  101. "ammoRegenStep" "5"
  102. "ammoRegenTime" "1500"
  103.  
  104. // Mapping of modifications to indexes
  105. "def_mod1" "wpmod_lightninggun_chain"
  106.  
  107. "foreshorten" ".6"
  108.  
  109. "mtr_flashShader" "lights/muzzleflash"
  110. "flashColor" ".5 .8 1"
  111. "flashRadius" "200"
  112. "flashPointLight" "1"
  113. "flashTime" ".1"
  114. "flashViewOffset" "15 -5 -5"
  115.  
  116. "snd_quaddamage" "weapon_quaddamage_fire"
  117. "snd_acquire" "pickup_weapon"
  118. "snd_fire" "weapon_lightninggun_fire"
  119. "snd_fire_stereo" "weapon_lightninggun_fire_stereo"
  120. "snd_fire_loop" "weapon_lightninggun_fireloop"
  121.  
  122. "def_viewStyle" "viewStyle_q3_lightninggun"
  123.  
  124. "weaponAngleOffsetAverages" "10"
  125. "weaponAngleOffsetScale" ".25"
  126. "weaponAngleOffsetMax" "5"
  127. "weaponOffsetTime" "600"
  128. "weaponOffsetScale" "0.002"
  129.  
  130. "fx_impact" "effects/weapons/lightninggun/impact.fx"
  131. "fx_impact_mp" "effects/weapons/lightninggun/impact_mp.fx"
  132. // "fx_impact_water" "effects/ambient/splash_med.fx"
  133. "fx_trail" "effects/weapons/lightninggun/trail.fx"
  134. "fx_trail_world" "effects/weapons/lightninggun/trail_world.fx"
  135. "fx_crawl" "effects/weapons/lightninggun/crawl.fx"
  136. "fx_spire" "effects/weapons/lightninggun/spire.fx"
  137. // "fx_flash" "effects/weapons/lightninggun/muzzleflash.fx"
  138. // "fx_flash_world" "effects/weapons/lightninggun/muzzleflash_world.fx"
  139. "fx_respawn" "effects/mp/itemrespawn.fx"
  140. "crawlTime" ".05"
  141.  
  142. // ------------------------ Ammo Tubes ---------------------------------------
  143.  
  144. "joint_tube_0" "tube_1"
  145. "joint_tube_1" "tube_2"
  146. "joint_tube_2" "tube_3"
  147. "tubeTime" "1"
  148. "tubeOffset" "1"
  149. "fx_tube" "effects/weapons/lightninggun/tube.fx"
  150.  
  151. "snd_tube" "weapon_lightninggun_tube"
  152. "snd_noAmmo" "weapon_lightninggun_dryfire"
  153.  
  154. "net_syncPhysics" "1"
  155. }
  156.  
  157. entityDef moveable_item_lightning_gun
  158. {
  159. "inherit" "weapon_lightninggun"
  160.  
  161. "editor_rotatable" "1"
  162.  
  163. "itemclipmodel" "models/weapons/lightning_gun/w_lg_clip.lwo"
  164.  
  165. "spawnclass" "idMoveableItem"
  166. "mass" "3000"
  167. "density" "0.05"
  168. "friction" "0.2"
  169. "bouncyness" "0"
  170. }
  171.  
  172. entityDef weapon_lightninggun_mp
  173. {
  174. "inherit" "weapon_lightninggun"
  175. "inv_icon" "gfx/guis/hud/icons/item_lightning_colored"
  176. "mtr_simple_icon" "simpleicons/item_lightning_colored"
  177. "simple_icon_scale" "32.0"
  178. "triggerSize" "32"
  179.  
  180. "range" "736" // q3a value is 768
  181. "fireRate" "0.04"
  182. "fx_trail_noimpact" "effects/weapons/lightninggun/trail_noimpact.fx"
  183.  
  184. "muzzle_kick_time" "0"
  185. "muzzle_kick_maxtime" "0"
  186. "muzzle_kick_angles" "0 0 0"
  187. "muzzle_kick_offset" "0 0 0"
  188. "recoilTime" "0"
  189. "recoilAngles" "0 0 0"
  190.  
  191. "respawn_Team DM" "30"
  192. "respawn_Tourney" "15"
  193.  
  194. // played when you touch a weapon you can't acquire, i.e. weaponStay in MP
  195. "snd_noAcquire" "pickup_weaponstay"
  196. "snd_idle_hum" "weapon_lightninggun_hum"
  197. }
  198.  
  199. //--------------------------------------------------------------------------------------------------------------------
  200. // Mods
  201. //-------------------------------------------------------------------------------------------------------------------0
  202.  
  203. entityDef wpmod_lightninggun_chain
  204. {
  205.  
  206. "weapon" "weapon_lightninggun"
  207. "chainLightningRange" "200 400"
  208. }
  209.  
  210. entityDef weaponmod_lightninggun_chain
  211. {
  212. "editor_color" ".3 .3 1"
  213. "editor_mins" "-16 -16 0"
  214. "editor_maxs" "16 16 32"
  215. "editor_menu" "pickup"
  216. "editor_usage" "Lighting Gun Chain Lightning"
  217.  
  218. "spawnclass" "idItem"
  219. "size" "32 32 32"
  220. "inv_weaponmod" "wpmod_lightninggun_chain"
  221. "inv_ammo_lightninggun" "100"
  222. "inv_item" "1"
  223. "inv_icon" "gfx/guis/hud/icons/item_lightning.tga"
  224. "inv_name" "#str_107434"
  225. "model" "models/items/ammo/ammo_box.lwo"
  226.  
  227. "net_syncPhysics" "1"
  228. }
  229.  
  230. //--------------------------------------------------------------------------------------------------------------------
  231. // Models
  232. //--------------------------------------------------------------------------------------------------------------------
  233.  
  234. model weapon_lightninggun_view
  235. {
  236. mesh models/weapons/lightning_gun/mesh.md5mesh
  237. anim idle models/weapons/lightning_gun/idle.md5anim
  238. anim putaway models/weapons/lightning_gun/lower.md5anim
  239. anim raise models/weapons/lightning_gun/raise.md5anim
  240. anim shoot_start models/weapons/lightning_gun/shoot_start.md5anim
  241. {
  242. rate 10
  243. }
  244. anim shoot_loop models/weapons/lightning_gun/shoot_loop.md5anim
  245. anim shoot_end models/weapons/lightning_gun/shoot_end.md5anim
  246. {
  247. rate .25
  248. }
  249. }
  250.  
  251. model weapon_lightninggun_view_strogg
  252. {
  253. inherit weapon_lightninggun_view
  254. mesh models/weapons/lightning_gun/mesh_strogg.md5mesh
  255. }
  256.  
  257. model weapon_lightninggun_world
  258. {
  259. mesh models/weapons/lightning_gun/world/lightninggun.md5mesh
  260. anim idle models/weapons/lightning_gun/world/idle.md5anim
  261. }
  262.  
  263. //--------------------------------------------------------------------------------------------------------------------
  264. // HitScan
  265. //-------------------------------------------------------------------------------------------------------------------0
  266.  
  267. entityDef hitscan_lightninggun
  268. {
  269. "range" "10000"
  270. "push" "10000"
  271.  
  272. "def_damage" "damage_lightninggun"
  273.  
  274. // "fx_impact" "effects/weapons/lightninggun/impact.fx"
  275. // "fx_impact_water" "effects/ambient/splash_med.fx"
  276. // "fx_path" "effects/weapons/lightninggun/trail.fx"
  277. }
  278.  
  279. entityDef hitscan_lightninggun_mp
  280. {
  281. "inherit" "hitscan_lightninggun"
  282. "range" "736" // q3a value is 768
  283. "def_damage" "damage_lightninggun_mp"
  284. "inv_icon" "gfx/guis/hud/icons/item_lightning_colored"
  285. "mtr_simple_icon" "simpleicons/item_lightning_colored"
  286. }
  287.  
  288.  
  289. //--------------------------------------------------------------------------------------------------------------------
  290. // Damage
  291. //-------------------------------------------------------------------------------------------------------------------0
  292.  
  293. entityDef damage_lightninggun
  294. {
  295. "damage" "11"
  296. // "knockback" "10"
  297. "gib" "1"
  298.  
  299. "filter_electricity" "1" // can damage all entities with their damage_filter set to "electricity"
  300.  
  301. "dv_time" "100"
  302. "dv_scale" ".05"
  303.  
  304. "fx_wound" "effects/wounds/energy.fx"
  305.  
  306. "deathPush" "200"
  307. "deathPushMin" "2000 400"
  308. "deathPushMax" "4000 500"
  309.  
  310. "bleed" "1"
  311.  
  312. "pain" "stream"
  313. }
  314.  
  315. entityDef damage_lightninggun_mp
  316. {
  317. "inherit" "damage_lightninggun"
  318. "damage" "7"
  319. "knockback" "11"
  320. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement