Spectate: Only alter spectate modes on CSS.

CSGO doesnt have any broken spectate modes.
This commit is contained in:
zaCade 2019-03-11 02:19:31 +01:00
parent c28af04bbd
commit 2fad81dc0e

View File

@ -50,6 +50,8 @@ public void OnMapStart()
} }
public void OnClientSettingsChanged(int client) public void OnClientSettingsChanged(int client)
{
if(GetEngineVersion() == Engine_CSS)
{ {
static char sSpecMode[8]; static char sSpecMode[8];
GetClientInfo(client, "cl_spec_mode", sSpecMode, sizeof(sSpecMode)); GetClientInfo(client, "cl_spec_mode", sSpecMode, sizeof(sSpecMode));
@ -64,6 +66,7 @@ public void OnClientSettingsChanged(int client)
SetEntProp(client, Prop_Send, "m_iObserverMode", OBS_MODE_ROAMING); SetEntProp(client, Prop_Send, "m_iObserverMode", OBS_MODE_ROAMING);
} }
} }
}
public Action Command_Spectate(int client, int argc) public Action Command_Spectate(int client, int argc)
{ {