View Single Post
  #3  
Old 08-23-2001, 09:37 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
NPC Code:
if (playertouchsme) toweapons Admin Boots;
if (weaponfired) this.active=1-this.active;
if ((created||timeout)&&isweapon) {
if (this.speed==0) this.speed=1;
for (i=0;i<4;i++) if (keydown(i)) {
playerx+=vecx(i)*this.speed;
playery+=vecy(i)*this.speed;
}
timeout=0.05;
}
if (playerchats&&startswith(setspeed,#c)) this.speed=strtofloat(#T(#e(8,-1,#c)));

Simple, short and it does exactly the same.
__________________

Reply With Quote