Is there any specific method that shoot is to be done in GS2? I used the same shoot and setshootparams in GS1, but I'm unsure how to do it in GS2.
This is what I have.
NPC Code:
function shoot()
{
freezeplayer(0.65);
setani millenium_cx-fire,;
client.cxclip -= 1;
this.angle = getangle(vecx(playerdir),vecy(playerdir));
this.dx = playerx+vecx(playerdir)*2;
this.dy = (playery-.5)+vecy(playerdir)*2.5;
//Setting Shoot Params
setshootparams #w,this.gunpow;
//Shooting Bullets
shoot this.dx,this.dy,playerz,this.angle+random(this.max angle*-1,this.maxangle),0,0,"millenium_bullet",;
shoot this.dx,this.dy,playerz,this.angle+random(this.max angle*-1,this.maxangle),0,0,"millenium_bullet",;
shoot this.dx,this.dy,playerz,this.angle+random(this.max angle*-1,this.maxangle),0,0,"millenium_bullet",;
shoot this.dx,this.dy,playerz,this.angle+random(this.max angle*-1,this.maxangle),0,0,"millenium_bullet",;
shoot this.dx,this.dy,playerz,this.angle+random(this.max angle*-1,this.maxangle),0,0,"millenium_bullet",;
shoot this.dx,this.dy,playerz,this.angle+random(this.max angle*-1,this.maxangle),0,0,"millenium_bullet",;
}
I'm guessing there's a problem in there because it worked fine in GS1, and it's setting the players gani animation as well as taking the bullet away but the bullets arent shooting. Any
helpful advice/tips (NB: Tryial and ApothiX - read bolded part twice to make sure you understand. That means don't ***** at each other in this thread.) are appreciated.
Edit:
Oh, I found it useful removing the quotations from the gani name, heh heh heh. On another note - is there a GS2 version of shoot? If so, what is it (If someone would be so kind as to tell me.)