Healthbar on player

This commit is contained in:
viktorljung
2016-01-24 22:21:10 +01:00
parent 0c557317a9
commit 7e92d6f53f
4 changed files with 45 additions and 10 deletions
+3 -1
View File
@@ -52,7 +52,9 @@ void RenderSystem::fillModels(std::list<std::shared_ptr<RenderJob>>& jobs)
// Don't render the local player
if (entity == m_LocalPlayer || entity.IsChildOf(m_LocalPlayer)) {
continue;
if (!entity.HasComponent("HealthHUD")) { //Should work but needs to be fixed. Should only render the things "childed" to the local player camera
continue;
}
}
Model* model;