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;
}
}
}