View Single Post
  #3  
Old 02-27-2006, 12:40 AM
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
I simplified it a bit. When you fire the weapon, the character freezes, clicking and A do nothing, and the fire appears, but does not follow
NPC Code:

if(weaponfired)
{
//stuff
if(strtofloat(#s(clientr.divine_mode))==2 || timeout && strtofloat(#s(clientr.divine_mode))==2)
{
//stuff
this.inuse=1;
if(this.inuse==1 ||timeout && this.inuse==1)
{
showimg 300,fire.gif,mousex,mousey;
timeout=.05;
}

if(mousedown && this.inuse==1)
{
putexplosion 1,mousex,mousey;
enabledefmovement;
}
if(keypressed && strequals(#p(1),A))
{
hideimg 300;
timeout=0;
this.inuse=0;
enabledefmovement;
}
}
}

Reply With Quote