Name: Electric Spiral
Type: Weapon
Author: John Doe
Description: A lighting explosion spirals outwards from the player.
if(weaponfired&&playermp>=5){
playermp-=5;
setplayerprop #c,Electric Spiral;
freezeplayer 3.4;
playersprite=11;
playerdir=2;
setplayerprop #c,Electric Spiral;
sleep .1;
playerdir=1;
setplayerprop #c,Electric Spiral;
sleep .1;
playerdir=0;
setplayerprop #c,Electric Spiral;
sleep .1;
playerdir=3;
setplayerprop #c,Electric Spiral;
sleep .1;
playerdir=2;
timeout=.5;
this.radius=4;
if(playerdir=3)this.angle=(3*3.14)/2;
if(playerdir=0)this.angle=(3*3.14)/4;
if(playerdir=1)this.angle=3.14/2;
if(playerdir=2)this.angle=3.14/4;
}
if(timeout&&this.radius<15){
timeout=.05;
this.x=playerx+.5+cos(this.angle)*this.radius;
this.y=playery+.5+sin(this.angle)*this.radius;
putexplosion2 3,1,this.x,this.y;
this.radius+=.2;
this.angle+=.314;
}