ok, i made a speed up script or whatever. i used the original onwall function, but can anyone tell me the onwall2 syntax and stuff?
NPC Code:
// NPC made by ApeHex
if (playerenters) {
playerdir=0;
toweapons speed;
set clientr.gotspeed;
timeout=0.1;
doReset();
}
if (clientr.gotspeed){
if (timeout){
for (i=0;i<4;i++){
if (keydown(i)){
if (!onwall(playerx+this.walkSpeed+vecx(i)*this.walkS peed,playery+this.walkSpeed+vecy(i)*this.walkSpeed )){
playerx+=vecx(i)*this.walkSpeed;
playery+=vecy(i)*this.walkSpeed;
this.lastStep=strtofloat(i);
}
}
}
if (playerz<=-9.5){
playerx-=vecx(this.lastStep)*this.walkSpeed;
playery-=vecy(this.lastStep)*this.walkSpeed;
}
}
if (playeronline){
doTempStrings();
}
timeout=0.1;
}
function doReset(){
setstring clientr.walkSpeed,1.9;
}
function doTempStrings(){
this.walkSpeed=strtofloat(#s(clientr.walkSpeed));
}
i used temporary this.string because i find it easier to manipulate ;o