Enabled server broadcasting PlayerDamage events to other players to make damage indicators work

This commit is contained in:
2016-02-12 07:03:14 +01:00
parent cc422cf73a
commit bb66f95d43
6 changed files with 46 additions and 6 deletions
+5 -2
View File
@@ -18,12 +18,15 @@ bool DamageIndicatorSystem::OnPlayerDamage(Events::PlayerDamage& e)
return false;
}
if (e.Victim != LocalPlayer) {
//if (e.Victim != LocalPlayer) {
// return false;
//}
if (e.Victim != LocalPlayer && !e.Victim.IsChildOf(LocalPlayer)) {
return false;
}
if (!e.Inflictor.Valid() || !e.Victim.Valid()) {
return false;
return false;
}
//grab players direction