Advertisement
Guest User

DarkLib

a guest
Sep 20th, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. anim { "enemy.anm"; }
  2.  
  3. sub PAT_LaserShots(xoff yoff shottype angle length startangleoff angleoffadd count timeper delay)
  4. {
  5. var xx yy cx cy sang;
  6. %xx = %xoff;
  7. %yy = %yoff;
  8. circleXY(%cx, %cy, %angle, %length);
  9. %cx;
  10. float($count);
  11. dividef();
  12. movef(%cx);
  13. %cy;
  14. float($count);
  15. dividef();
  16. movef(%cy);
  17. %sang = %startangleoff;
  18. %sang += %angle;
  19. wait($delay);
  20. loop $count laserLoop
  21. %xx += %cx;
  22. %yy += %cy;
  23. shotSetOffset($shottype, %xx, %yy);
  24. shotSetAngle($shottype, %sang);
  25. shotFire($shottype);
  26. %sang += %angleoffadd;
  27. wait($timeper);
  28. ins_0();
  29. endloop laserLoop
  30. shotSetOffset($shottype, 0.0f, 0.0f);
  31. return3();
  32. }
  33.  
  34. sub FX_ShadowEffect()
  35. {
  36. var A;
  37. setAnm(2);
  38. loop -1 shadowLoop
  39. doEffect(2, 16);
  40. wait(8);
  41. ins_0();
  42. endloop shadowLoop
  43. return3();
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement