change: increase defend node search radius

change: more fixes to aiming table
This commit is contained in:
dmitry 2021-09-17 14:40:39 +03:00
commit e0f3317b1a
No known key found for this signature in database
GPG key ID: 8297CE728B7A7E37
2 changed files with 3 additions and 3 deletions

View file

@ -548,8 +548,8 @@ float Bot::getEnemyBodyOffsetCorrection (float distance) {
{ 0.0f, 0.0f, 0.0f }, // melee { 0.0f, 0.0f, 0.0f }, // melee
{ 2.5f, 1.5f, 0.2f }, // pistol { 2.5f, 1.5f, 0.2f }, // pistol
{ 6.5f, 2.0f, -9.9f }, // shotgun { 6.5f, 2.0f, -9.9f }, // shotgun
{ 0.5f, -3.5f, -8.0f }, // zoomrifle { 0.5f, -3.5f, -9.0f }, // zoomrifle
{ 0.5f, -3.5f, -8.5f }, // rifle { 0.5f, -3.5f, -9.5f }, // rifle
{ 2.5f, 0.5f, -4.5f }, // smg { 2.5f, 0.5f, -4.5f }, // smg
{ 0.5f, 0.5f, 1.5f }, // sniper { 0.5f, 0.5f, 1.5f }, // sniper
{ 1.5f, -2.0f, -9.0f } // heavy { 1.5f, -2.0f, -9.0f } // heavy

View file

@ -1841,7 +1841,7 @@ int Bot::findDefendNode (const Vector &origin) {
int distance = graph.getPathDist (srcIndex, i); int distance = graph.getPathDist (srcIndex, i);
// skip wayponts with distance more than 512 units // skip wayponts with distance more than 512 units
if (distance > 512) { if (distance > 1024) {
continue; continue;
} }
game.testLine (graph[i].origin, graph[posIndex].origin, TraceIgnore::Everything, ent (), &tr); game.testLine (graph[i].origin, graph[posIndex].origin, TraceIgnore::Everything, ent (), &tr);