Fixed railgun aiming, fixed EntityEvent not being sent if a character is killed by something else than health dropping to zero

This commit is contained in:
Regalis
2017-01-14 14:45:19 +02:00
parent 9b03b2bcc1
commit fdbdf9638f
3 changed files with 16 additions and 10 deletions

View File

@@ -198,6 +198,7 @@ namespace Barotrauma.Items.Components
return;
}
character.ViewTarget = focusTarget;
if (character == Character.Controlled && cam != null)
{
Lights.LightManager.ViewTarget = focusTarget;