nav: fix double jumping when bot gets stuck

bot: restore bot difficulty levels (ref #729)
bot: probably fix freezetime accident shooting (ref #729)
build: use noexecstack when building library
refactor: rework some old code and remove unnecessary things
This commit is contained in:
jeefo 2025-09-01 23:20:36 +03:00
commit 95f907434b
No known key found for this signature in database
GPG key ID: D696786B81B667C8
26 changed files with 157 additions and 194 deletions

View file

@ -338,7 +338,7 @@ Vector Game::getEntityOrigin (edict_t *ent) {
}
if (ent->v.origin.empty ()) {
return ent->v.absmin + (ent->v.size * 0.5);
return ent->v.absmin + ent->v.size * 0.5;
}
return ent->v.origin;
}
@ -935,7 +935,12 @@ bool Game::loadCSBinary () {
}
if (entity != nullptr) {
m_gameFlags |= (GameFlags::Modern | GameFlags::HasBotVoice | GameFlags::HasFakePings);
m_gameFlags |= (GameFlags::Modern | GameFlags::HasBotVoice);
// no fake pings on xash3d
if (!(m_gameFlags & (GameFlags::Xash3D | GameFlags::Xash3DLegacy))) {
m_gameFlags |= GameFlags::HasFakePings;
}
}
else {
m_gameFlags |= GameFlags::Legacy;