This NPC pwns and was made my me alone so ph33r me!
// NPC made by Archaon (LAT)
// Info:
// You can reach me at
[email protected]
// But don't ask for script since I suck.
// this. vars:
// this.explostype: explosion type (1 = normal, 3 = jolt bomb)
// this.radius: the explosion radius
// this.xincr: how much x space between the explosions
// set to 0 for no hortzontal movement
// this.yincr: how much y space between explosions
// set to 0 for no vertical movement
// this.explosstartx: the x where the explosion streak starts
// this.explosstarty: the y where the explosion streak starts
// this.explosx: the x where the explosion appear, dont touch
// this.explosy: the y where the explosion appear, dont touch
// this.xexplosdir: the x direction (1 = left, 3 = right)
// this.yexplosdir: the y direction (0 = up, 2 = down)
// this.exploscount: the number of explosions
// this.explodedcount: dont change this
// this.timeout: the time between each explosion streak
// this.timeout2: the time betweem each explosion
// this.again: leave this
if (playerenters) {
this.explostype = 3;
this.radius = 2;
this.xincr = 2;
this.yincr = 1;
this.explosstartx = x;
this.explosstarty = y;
this.explosx = this.explosstartx;
this.explosy = this.explosstarty;
this.xexplosdir = 3;
this.yexplosdir = 2;
this.exploscount = 20;
this.explodedcount = 0;
this.timeout = 1.1;
this.timeout2 = 0.05;
this.again = 1;
timeout = this.timeout;
}
if (timeout&&this.again==1) {
putexplosion2 this.explostype,this.radius,this.explosx,this.expl osy;
if (this.xexplosdir==3) {
this.explosx+=this.xincr;
} else if (this.xexplosdir==1) {
this.explosx-=this.xincr;
}
if (this.yexplosdir==0) {
this.explosy-=this.yincr;
} else if (this.yexplosdir==2) {
this.explosy+=this.yincr;
}
this.explodedcount+= 1;
if (this.explodedcount=>this.exploscount) {
this.explosx = this.explosstartx;
this.explosy = this.explosstarty;
this.explodedcount = 0;
this.again == 0;
timeout = this.timeout;
}
if (this.again==1) {
timeout = this.timeout2;
}
} else if (this.again==0) {timeout=this.timeout;this.again=1}