PDA

View Full Version : A weird bug with a fix.


FxChiP
05-19-2001, 10:29 AM
The horses on G2K1. If you're riding one and holding the slash button, you get stuck on the horse slashing gani, and you basically just slash rapidly.

It's an NPC script problem, and the fix is right here.


if (timeout) {
if (keydown(5)) {
if (this.holdprot==0) {
this.holdprot=1;
setplayerani ridesword,;
}
}
else {this.holdprot=0;}
timeout=.1;
}


What this does is mimics the original, hardcoded horse. It doesn't allow for holding S to have rapid slashes, but when you're not holding S it turns off the variable and you can slash again.

Aidoggy
05-19-2001, 08:15 PM
nice