- fixed velocity handling in a few enemy swimChase functions.

The one for the gill beast was particularly bad.
This commit is contained in:
Christoph Oelckers 2022-12-14 11:32:38 +01:00
parent ff09257d47
commit 9fc17a4bcf
3 changed files with 6 additions and 6 deletions

View file

@ -454,7 +454,7 @@ static void sub_62AE0(DBloodActor* actor)
});
double dz = target->spr.pos.Z - actor->spr.pos.Z;
actor->vel.Z -= dz / 256;
actor->vel.Z = -dz / 256;
}
static void sub_62D7C(DBloodActor* actor)
@ -484,7 +484,7 @@ static void sub_62D7C(DBloodActor* actor)
});
double dz = target->spr.pos.Z - actor->spr.pos.Z;
actor->vel.Z += dz / 32;
actor->vel.Z = dz / 32;
}
END_BLD_NS

View file

@ -322,7 +322,7 @@ static void sub_65F44(DBloodActor* actor)
});
double dz = target->spr.pos.Z - actor->spr.pos.Z;
actor->vel.Z -= dz / 256;
actor->vel.Z = -dz / 256;
}
static void sub_661E0(DBloodActor* actor)
@ -350,7 +350,7 @@ static void sub_661E0(DBloodActor* actor)
});
double dz = target->spr.pos.Z - actor->spr.pos.Z;
actor->vel.Z += dz / 32;
actor->vel.Z = dz / 32;
}
END_BLD_NS

View file

@ -309,7 +309,7 @@ static void sub_6CD74(DBloodActor* actor)
t1 += nAccel;
});
actor->vel.Z -= target->spr.pos.Z - actor->spr.pos.Z / 256.;
actor->vel.Z = -(target->spr.pos.Z - actor->spr.pos.Z) / 256.;
}
static void sub_6D03C(DBloodActor* actor)
@ -336,7 +336,7 @@ static void sub_6D03C(DBloodActor* actor)
t1 += nAccel * 0.5;
});
actor->vel.Z += target->spr.pos.Z - actor->spr.pos.Z / 32.;
actor->vel.Z = (target->spr.pos.Z - actor->spr.pos.Z) / 32.;
}
END_BLD_NS