graph: do not spam about problem
nav: tweaked stuck values and timers
This commit is contained in:
parent
e820527703
commit
9b80517eda
5 changed files with 17 additions and 4 deletions
|
|
@ -1265,6 +1265,12 @@ void Game::markBreakableAsInvalid (edict_t *ent) {
|
|||
m_checkedBreakables[indexOfEntity (ent)] = false;
|
||||
}
|
||||
|
||||
bool Game::isDeveloperMode () const {
|
||||
static ConVarRef developer { "developer" };
|
||||
|
||||
return developer.exists () && developer.value () > 0.0f;
|
||||
}
|
||||
|
||||
void LightMeasure::initializeLightstyles () {
|
||||
// this function initializes lighting information...
|
||||
|
||||
|
|
|
|||
|
|
@ -465,7 +465,7 @@ void Bot::resetCollision () {
|
|||
void Bot::ignoreCollision () {
|
||||
resetCollision ();
|
||||
|
||||
m_lastCollTime = game.time () + m_frameInterval * 4.0f;
|
||||
m_lastCollTime = game.time () + 0.5f;
|
||||
m_checkTerrain = false;
|
||||
}
|
||||
|
||||
|
|
@ -520,7 +520,7 @@ void Bot::doPlayerAvoidance (const Vector &normal) {
|
|||
setStrafeSpeed (normal, -pev->maxspeed);
|
||||
}
|
||||
}
|
||||
const float interval = m_frameInterval * (!isDucking () && pev->velocity.lengthSq2d () > 0.0f ? 7.5f : 2.0f);
|
||||
const float interval = m_frameInterval * (!isDucking () && pev->velocity.lengthSq2d () > 0.0f ? 6.0f : 2.0f);
|
||||
|
||||
// use our movement angles, try to predict where we should be next frame
|
||||
Vector right {}, forward {};
|
||||
|
|
|
|||
|
|
@ -85,7 +85,11 @@ template <typename U> bool BotStorage::load (SmallArray <U> &data, ExtenHeader *
|
|||
if (tryReload ()) {
|
||||
return true;
|
||||
}
|
||||
return error (isGraph, isDebug, file, "Unable to open %s file for reading (filename: '%s').", type.name, filename);
|
||||
|
||||
if (game.isDeveloperMode ()) {
|
||||
return error (isGraph, isDebug, file, "Unable to open %s file for reading (filename: '%s').", type.name, filename);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// read the header
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue