This commit is contained in:
Jackz 2022-07-08 18:48:22 -05:00
parent a941649f9a
commit b62f9fd542
No known key found for this signature in database
GPG key ID: E0BBD94CF657F603
17 changed files with 503 additions and 479 deletions

View file

@ -78,13 +78,13 @@ methodmap MovePoints < ArrayList {
min -= FLOW_BOUND_BUFFER;
max += FLOW_BOUND_BUFFER;
movePoints.SetBounds(flowMin, flowMax);
movePoints.SetBounds(min, max);
PrintToServer("[GuessWho] Loaded %d locations (bounds (%.0f, %.0f)) for %s/%s", movePoints.Length, min, max, map, set);
PrintToServer("[GuessWho] Loaded %d locations with bounds [%.0f, %.0f] for %s/%s", points.Length, min, max, map, set);
delete file;
return points;
}
PrintToServer("[GuessWho] OpenFile(r+) returned null for %s", buffer);
PrintToServer("[GuessWho] No point data for %s/%s", map, set);
return null;
}
@ -101,6 +101,7 @@ methodmap MovePoints < ArrayList {
}
public void GetRandomPoint(LocationMeta meta) {
if(this.Length == 0) return;
meta.runto = GetURandomFloat() < BOT_MOVE_RUN_CHANCE;
meta.attempts = 0;
this.GetArray(GetURandomInt() % this.Length, meta);