Thread: Why?
View Single Post
  #2  
Old 12-13-2001, 02:28 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
NPC Code:

if(weaponfired && playermp >=10){
if(playerdir==0 || playerdir==2){
playermp-=10;
this.dir=playerdir;
this.distance=0;
this.startxy={playerx+vecx(this.dir)*2,playery+vec y(this.dir)*2};
timeout=.05;
}
}

if(timeout){
if(this.distance < 20){
this.distance++;
putexplosion2 2,1,this.startxy[0],this.startxy[1];
this.startxy[0]+=vecx(this.dir);
this.startxy[1]+=vecy(this.dir);
timeout=.05;
}
}




not tested, but it should work...
__________________
No Webhost at the moment
Reply With Quote