NPC Code:
if (weaponfired) this.playing=1-this.playing;
if ((created||timeout)&&isweapon) {
if (this.playing==1) {
setarray this.keydown,10;
for (this.k=0;this.k<10;this.k++) this.keydown[this.k]=(keydown(this.k));
if (true in this.keydown) {
if (this.keydown[4]==true) this.arg=4;
else this.arg=0;
for (this.k=0;this.k<4;this.k++) if (this.keydown[this.k]==true) setani sax,sax#v(this.k+this.arg).wav;
}
}
timeout=0.05;
}
I'm just not sure if those are the correct sounds and gani's.