Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.36 KB | None | 0 0
  1. actor SMG : Chaingun
  2. {
  3. weapon.ammotype "SMGClip"
  4. weapon.ammouse 1
  5. weapon.ammogive 0
  6. weapon.ammotype2 "Clip"
  7. weapon.ammouse2 1
  8. weapon.ammogive2 0
  9. obituary "%o was turned into Swiss cheese by %k's submachinegun."
  10. +weapon.ammo_optional
  11. inventory.pickupmessage "You swiped a submachinegun!"
  12. states
  13. {
  14. Spawn:
  15. TNT1 A 1 A_SpawnItem("SMGPack")
  16. stop
  17. Ready:
  18. SUBM A 0 A_JumpIfInventory("ReloadSignal", 1, "ReloadStart")
  19. SUBM A 1 A_WeaponReady
  20. loop
  21. Deselect:
  22. SUBM A 1 A_Lower
  23. loop
  24. Select:
  25. SUBM A 1 A_Raise
  26. loop
  27. Fire:
  28. SUBM A 0 A_JumpIfInventory("SMGFireModeSwitcher", 1, "Fire2")
  29. SUBM A 0 A_JumpIfNoAmmo("ReloadStart")
  30. SUBM B 0 BRIGHT A_GunFlash
  31. SUBM B 2 BRIGHT A_FireBullets (5, 5, -1, 5, "R2BulletPuff",1,1536)
  32. SUBM CD 1
  33. SUBM A 2 A_ReFire
  34. goto Ready
  35. Fire2:
  36. SUBM A 0 A_JumpIfNoAmmo("ReloadStart")
  37. SUBM B 0 BRIGHT A_GunFlash
  38. SUBM B 1 BRIGHT A_FireBullets(2.5, 2.5, -1, 5, "R2BulletPuff", 1, 1536)
  39. SUBM CD 1
  40. SUBM B 0 BRIGHT A_GunFlash
  41. SUBM B 1 BRIGHT A_FireBullets(2.5, 2.5, -1, 5, "R2BulletPuff", 1, 1536)
  42. SUBM CD 1
  43. SUBM B 0 BRIGHT A_GunFlash
  44. SUBM B 1 BRIGHT A_FireBullets(2.5, 2.5, -1, 5, "R2BulletPuff", 1, 1536)
  45. SUBM CD 1
  46. SUBM A 10
  47. goto Ready
  48. AltFire:
  49. SUBM A 0 A_JumpIfInventory("SMGFireModeSwitcher", 1, "AltFire2")
  50. SUBM A 0 A_GiveInventory("SMGFireModeSwitcher", 1)
  51. SUBM A 17 A_Print("Firing mode switched to 3-shot burst")
  52. goto Ready
  53. AltFire2:
  54. SUBM A 0 A_TakeInventory("SMGFireModeSwitcher", 999)
  55. SUBM A 17 A_Print("Firing mode switched to fully automatic.")
  56. goto Ready
  57. ReloadStart:
  58. SUBM A 0 A_JumpIfInventory("SMGClip", 0, "Ready")
  59. SUBM A 0 A_JumpIfInventory("Clip", 1, 1)
  60. goto Ready
  61. SUBM AAAAAAAA 1 A_Lower
  62. goto Reload
  63. Reload:
  64. SUBM A 0 A_JumpIfInventory("SMGClip", 0, "ReloadDone")
  65. SUBM A 0 A_JumpIfInventory("Clip", 1, 1)
  66. goto ReloadDone
  67. SUBM A 0 A_GiveInventory("SMGClip", 1)
  68. SUBM A 0 A_TakeInventory("Clip", 1)
  69. goto Reload
  70. ReloadDone:
  71. SUBM A 16 A_PlaySound("weapons/sshoto")
  72. SUBM A 1 A_Lower
  73. SUBM A 16 A_PlaySound("weapons/sshotl")
  74. SUBM A 1 A_Raise
  75. SUBM A 16 A_PlaySound("weapons/sshotc")
  76. SUBM AAAAAAAA 1 A_Raise
  77. SUBM A 0 A_TakeInventory("ReloadSignal", 999)
  78. goto Ready
  79. Flash:
  80. TNT1 A 2 Bright A_Light2
  81. TNT1 A 2 Bright A_Light1
  82. Goto LightDone
  83. }
  84. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement