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:
parent
70a11d6427
commit
95f907434b
26 changed files with 157 additions and 194 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue