MCPcopy Create free account
hub / github.com/assaultcube/AC / spectate

Function spectate

source/src/clientgame.cpp:1729–1734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1727}
1728
1729void spectate()
1730{
1731 if(m_demo || editmode) return;
1732 if(!team_isspect(player1->team)) addmsg(SV_SWITCHTEAM, "ri", TEAM_SPECT);
1733 else tryrespawn();
1734}
1735COMMAND(spectate, "");
1736
1737void setfollowplayer(int cn)

Callers

nothing calls this directly

Calls 2

addmsgFunction · 0.85
tryrespawnFunction · 0.85

Tested by

no test coverage detected