Make bot path more random when idle

This commit is contained in:
smallmodel 2024-10-03 20:22:54 +02:00
parent 6eb49f567a
commit 1e73333fbe
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -1029,7 +1029,10 @@ void PlayerBot::State_Idle(void)
m_vLastDeathPos = vec_zero;
}
} else {
AvoidPath(origin - Vector(orientation[0]) * 128.0f, 1024);
Vector randomDir(G_CRandom(1), G_CRandom(1), G_CRandom(1));
float radius = 512 + G_Random() * 4096;
AvoidPath(origin - Vector(orientation[0]) * 2.f, radius, randomDir);
}
}
}