From a160ad60b11303af00433dfc20f973d781c47d90 Mon Sep 17 00:00:00 2001 From: edshot99 Date: Mon, 25 Mar 2024 04:06:26 -0500 Subject: [PATCH] stop SourceTV bot from breaking spawn menu --- lua/autorun/client/cl_nadmodpp.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lua/autorun/client/cl_nadmodpp.lua b/lua/autorun/client/cl_nadmodpp.lua index 69da899..9adab4a 100644 --- a/lua/autorun/client/cl_nadmodpp.lua +++ b/lua/autorun/client/cl_nadmodpp.lua @@ -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