stop SourceTV bot from breaking spawn menu

This commit is contained in:
edshot99 2024-03-25 04:06:26 -05:00
parent 4dbf07b6f9
commit a160ad60b1

View File

@ -206,7 +206,11 @@ function metaply:SteamID64bot()
if( not IsValid( self ) ) then return end
if self:IsBot() then
-- Calculate Bot's SteamID64 according to gmod wiki
return ( 90071996842377216 + tonumber( string.sub( self:Nick(), 4) ) -1 )
if self:Nick() == "SourceTV" then
return 90071996842377216
else
return ( 90071996842377217 + tonumber( string.sub( self:Nick(), 4) ) -1 )
end
else
return self:SteamID64()
end