Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. actor " Chaingun " : chaingun replaces chaingun
  2. {
  3. obituary "%o was mauled by %k's chaingun."
  4. inventory.pickupmessage "You claimed a chaingun!"
  5. weapon.ammotype "ChaingunChain"
  6. weapon.ammouse 1
  7. weapon.ammogive 50
  8. weapon.ammotype2 "Clip"
  9. weapon.ammouse2 0
  10. weapon.ammogive2 50
  11. +weapon.ammo_optional
  12. states
  13. {
  14. Ready:
  15. CHGG A 1 A_WeaponReady
  16. goto Ready
  17. Select:
  18. CHGG A 1 A_Raise
  19. loop
  20. Deselect:
  21. CHGG A 0 A_TakeInventory("WeaponLowered", 999)
  22. CHGG A 1 A_Lower
  23. loop
  24. Fire:
  25. CHGG A 0 A_JumpIfNoAmmo("AltFire")
  26. CHGG A 8
  27. CHGG B 8
  28. CHGG A 4
  29. CHGG B 4
  30. CHGG A 2
  31. CHGG B 2
  32. CHGG A 0 A_GunFlash
  33. CHGG A 2 A_FireBullets(4, 3, 1, 5, "BulletPuff",1,2048)
  34. CHGG B 2 A_FireBullets(4, 3, 1, 5, "BulletPuff",1,2048)
  35. CHGG A 2 A_ReFire
  36. CHGG B 2
  37. CHGG A 4
  38. CHGG B 4
  39. CHGG A 8
  40. CHGG B 8
  41. goto Ready
  42. Hold:
  43. CHGG A 0 A_JumpIfNoAmmo(5)
  44. CHGG A 0 A_GunFlash
  45. CHGG A 2 A_FireBullets(4, 3, 1, 5, "BulletPuff",1,2048)
  46. CHGG B 2 A_FireBullets(4, 3, 1, 5, "BulletPuff",1,2048)
  47. CHGG A 2 A_ReFire
  48. CHGG B 2
  49. CHGG A 4
  50. CHGG B 4
  51. CHGG A 8
  52. CHGG B 8
  53. goto Ready
  54. AltFire:
  55. CHGG A 0 A_JumpIfInventory("Clip", 24, 1)
  56. goto Ready
  57. CHGG A 0 A_JumpIfInventory("ChaingunChain", 0, "ReloadDone")
  58. CHGG A 0 A_JumpIfInventory("WeaponLowered", 1, 4)
  59. CHGG AAA 1 A_Lower
  60. CHGG A 0 A_GiveInventory("WeaponLowered", 1)
  61. goto Spin
  62. Spin:
  63. CHGG A 4 A_PlaySound("spider/walk")
  64. CHGG B 4 A_Lower
  65. goto Reload
  66. CHGG B 4 A_Raise
  67. CHGG A 4
  68. CHGG BAB 8
  69. goto ReloadDone
  70. Reload:
  71. CHGG A 0 A_JumpIfInventory("ChaingunChain", 0, 1)
  72. goto Spin+2
  73. CHGG A 0 A_JumpIfInventory("Clip", 1, 1)
  74. goto ReloadDone
  75. CHGG B 0 A_TakeInventory("Clip", 1)
  76. CHGG A 0 A_GiveInventory("ChaingunChain", 1)
  77. goto Reload
  78. ReloadDone:
  79. CHGG A 0 A_TakeInventory("WeaponLowered", 1)
  80. CHGG AAA 1 A_Raise
  81. goto Ready
  82. Flash:
  83. CHGF A 2 Bright A_Light1
  84. //Goto LightDone
  85. CHGF B 3 Bright A_Light1
  86. Goto LightDone
  87. Spawn:
  88. MGUN A -1
  89. Stop
  90. }
  91. }
  92.  
  93. actor ChaingunChain : Ammo
  94. {
  95. inventory.amount 1
  96. inventory.maxamount 50
  97. ammo.backpackamount 0
  98. ammo.backpackmaxamount 50
  99. +inventory.ignoreskill
  100. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement