Guest User

WTF decorate explosion

a guest
Dec 16th, 2017
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.88 KB | None | 0 0
  1. //Weapon: Pipebomb
  2. //By: Xaser
  3. //Uses ThingID 1999 and SpawnID 201
  4.  
  5. ACTOR D2C_Pipebomb : Weapon 25018
  6. {
  7. Inventory.PickupSound "misc/w_pkup"
  8. Inventory.PickupMessage "You got a pipebomb!"
  9. Weapon.AmmoType "D2C_PipebombAmmo"
  10. Weapon.AmmoGive 1
  11. Weapon.AmmoUse 1
  12. Weapon.Kickback 0
  13. AttackSound "weapons/pbarm"
  14. Scale 0.1
  15. + NOALERT
  16. States
  17. {
  18. Spawn:
  19. PIPB A -1
  20. Loop
  21. Ready:
  22. PIPE A 1 A_WeaponReady
  23. Loop
  24. Deselect:
  25. PIPE A 1 A_Lower
  26. Loop
  27. Select:
  28. PIPE A 1 A_Raise
  29. Loop
  30. Fire:
  31. PIPE BCDEFGH 1
  32. PIPE Z 8
  33. PIPE IJKLMNOP 1
  34. PIPE P 0 A_FireCustomMissile("Pipebomb",0,1,0,0)
  35. PIPE Q 8 A_PlayWeaponSound("weapons/pbthrow")
  36. PIPE RSTU 1
  37. PIPE Z 8
  38. PIPE P 0 A_GiveInventory("D2C_Detonator")
  39. PIPE P 0 A_TakeInventory("D2C_Pipebomb")
  40. PIPE HGFEDCB 1
  41. PIPE A 4
  42. PIPE A 4 A_ReFire
  43. Goto Ready
  44. }
  45. }
  46.  
  47. ACTOR D2C_Detonator : Weapon
  48. {
  49. Weapon.SelectionOrder 1
  50. Inventory.PickupSound "misc/w_pkup"
  51. Inventory.PickupMessage "You should not see this message, loser!"
  52. Weapon.AmmoType "D2C_PipebombAmmo"
  53. Weapon.AmmoGive 0
  54. Weapon.AmmoUse 0
  55. Weapon.Kickback 1000
  56. AttackSound "weapons/mauler1"
  57. Scale 0.1
  58. + NOALERT
  59. States
  60. {
  61. Spawn:
  62. PIPB A -1
  63. Loop
  64. Ready:
  65. DETO A 1 A_WeaponReady
  66. Loop
  67. Deselect:
  68. DETO A 1 A_Lower
  69. Loop
  70. Select:
  71. DETO A 1 A_Raise
  72. Loop
  73. Fire:
  74. DETO B 2
  75. DETO B 0 A_AlertMonsters
  76. DETO B 0 Thing_Projectile(1999,201,0,0,0)
  77. DETO C 2 Thing_ReMove(1999)
  78. DETO B 2
  79. DETO A 8
  80. DETO DEFGHIJKLMNO 1
  81. DETO Z 8
  82. DETO Z 0 A_GiveInventory("D2C_Pipebomb")
  83. DETO Z 3 A_TakeInventory("D2C_Detonator")
  84. goto Deselect
  85. }
  86. }
  87.  
  88. ACTOR Pipebomb : Rocket
  89. {
  90. Scale 0.1
  91. - NOGRAVITY
  92. // + LOWGRAVITY
  93. + DOOMBOUNCE
  94. Damage 0
  95. ExplosionDamage 255
  96. ExplosionRadius 128
  97. SeeSound "weapons/pbbounce"
  98. DeathSound "weapons/pbbounce"
  99. Renderstyle Normal
  100. Alpha 255
  101. States
  102. {
  103. Spawn:
  104. PIPB A 1 Thing_ChangeTid(0,1999)
  105. Loop
  106. Death:
  107. PIPB A 1
  108. PIPB A 1 Thing_ChangeTid(0,1999)
  109. PIPB A 1
  110. Goto Death+2
  111. }
  112. }
  113.  
  114. ACTOR PipebombExplosion
  115. {
  116. SeeSound "weapons/explode"
  117. SpawnID 201
  118. Radius 8
  119. Height 56
  120. Speed 0
  121. ExplosionDamage 255
  122. ExplosionRadius 192
  123. States
  124. {
  125. Spawn:
  126. NKXP B 3 BRIGHT
  127. NKXP C 3 BRIGHT
  128. NKXP D 3 BRIGHT A_Explode
  129. NKXP EFGHIJKLMNOPQRSTUV 3 BRIGHT
  130. Stop
  131. }
  132. }
  133.  
  134. ACTOR D2C_PipebombAmmo : Ammo
  135. {
  136. Inventory.Amount 1
  137. Inventory.MaxAmount 25
  138. Ammo.BackpackAmount 1
  139. Ammo.BackpackMaxAmount 40
  140. Inventory.Icon PIPBB0
  141. Inventory.PickupMessage ""
  142. States
  143. {
  144. Spawn:
  145. PIPB C -1
  146. }
  147. }
Advertisement
Add Comment
Please, Sign In to add comment