MCPcopy Create free account
hub / github.com/ddnet/ddnet / ForcePause

Method ForcePause

src/game/server/player.cpp:873–885  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

871}
872
873int CPlayer::ForcePause(int Time)
874{
875 m_ForcePauseTime = Server()->Tick() + Server()->TickSpeed() * Time;
876
877 if(g_Config.m_SvPauseMessages)
878 {
879 char aBuf[128];
880 str_format(aBuf, sizeof(aBuf), "'%s' was force-paused for %ds", Server()->ClientName(m_ClientId), Time);
881 GameServer()->SendChat(-1, TEAM_ALL, aBuf);
882 }
883
884 return Pause(PAUSE_SPEC, true);
885}
886
887int CPlayer::IsPaused() const
888{

Callers 1

ConForcePauseMethod · 0.80

Calls 6

str_formatFunction · 0.85
TickSpeedMethod · 0.80
ClientNameMethod · 0.80
ServerClass · 0.50
TickMethod · 0.45
SendChatMethod · 0.45

Tested by

no test coverage detected