mirror of
https://github.com/nillerusr/source-engine.git
synced 2024-12-22 22:27:05 +00:00
Upload shitty multiplayer hacks
This commit is contained in:
parent
4243cede59
commit
2f6aa51749
@ -569,7 +569,7 @@ bool CBaseClientState::PrepareSteamConnectResponse( uint64 unGSSteamID, bool bGS
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
#if !defined( NO_STEAM ) && !defined( SWDS )
|
#if !defined( NO_STEAM ) && !defined( SWDS )
|
||||||
if ( !Steam3Client().SteamUser() )
|
if ( !Steam3Client().SteamUser() )
|
||||||
{
|
{
|
||||||
@ -577,7 +577,7 @@ bool CBaseClientState::PrepareSteamConnectResponse( uint64 unGSSteamID, bool bGS
|
|||||||
Disconnect( "#GameUI_ServerRequireSteam", true );
|
Disconnect( "#GameUI_ServerRequireSteam", true );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
#endif
|
#endif*/
|
||||||
|
|
||||||
netadr_t checkAdr = adr;
|
netadr_t checkAdr = adr;
|
||||||
if ( adr.GetType() == NA_LOOPBACK || adr.IsLocalhost() )
|
if ( adr.GetType() == NA_LOOPBACK || adr.IsLocalhost() )
|
||||||
@ -592,12 +592,14 @@ bool CBaseClientState::PrepareSteamConnectResponse( uint64 unGSSteamID, bool bGS
|
|||||||
|
|
||||||
Steam3Client().GetAuthSessionTicket( steam3Cookie, sizeof(steam3Cookie), &steam3CookieLen, checkAdr.GetIPHostByteOrder(), checkAdr.GetPort(), unGSSteamID, bGSSecure );
|
Steam3Client().GetAuthSessionTicket( steam3Cookie, sizeof(steam3Cookie), &steam3CookieLen, checkAdr.GetIPHostByteOrder(), checkAdr.GetPort(), unGSSteamID, bGSSecure );
|
||||||
|
|
||||||
|
/*
|
||||||
if ( steam3CookieLen == 0 )
|
if ( steam3CookieLen == 0 )
|
||||||
{
|
{
|
||||||
COM_ExplainDisconnection( true, "#GameUI_ServerRequireSteam" );
|
COM_ExplainDisconnection( true, "#GameUI_ServerRequireSteam" );
|
||||||
Disconnect( "#GameUI_ServerRequireSteam", true );
|
Disconnect( "#GameUI_ServerRequireSteam", true );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
msg.WriteShort( steam3CookieLen );
|
msg.WriteShort( steam3CookieLen );
|
||||||
if ( steam3CookieLen > 0 )
|
if ( steam3CookieLen > 0 )
|
||||||
@ -936,6 +938,7 @@ bool CBaseClientState::ProcessConnectionlessPacket( netpacket_t *packet )
|
|||||||
int authprotocol = msg.ReadLong();
|
int authprotocol = msg.ReadLong();
|
||||||
uint64 unGSSteamID = 0;
|
uint64 unGSSteamID = 0;
|
||||||
bool bGSSecure = false;
|
bool bGSSecure = false;
|
||||||
|
/*
|
||||||
if ( authprotocol == PROTOCOL_STEAM )
|
if ( authprotocol == PROTOCOL_STEAM )
|
||||||
{
|
{
|
||||||
if ( msg.ReadShort() != 0 )
|
if ( msg.ReadShort() != 0 )
|
||||||
@ -962,7 +965,7 @@ bool CBaseClientState::ProcessConnectionlessPacket( netpacket_t *packet )
|
|||||||
Disconnect( "#GameUI_ServerInsecure", true );
|
Disconnect( "#GameUI_ServerInsecure", true );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
SendConnectPacket( challenge, authprotocol, unGSSteamID, bGSSecure );
|
SendConnectPacket( challenge, authprotocol, unGSSteamID, bGSSecure );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -740,7 +740,7 @@ bool CBaseServer::ProcessConnectionlessPacket(netpacket_t * packet)
|
|||||||
// RejectConnection( packet->from, "Cannot connect to a secure server while plug-ins are\nloaded on your client\n" );
|
// RejectConnection( packet->from, "Cannot connect to a secure server while plug-ins are\nloaded on your client\n" );
|
||||||
// break;
|
// break;
|
||||||
// }
|
// }
|
||||||
|
/*
|
||||||
if ( authProtocol == PROTOCOL_STEAM )
|
if ( authProtocol == PROTOCOL_STEAM )
|
||||||
{
|
{
|
||||||
int keyLen = msg.ReadShort();
|
int keyLen = msg.ReadShort();
|
||||||
@ -753,7 +753,7 @@ bool CBaseServer::ProcessConnectionlessPacket(netpacket_t * packet)
|
|||||||
|
|
||||||
ConnectClient( packet->from, protocol, challengeNr, clientChallenge, authProtocol, name, password, cdkey, keyLen ); // cd key is actually a raw encrypted key
|
ConnectClient( packet->from, protocol, challengeNr, clientChallenge, authProtocol, name, password, cdkey, keyLen ); // cd key is actually a raw encrypted key
|
||||||
}
|
}
|
||||||
else
|
else*/
|
||||||
{
|
{
|
||||||
msg.ReadString( cdkey, sizeof(cdkey) );
|
msg.ReadString( cdkey, sizeof(cdkey) );
|
||||||
ConnectClient( packet->from, protocol, challengeNr, clientChallenge, authProtocol, name, password, cdkey, strlen(cdkey) );
|
ConnectClient( packet->from, protocol, challengeNr, clientChallenge, authProtocol, name, password, cdkey, strlen(cdkey) );
|
||||||
@ -1466,6 +1466,7 @@ bool CBaseServer::CheckChallengeType( CBaseClient * client, int nNewUserID, neta
|
|||||||
// {
|
// {
|
||||||
// return true;
|
// return true;
|
||||||
// }
|
// }
|
||||||
|
return true;
|
||||||
|
|
||||||
client->SetSteamID( CSteamID() ); // set an invalid SteamID
|
client->SetSteamID( CSteamID() ); // set an invalid SteamID
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user