Guest User

Untitled

a guest
Nov 26th, 2016
88
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ACTOR TESTACTOR
  2.     {
  3.     Speed 20
  4.     Radius 4
  5.     Height 8
  6.     Projectile
  7.     var float user_proj; // these need to be floating point
  8.     var float user_ang1; // otherwise the angle gets rounded down
  9.     var float user_ang2; //
  10.     STATES
  11.         {
  12.         SPAWN:
  13.             PLSS A 1 A_SetRoll(roll-22.5,SPF_INTERPOLATE)
  14.             loop
  15.         DEATH:
  16.             TNT1 A 0
  17.             TNT1 A 0
  18.                 {
  19.                 user_proj = 49;                 // can be any number.
  20.                 user_ang1 = 360 / user_proj;    // get the angle to spawn the projectiles equally
  21.                 user_ang2 = 0.0;
  22.                 while(user_proj >= 1.0)
  23.                     {
  24.                     //A_LogFloat(user_ang2); // debugging the angles
  25.                     A_SpawnItemEx("PLASMABALL", 8, 0, 0, 16.0, 0.0 ,0.0 , user_ang2, SXF_NOCHECKPOSITION|SXF_TRANSFERPOINTERS);
  26.                     user_ang2 = user_ang2 + user_ang1;
  27.                     user_proj-= 1;
  28.                     }
  29.                 }
  30.             STOP
  31.         }
  32.     }
RAW Paste Data