You mean this code?
NPC Code:
if (weaponfired) this.active=1-this.active;
if ((created||timeout)&&isweapon) {
if (this.active==1&&strlen(#c)>0) setplayerprop #c,#e(strlen(#c),1,#c)#e(1,strlen(#c)-1,#c);
timeout=0.05;
}
With perhaps a slower timeout... And I'm not sure if this works like it should but you get the basic idea.