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

+7 -1
View File
@@ -1,7 +1,7 @@
import math, os, random, sys, unittest
sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "home", "minqlx-plugins"))
from lgbot import (PRESETS, KEYS, resolve, Strafer, wanted_range, steer, fix_z, pick_target, to_int)
from lgbot import (PRESETS, KEYS, resolve, Strafer, wanted_range, steer, fix_z, pick_target, to_int, is_bot)
def preset(n, **kw):
@@ -123,6 +123,12 @@ class Misc(unittest.TestCase):
self.assertEqual(fix_z(40), 40) # slopes/stairs
self.assertEqual(fix_z(800), 800) # jump pads
def test_is_bot(self):
self.assertTrue(is_bot(90071996842377216)) # minqlx bot ids: base + client number
self.assertTrue(is_bot(90071996842377216 + 5))
self.assertTrue(is_bot(0))
self.assertFalse(is_bot(76561198000000000)) # real SteamID64
def test_to_int(self):
self.assertEqual(to_int("5"), 5)
self.assertEqual(to_int(" -1 "), -1)