|
|
@ -202,10 +202,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
$this->Socket->Write( self::A2S_INFO, "Source Engine Query\0" );
|
|
|
|
$this->Socket->Write( self::A2S_INFO, "Source Engine Query\0" );
|
|
|
|
$Buffer = $this->Socket->Read( );
|
|
|
|
$Buffer = $this->Socket->Read( );
|
|
|
|
|
|
|
|
|
|
|
|
$Type = $Buffer->GetByte( );
|
|
|
|
$Type = $Buffer->GetByte( );
|
|
|
|
$Server = [];
|
|
|
|
$Server = [];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( $Type === self::S2A_CHALLENGE )
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
$this->Challenge = $Buffer->Get( 4 );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$this->Socket->Write( self::A2S_INFO, "Source Engine Query\0" . $this->Challenge );
|
|
|
|
|
|
|
|
$Buffer = $this->Socket->Read( );
|
|
|
|
|
|
|
|
$Type = $Buffer->GetByte( );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Old GoldSource protocol, HLTV still uses it
|
|
|
|
// Old GoldSource protocol, HLTV still uses it
|
|
|
|
if( $Type === self::S2A_INFO_OLD && $this->Socket->Engine === self::GOLDSOURCE )
|
|
|
|
if( $Type === self::S2A_INFO_OLD && $this->Socket->Engine === self::GOLDSOURCE )
|
|
|
|
{
|
|
|
|
{
|
|
|
|