CREAMPAN0408

Untitled

Jan 21st, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. Shotgunと名前の付いた金鍬を右クリックすると散弾が発射
  2. 弾数を変えたい場合はrightclickイベントのloopの回数を変えればできますわよ
  3.  
  4. on shoot:
  5. {shotgun} is true
  6. loop entities in radius 1 of projectile:
  7. loop-entity is a arrow
  8. add 1 to {_random}
  9. if {_random} is 1:
  10. push loop-entity to the right at speed random number from 0.05 to 0.11
  11. push loop-entity upwards at speed random number from 0.04 to 0.10
  12. if {_random} is 2:
  13. push loop-entity to the left at speed random number from 0.04 to 0.10
  14. push loop-entity upwards at speed random number from 0.05 to 0.11
  15. if {_random} is 3:
  16. push loop-entity forwards at speed random number from 0.05 to 0.10
  17. push loop-entity upwards at speed random number from 0.05 to 0.10
  18. if {_random} is 4:
  19. push loop-entity backwards at speed random number from 0.04 to 0.10
  20. push loop-entity to the left at speed random number from 0.05 to 0.11
  21. push loop-entity upwards at speed random number from 0.04 to 0.11
  22. if {_random} is 5:
  23. push loop-entity backwards at speed random number from 0.05 to 0.11
  24. push loop-entity to the right at speed random number from 0.04 to 0.10
  25. push loop-entity upwards at speed random number from 0.04 to 0.11
  26. if {_random} is 6:
  27. push loop-entity forwards at speed random number from 0.05 to 0.10
  28. push loop-entity to the left at speed random number from 0.05 to 0.10
  29. push loop-entity upwards at speed random number from 0.05 to 0.10
  30. if {_random} is 7:
  31. push loop-entity forwards at speed random number from 0.05 to 0.10
  32. push loop-entity to the right at speed random number from 0.05 to 0.10
  33. push loop-entity upwards at speed random number from 0.05 to 0.10
  34.  
  35. on rightclick with gold hoe:
  36. name of player's tool contains "Shotgun"
  37. cancel event
  38. set {shotgun} to true
  39. loop 10 times:
  40. shoot an arrow from player at speed 3
  41. set {shotgun} to false
Advertisement
Add Comment
Please, Sign In to add comment