We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 57382e2 commit 3288ad1Copy full SHA for 3288ad1
addons/source-python/packages/source-python/players/helpers.py
@@ -163,7 +163,7 @@ def uniqueid_from_playerinfo(playerinfo):
163
:rtype: str
164
"""
165
# Is the player a Bot?
166
- if playerinfo.is_fake_client():
+ if playerinfo.is_fake_client() or 'BOT' in playerinfo.steamid:
167
168
# Return the bot's UniqueID
169
return 'BOT_{0}'.format(playerinfo.name)
@@ -205,7 +205,7 @@ def address_from_playerinfo(playerinfo):
205
206
207
# Is the player a bot?
208
209
210
# Return an empty string, since using <netinfo>.address crashes
211
# with bots
0 commit comments