fakeping: force-enable fake pings on listen server

combat: reduce jumping when in strafe mode (ref #699)
linkage: enable bots bullet spread when running without metamod
Co-Authored-By: Max <161382234+dyspose@users.noreply.github.com>
This commit is contained in:
jeefo 2025-06-09 13:07:55 +03:00
commit ae913a52db
No known key found for this signature in database
GPG key ID: D696786B81B667C8
3 changed files with 29 additions and 2 deletions

View file

@ -1216,7 +1216,16 @@ void Game::printBotVersion () const {
}
void Game::ensureHealthyGameEnvironment () {
if (!isDedicated () || is (GameFlags::Legacy | GameFlags::Xash3D)) {
const bool dedicated = isDedicated ();
if (!dedicated || is (GameFlags::Legacy | GameFlags::Xash3D)) {
if (!dedicated) {
// force enable pings on listen servers if disabled at all
if (is (GameFlags::Modern) && cv_show_latency.as <int> () == 0) {
cv_show_latency.set (2);
}
}
return; // listen servers doesn't care about it at all
}