Advertisement
wolfboyft

Rifle

Jul 12th, 2016
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. //Taken and modified from Realm 667. Thanks!
  2. ACTOR Rifle : DoomWeapon
  3. {
  4. Obituary "%o was gunned down by %k's rifle."
  5. attacksound "weapons/pistol"
  6. weapon.ammouse 1
  7. weapon.SlotNumber 2
  8. weapon.ammogive 40
  9. weapon.ammotype "Clip"
  10. Inventory.pickupmessage "You got the Rifle!"
  11. states
  12. {
  13. Ready:
  14. RFLG A 1 A_WeaponReady
  15. loop
  16. Deselect:
  17. RFLG A 1 A_Lower
  18. loop
  19. Select:
  20. RFLG A 1 A_Raise
  21. loop
  22. Fire:
  23. RFLG A 3
  24. RFLG A 1 A_GunFlash
  25. RFLG B 6 A_FireBullets (1.2, 0, 1, 10, "BulletPuff")
  26. RFLG B 0 A_ReFire
  27. Goto Ready
  28. Flash:
  29. RFLF A 3 bright A_Light1
  30. RFLG A 0 bright A_Light0
  31. stop
  32. Spawn:
  33. RIFL A -1
  34. Stop
  35. }
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement