Aiming is disabled when unconscious/stunned, the range of fire lightsources isn't randomized to reduce the amount of required convexhull updates

This commit is contained in:
Regalis
2016-05-19 19:49:31 +03:00
parent a477dad1b2
commit 7113a154fe
3 changed files with 4 additions and 2 deletions

View File

@@ -973,6 +973,8 @@ namespace Barotrauma
{
Holdable holdable = item.GetComponent<Holdable>();
if (character.IsUnconscious || character.Stun > 0.0f) aim = false;
//calculate the handle positions
Matrix itemTransfrom = Matrix.CreateRotationZ(item.body.Rotation);
Vector2[] transformedHandlePos = new Vector2[2];