Advertisement
Guest User

Untitled

a guest
Sep 21st, 2016
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. ACTOR BulletCasingSpawner //Shamelessly stolen from probably one of Weasel's mods, yoink. (Then taken by me, double yoink)
  2. {
  3. Speed 13
  4. PROJECTILE
  5. +NOCLIP
  6. States
  7. {
  8. Spawn:
  9. TNT1 AA 0 A_CustomMissile("BulletCasing",0,0,random(-100,-80),CMF_AIMDIRECTION,random(-15,15))
  10. Stop
  11. }
  12. }
  13.  
  14. ACTOR BulletCasing
  15. {
  16. Radius 2
  17. Height 4
  18. Speed 8
  19. Scale 0.1
  20. PROJECTILE
  21. -NOGRAVITY
  22. +BOUNCEONACTORS
  23. +DONTSPLASH
  24. Gravity 0.75
  25. BounceType Doom
  26. BounceCount 6
  27. BounceFactor 0.6
  28. +clientsideonly
  29. States
  30. {
  31. Spawn:
  32. CAS1 ABCDEFGH 1 bright
  33. Goto rollingloop
  34. rollingloop:
  35. TNT1 A 0 a_playsound ("Casing/Bullet",0,1,0,1.6)
  36. CAS1 A 0 A_Jump(128,1,3,5,7)
  37. CAS1 ABCDEFGH 1 bright
  38. Loop
  39. Death:
  40. TNT1 A 0 a_jump (256, "dead1","dead2")
  41. loop
  42. dead1:
  43. TNT1 A 0 a_playsound ("Casing/Bullet",0,1,0,1.6)
  44. CAS1 I 60 bright
  45. CAS1 I 1 bright a_fadeout (0.01)
  46. wait
  47. dead2:
  48. TNT1 A 0 a_playsound ("Casing/Bullet",0,1,0,1.6)
  49. CAS1 J 60 bright
  50. CAS1 J 1 bright a_fadeout (0.01)
  51. wait
  52. }
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement