velocity.y = 0;
if (velspeed < multiplier * 300 * scale) {
velocity = 0;
- } else
+ } else {
velocity -= velocity / velspeed * multiplier * 300 * scale;
+ }
if (velspeed > 5 && (isLanding() || isLandhard())) {
skiddingdelay += multiplier;
if (skiddelay <= 0) {
FootLand(rightfoot, .5);
skiddelay = .02;
}
- } else
+ } else {
skiddingdelay = 0;
+ }
}
if (isLandhard()) {
velspeed = findLength(&velocity);
- velocity.y = 0;
- if (velspeed < multiplier * 600 * scale) {
- velocity = 0;
- } else
- velocity -= velocity / velspeed * multiplier * 600 * scale;
velocity = 0;
if (velspeed > 5 && (isLanding() || isLandhard())) {
skiddingdelay += multiplier;
FootLand(rightfoot, .5);
skiddelay = .02;
}
- } else
+ } else {
skiddingdelay = 0;
+ }
}
if (skiddingdelay < 0)