Advertisement
ijontichy

<stdin>

Aug 4th, 2012
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. actor Putter: Weapon
  2. {
  3. Weapon.SlotPriority 1
  4. Weapon.SlotNumber 0
  5. Weapon.KickBack 10
  6.  
  7. +WEAPON.NOAUTOAIM
  8. +WEAPON.AMMO_OPTIONAL
  9. +WEAPON.NOALERT
  10. +WEAPON.DONTBOB
  11. +WEAPON.NOAUTOFIRE
  12.  
  13. States
  14. {
  15. Spawn:
  16. TNT1 A -1
  17. stop
  18.  
  19. Select:
  20. PUTT A 1 A_Raise
  21. loop
  22.  
  23. Deselect:
  24. PUTT A 1 A_Lower
  25. loop
  26.  
  27. Ready:
  28. PUTT A 1 A_WeaponReady
  29. loop
  30.  
  31. Fire:
  32. PUTT A 0 A_GiveInventory("putterPower", 1)
  33. PUTT A 1 A_GunFlash
  34. PUTT A 0 A_JumpIfInventory("putterPower", 200, "StopPutt")
  35. PUTT A 0 A_Refire
  36. goto StopPutt
  37.  
  38. Flash:
  39. PBAR A 0 A_JumpIfInventory("putterPower", 75, "Putt75")
  40. PBAR A 0 A_JumpIfInventory("putterPower", 50, "Putt50")
  41. PBAR A 0 A_JumpIfInventory("putterPower", 25, "Putt25")
  42. stop
  43.  
  44. Putt75:
  45. PBAR D 1
  46. goto Ready
  47.  
  48. Putt50:
  49. PBAR C 1
  50. goto Ready
  51.  
  52. Putt25:
  53. PBAR B 1
  54. goto Ready
  55.  
  56. StopPutt:
  57. PBAR E 1
  58. goto Ready
  59. }
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement