Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ACTOR TESTACTOR
- {
- Speed 20
- Radius 4
- Height 8
- Projectile
- var float user_proj; // these need to be floating point
- var float user_ang1; // otherwise the angle gets rounded down
- var float user_ang2; //
- STATES
- {
- SPAWN:
- PLSS A 1 A_SetRoll(roll-22.5,SPF_INTERPOLATE)
- loop
- DEATH:
- TNT1 A 0
- TNT1 A 0
- {
- user_proj = 49; // can be any number.
- user_ang1 = 360 / user_proj; // get the angle to spawn the projectiles equally
- user_ang2 = 0.0;
- while(user_proj >= 1.0)
- {
- //A_LogFloat(user_ang2); // debugging the angles
- A_SpawnItemEx("PLASMABALL", 8, 0, 0, 16.0, 0.0 ,0.0 , user_ang2, SXF_NOCHECKPOSITION|SXF_TRANSFERPOINTERS);
- user_ang2 = user_ang2 + user_ang1;
- user_proj-= 1;
- }
- }
- STOP
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement