SilentSorrow

Butterfly Trail

Sep 14th, 2014
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. task butterflyTrail{
  2. let x = 0;
  3. let dir = 0;
  4. let count = 10;
  5. let angleP = GetAngleToPlayer;
  6. let angle = 0;
  7. let N = 1;
  8. let loopArg = 12;
  9.  
  10. loop{
  11. loop(loopArg){
  12. SetShotDirectionType(ABSOLUTE);
  13. CreateShotA(1,GetCenterX,GetCenterY-100,10);
  14. SetShotDataA(1,0,0,angleP,1*N,0.02,4,214);
  15. SetShotDataA(1,120,NULL,NULL,0,0,0,214);
  16.  
  17. ascent(i in 0..20){
  18. CreateShotA(2,0,0,10);
  19. SetShotDataA(2,0,0,angle+270,0,0,0,30);
  20. SetShotDataA(2,120,1,NULL,0,-0.02,-3,58);
  21. CreateShotA(3,0,0,10);
  22. SetShotDataA(3,0,0,angle-270,0,0,0,30);
  23. SetShotDataA(3,120,1,NULL,0,-0.02,-3,58);
  24. AddShot(30+i*10,1,3,0);
  25. AddShot(30+i*10,1,2,0);
  26. }
  27. FireShot(1);
  28. angle+=360/loopArg;
  29. }
  30.  
  31. loop(loopArg){
  32. N = N * -1;
  33. SetShotDirectionType(ABSOLUTE);
  34. CreateShotA(1,GetCenterX,GetCenterY-100,10);
  35. SetShotDataA(1,0,0,angleP,1*N,0.02,4,214);
  36. SetShotDataA(1,120,NULL,NULL,0,0,0,214);
  37.  
  38. ascent(i in 0..20){
  39. CreateShotA(2,0,0,10);
  40. SetShotDataA(2,0,0,angle+270,0,0,0,30);
  41. SetShotDataA(2,90,0,NULL,0,-0.02,-3,58);
  42. CreateShotA(3,0,0,10);
  43. SetShotDataA(3,0,0,angle-270,0,0,0,30);
  44. SetShotDataA(3,90,0,NULL,0,-0.02,-3,58);
  45. AddShot(30+i*10,1,3,0);
  46. AddShot(30+i*10,1,2,0);
  47. }
  48. FireShot(1);
  49. angle+=360/loopArg;
  50. }
  51. angleP = angleP /*+ rand_int(5,10)*/;
  52. yield;
  53. wait(240);
  54. }
  55. }
Advertisement
Add Comment
Please, Sign In to add comment