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

Method ForceSpawn

src/game/server/player.cpp:640–647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

638}
639
640CCharacter *CPlayer::ForceSpawn(vec2 Pos)
641{
642 m_Spawning = false;
643 m_pCharacter = new(m_ClientId) CCharacter(&GameServer()->m_World, GameServer()->GetLastPlayerInput(m_ClientId));
644 m_pCharacter->Spawn(this, Pos);
645 m_Team = TEAM_GAME;
646 return m_pCharacter;
647}
648
649void CPlayer::SetTeam(int Team, bool DoChatMsg)
650{

Callers 2

MatchCharacterMethod · 0.80
TEST_FFunction · 0.80

Calls 2

GetLastPlayerInputMethod · 0.80
SpawnMethod · 0.80

Tested by 1

TEST_FFunction · 0.64