Skip to content

Commit

Permalink
Fix coach game prop when reconnect or calling !stop from match. (#802)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhlexPlexico authored and nickdnk committed Jul 31, 2022
1 parent 40882ef commit 6f242ce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripting/get5/teamlogic.sp
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ public void MoveClientToCoach(int client) {
LogDebug("Moving %L directly to coach slot", client);
SwitchPlayerTeam(client, CS_TEAM_SPECTATOR);
UpdateCoachTarget(client, csTeam);
// Need to set to avoid third person view bug.
SetEntProp(client, Prop_Send, "m_iObserverMode", 4);
} else {
LogDebug("Moving %L indirectly to coach slot via coach cmd", client);
g_MovingClientToCoach[client] = true;
Expand Down

0 comments on commit 6f242ce

Please sign in to comment.