DeathExplosion is now an XML file, changed PlayerDeathSystem accordingly. The effect should show as soon as the explosioneffect-fix is merged into master. TODO: remove the test

This commit is contained in:
verysecrethero
2016-02-02 17:18:12 +01:00
parent 7236da09b4
commit 5e472cd69c
6 changed files with 114 additions and 55 deletions
-1
View File
@@ -21,7 +21,6 @@ bool HealthSystem::OnPlayerDamaged(Events::PlayerDamage& e)
if (health <= 0.0) {
Events::PlayerDeath ePlayerDeath;
ePlayerDeath.PlayerID = e.Player.ID;
ePlayerDeath.Player = e.Player;
m_EventBroker->Publish(ePlayerDeath);
//Note: we will delete the entity in PlayerDeathSystem