From c81e3fe15c0ad5cac44cb9b6fed3de8a8895662d Mon Sep 17 00:00:00 2001 From: sammyt291 Date: Wed, 4 Mar 2020 09:33:47 +0000 Subject: [PATCH] Fix off-by-one error on bot SteamID64 --- lua/autorun/client/cl_nadmodpp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/autorun/client/cl_nadmodpp.lua b/lua/autorun/client/cl_nadmodpp.lua index c8cb80d..69da899 100644 --- a/lua/autorun/client/cl_nadmodpp.lua +++ b/lua/autorun/client/cl_nadmodpp.lua @@ -206,7 +206,7 @@ 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) ) + return ( 90071996842377216 + tonumber( string.sub( self:Nick(), 4) ) -1 ) else return self:SteamID64() end