Cannot respawn inside other players, unless all are blocked.

This commit is contained in:
William Moberg
2016-02-17 14:54:59 +01:00
parent 969e7cb0d5
commit 23bb1a6405
5 changed files with 143 additions and 24 deletions
+2 -2
View File
@@ -3,7 +3,7 @@
//This should be set by the config anyway.
float PlayerSpawnSystem::m_RespawnTime = 15.0f;
PlayerSpawnSystem::PlayerSpawnSystem(SystemParams params)
PlayerSpawnSystem::PlayerSpawnSystem(SystemParams params)
: System(params)
, m_Timer(0.f)
{
@@ -49,7 +49,7 @@ void PlayerSpawnSystem::Update(double dt)
}
// Spawn the player!
EntityWrapper player = SpawnerSystem::Spawn(spawner);
EntityWrapper player = SpawnerSystem::Spawn(spawner, EntityWrapper::Invalid, "Player");
// Set the player team affiliation
player["Team"]["Team"] = req.Team;