datsexyanon

Untitled

May 14th, 2014
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. Actor PlasmaPistol : Weapon
  2. {
  3. Weapon.SlotNumber 1
  4. Weapon.Ammotype "PPistolAmmo"
  5. Weapon.AmmoUse 1
  6. Weapon.AmmoGive 10
  7. Weapon.kickback 30
  8. Weapon.SelectionOrder 2300
  9. +WEAPON.WIMPY_WEAPON
  10. +WEAPON.AMMO_OPTIONAL
  11. Inventory.PickupMessage "You got a Plasma Pistol!"
  12. obituary "%o was melted by %k's Plasma Pistol"
  13. states
  14. {
  15. Spawn:
  16. PLSP A -1
  17. loop
  18. Ready:
  19. PLPI A 20 A_WeaponReady
  20. PLPI A 0 A_GiveInventory("PPistolammo", 1)
  21. loop
  22. Deselect:
  23. TNT1 A 0 A_Lower
  24. TNT1 A 0 A_Lower
  25. PLPI A 1 A_Lower
  26. loop
  27. Select:
  28. TNT1 A 0 A_Raise
  29. TNT1 A 0 A_Raise
  30. PLPI A 1 A_Raise
  31. loop
  32. Fire:
  33. PLPI B 2
  34. PLPI C 0 A_Quake(1, 2, 0, 32)
  35. PLPI C 0 A_playsound("plasmapistol/fire")
  36. PLPI C 1 A_FireCustomMissile("PPistolBall2")
  37. PLPI A 0 A_JumpIfInventory("PPistolAmmo", 1, "Rapidfire")
  38. PLPI A 15
  39. goto Ready
  40. Rapidfire:
  41. PLPI B 2
  42. PLPI C 0 A_Quake(1, 2, 0, 32)
  43. PLPI C 0 A_playsound("plasmapistol/fire")
  44. PLPI C 1 A_FireCustomMissile("PPistolBall2")
  45. PLPI A 0 A_JumpIfInventory("PPistolAmmo", 1, "Rapidfire")
  46. PLPI A 0 A_GiveInventory("PPistolammo", 1)
  47. goto Ready
  48. }
  49. }
  50.  
  51. Actor PPistolBall : Plasmaball
  52. {
  53. SeeSound ""
  54. Radius 8
  55. scale 0.65
  56. Damage 3
  57. Speed 30
  58. Obituary "$OB_MPPLASMAPISTOL"
  59. }
  60.  
  61. Actor PPistolBall2 : Plasmaball
  62. {
  63. SeeSound ""
  64. Radius 8
  65. scale 0.65
  66. +STRIFEDAMAGE
  67. Damage 4
  68. Speed 30
  69. Obituary "$OB_MPPLASMAPISTOL"
  70. }
  71.  
  72. Actor PPistolAmmo : Ammo
  73. {
  74. Inventory.Amount 5
  75. Inventory.MaxAmount 5
  76. Ammo.BackpackAmount 0
  77. Ammo.BackpackMaxAmount 5
  78. +INVENTORY.IGNORESKILL
  79. states
  80. {
  81. Spawn:
  82. TNT1 A -1
  83. stop
  84. }
  85. }
Advertisement
Add Comment
Please, Sign In to add comment