mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-07 16:53:21 +00:00
Fixes
This commit is contained in:
parent
a941649f9a
commit
b62f9fd542
17 changed files with 503 additions and 479 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue