engine: client: lie about sv_version for GoldSrc protocol
This commit is contained in:
parent
3320f776ce
commit
869578f1ba
1 changed files with 28 additions and 18 deletions
|
@ -2133,7 +2133,7 @@ and sent it back to the server
|
|||
*/
|
||||
void CL_ParseCvarValue( sizebuf_t *msg, const qboolean ext, const connprotocol_t proto )
|
||||
{
|
||||
const char *cvarName, *response;
|
||||
const char *cvarName, *response = NULL;
|
||||
convar_t *cvar;
|
||||
int requestID;
|
||||
|
||||
|
@ -2141,6 +2141,15 @@ void CL_ParseCvarValue( sizebuf_t *msg, const qboolean ext, const connprotocol_t
|
|||
requestID = MSG_ReadLong( msg );
|
||||
|
||||
cvarName = MSG_ReadString( msg );
|
||||
|
||||
if( proto == PROTO_GOLDSRC )
|
||||
{
|
||||
if( !Q_stricmp( cvarName, "sv_version" ))
|
||||
response = "1.1.2.2/Stdio,48,10211";
|
||||
}
|
||||
|
||||
if( !response )
|
||||
{
|
||||
cvar = Cvar_FindVar( cvarName );
|
||||
|
||||
if( cvar )
|
||||
|
@ -2162,6 +2171,7 @@ void CL_ParseCvarValue( sizebuf_t *msg, const qboolean ext, const connprotocol_t
|
|||
{
|
||||
response = "Bad CVAR request";
|
||||
}
|
||||
}
|
||||
|
||||
if( ext )
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue