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

@ -51,6 +51,8 @@ public void OnMapStart()
public void OnClientSettingsChanged(int client)
{
if(GetEngineVersion() == Engine_CSS)
{
static char sSpecMode[8];
GetClientInfo(client, "cl_spec_mode", sSpecMode, sizeof(sSpecMode));
@ -63,6 +65,7 @@ public void OnClientSettingsChanged(int client)
if(IsClientInGame(client) && !IsPlayerAlive(client))
SetEntProp(client, Prop_Send, "m_iObserverMode", OBS_MODE_ROAMING);
}
}
}
public Action Command_Spectate(int client, int argc)