Thread: hmmmm
View Single Post
  #20  
Old 10-02-2005, 09:11 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
still dun work
NPC Code:
//NPC made By Excaliber
//#CLIENTSIDE
if (isweapon && strequals(#w,Lightning) && weaponfired && playermp>4 || isweapon && strequals(#w,Lightning) && mousedown && playermp>4){
disabledefmovement;
showimg 300,dr-crosshairs.png,mousex-.5,mousey-.35;
this.shooting = 1;
timeout=.05;
}
if(isweapon && this.shooting==1 && timeout){
replaceani idle,grab;
setani grab,;
showimg 300,dr-crosshairs.png,mousex-.5,mousey-.35;
timeout=.05;
}
if(this.shooting==1&&keypressed&&strequals(#p(1),A )){
this.shooting = 0;
hideimg 300;
enabledefmovement;
replaceani idle,idle;
setani idle,;
}

if(strequals(#w,Lightning) && this.shooting==1 && mousedown && leftmousebutton){
this.shooting = 0;
playermp=playermp-5;
showimg 400,dr-lightning.png,mousex-.5,mousey-8;
newx2 = mousex;
newy2 = mousey;
for(i=1;i<100;i=i+25){
changeimgpart 400,0,0,35,i;
sleep .05;
}
putexplosion2 3,2,newx2-.75,newy2-.75;
hideimg 400;
hitobjects 2,mousex,mousey;
hitobjects 2,mousex-.25,mousey-.25;
hitobjects 2,mousex+.25,mousey-.25;
hitobjects 2,mousex-.25,mousey+.25;
hideimg 300;
timeout=.05;
replaceani idle,idle;
setani idle,;
this.shooting = 0;
enabledefmovement;
hideimg 302;
sleep 3;
hideimg 301;
}
if(timeout&&!litshooting){
hideimg 300;
}

Reply With Quote