Hey graalians! Here is a neat little weapon
that makes five rings of fire on the screen!
Bonus points to make the norht-south-east-
west circles rotate arount the player!
// NPC made by Prozac
// circle code by Kyle0654 used with permission
// for personal use only, do not upload to a server without
//permission
if (playerenters){show;}
if (playertouchsme){toweapons Rings of Fire; this.a=0;}
if (weaponfired && this.a==0){this.what=0;
this.a=1; sleep .2; this.radius=5; timeout=.05;}
if (weaponfired && this.a==1){this.a=0; this.what=1; sleep .2; timeout=.05;}
if (timeout && this.a==1)
{
if (this.what==1){this.radius--;}
if (this.radius<5){this.what=0;}
if (this.radius<15 && this.what==0){this.radius++;}
if (this.radius==15){this.what=1;}
x=playerx; y=playery;
this.oldi=0;
this.Angles=31.4;
this.sleeptime=.05;
for (this.j=0; this.j<1; this.j++)
{
for (this.A=0;this.A<6.28;this.A+=(6.28/this.Angles))
{ shootaball(); }
sleep .1;
}
timeout=.05;
}
/////////////////
function shootaball() {
if (!this.oldi==this.j && this.radius>0){this.radius--;}else{this.radus++;}
this.Ox=playerx+5;
this.Oy=playery;
playerx+=this.radius*cos(this.A);
playery+=this.radius*sin(this.A);
// shootball;
if (this.radius<14)
{putexplosion2 1,-8,playerx,playery;}
else
{putexplosion2 3,0,random(playerx-.5,playerx+.5),random(playery-.5,playery+.5);}
playerx=this.Ox-5;
playery=this.Oy;
this.oldi=this.j;
}
also check my NPC search engine,
http://www.figmentcode.com/cgi-bin/npc1.pl
~Prozac~