lgbot: bots have minqlx Steam IDs >= 90071996842377216; hunter chat; skill 1/4/5 only

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
esefandClaude Opus 5.5 committed 2026-10-15 14:29:57 +03:00
1 parent 8989780cd2
commit c6a495ce2c
3 files changed
+17 -111

No files matched your search

+6 -1
View File
@@ -23,6 +23,11 @@ PRESETS = {
PUSH_RANGE, BACKOFF_RANGE = 250, 700
BACKOFF_HEALTH, PUSH_LEAD = 60, 30
MAX_TARGET_DIST = 1500
BOT_STEAM_ID = 90071996842377216 # minqlx gives bots this + their client number
def is_bot(steam_id):
return steam_id == 0 or steam_id >= BOT_STEAM_ID
def to_int(text):
@@ -156,7 +161,7 @@ if minqlx:
for p in players:
if p.id == bot.id or p.team == "spectator" or not p.is_alive:
continue
if p.steam_id == 0 and not self.target_bots: # bots have Steam ID 0
if is_bot(p.steam_id) and not self.target_bots:
continue
pos = p.position()
cands.append(((pos.x, pos.y), p))