mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-29 06:07:57 +03:00
Make aiMaxDeviation only supported on 2.0 and above
This commit is contained in:
parent
efc1354dcb
commit
abfdac59ba
1 changed files with 6 additions and 4 deletions
|
@ -10150,12 +10150,14 @@ Vector Actor::GunTarget(bool bNoCollision, const vec3_t position, const vec3_t f
|
||||||
Vector dir = mTargetPos - EyePosition();
|
Vector dir = mTargetPos - EyePosition();
|
||||||
dir.normalize();
|
dir.normalize();
|
||||||
|
|
||||||
if (DotProduct2D(forward, dir) < aiMaxDeviation->value) {
|
if (g_target_game > target_game_e::TG_MOH) {
|
||||||
Vector vOut;
|
if (DotProduct2D(forward, dir) < aiMaxDeviation->value) {
|
||||||
|
Vector vOut;
|
||||||
|
|
||||||
VectorMA(position, 2048, forward, vOut);
|
VectorMA(position, 2048, forward, vOut);
|
||||||
|
|
||||||
return vOut;
|
return vOut;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mTargetPos == vec_zero) {
|
if (mTargetPos == vec_zero) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue