Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
BotoX | 1671ef96de | |
BotoX | 72b296661d | |
BotoX | 67e98dc4f5 |
|
@ -1788,11 +1788,17 @@ bool CBaseClientState::ProcessGetCvarValue( SVC_GetCvarValue *msg )
|
|||
const ConVar *pVar = g_pCVar->FindVar( msg->m_szCvarName );
|
||||
if ( pVar )
|
||||
{
|
||||
ConVarRef sv_cheats( "sv_cheats" );
|
||||
if ( pVar->IsFlagSet( FCVAR_SERVER_CANNOT_QUERY ) )
|
||||
{
|
||||
// The server isn't allowed to query this.
|
||||
returnMsg.m_eStatusCode = eQueryCvarValueStatus_CvarProtected;
|
||||
}
|
||||
else if ( pVar->IsFlagSet( FCVAR_CHEAT ) && sv_cheats.GetBool() == 0 )
|
||||
{
|
||||
// Return default value if cheats are off and this is a cheat cvar
|
||||
returnMsg.m_szCvarValue = pVar->GetDefault();
|
||||
}
|
||||
else
|
||||
{
|
||||
returnMsg.m_eStatusCode = eQueryCvarValueStatus_ValueIntact;
|
||||
|
|
|
@ -1152,11 +1152,13 @@ void CClientState::AddCustomFile( int slot, const char *resourceFile)
|
|||
return; // resource file doesn't exits
|
||||
}
|
||||
|
||||
/*
|
||||
if ( g_pFileSystem->Size( resourceFile ) > MAX_CUSTOM_FILE_SIZE )
|
||||
{
|
||||
Msg("Customization file '%s' is too big ( >%i bytes).\n", resourceFile, MAX_CUSTOM_FILE_SIZE );
|
||||
return; // resource file doesn't exits
|
||||
}
|
||||
*/
|
||||
|
||||
CRC32_t crcValue;
|
||||
|
||||
|
|
|
@ -397,7 +397,7 @@ bool CCvarUtilities::IsCommand( const CCommand &args )
|
|||
}
|
||||
|
||||
// Allow cheat commands in singleplayer, debug, or multiplayer with sv_cheats on
|
||||
if ( v->IsFlagSet( FCVAR_CHEAT ) )
|
||||
if ( v->IsFlagSet( FCVAR_CHEAT ) && false )
|
||||
{
|
||||
if ( !Host_IsSinglePlayerGame() && !CanCheat()
|
||||
#if !defined(SWDS)
|
||||
|
@ -529,7 +529,7 @@ bool CCvarUtilities::IsValidToggleCommand( const char *cmd )
|
|||
}
|
||||
|
||||
// Allow cheat commands in singleplayer, debug, or multiplayer with sv_cheats on
|
||||
if ( v->IsFlagSet( FCVAR_CHEAT ) )
|
||||
if ( v->IsFlagSet( FCVAR_CHEAT ) && false )
|
||||
{
|
||||
if ( !Host_IsSinglePlayerGame() && !CanCheat()
|
||||
#if !defined(SWDS) && !defined(_XBOX)
|
||||
|
|
|
@ -169,7 +169,8 @@ bool C_CS_PlayerResource::IsPlayerSpotted( int iIndex )
|
|||
if ( !IsConnected( iIndex ) )
|
||||
return false;
|
||||
|
||||
return m_bPlayerSpotted[iIndex];
|
||||
return true;
|
||||
//return m_bPlayerSpotted[iIndex];
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue