- Enemies with the "attack when provoked" setting only start attacking humans and structures if the attacker is a non-AI character or has a HumanAIController.

- Characters that launch a turret get assigned as the user of the projectile (-> shooting watchers with a railgun makes them attack).
- Increased watchers' attack range.
This commit is contained in:
Joonas Rikkonen
2017-06-12 18:56:33 +03:00
parent c7d22ecb47
commit ed0a5f0f66
4 changed files with 13 additions and 7 deletions
@@ -60,6 +60,8 @@ namespace Barotrauma.Items.Components
{
if (character != null && !characterUsable) return false;
User = character;
Launch(new Vector2(
(float)Math.Cos(item.body.Rotation),
(float)Math.Sin(item.body.Rotation)) * launchImpulse * item.body.Mass);