Revert "Hotfix ExplosionLaunchedComponent"
This reverts commit 6b98e65456.
This commit is contained in:
@@ -16,9 +16,6 @@ namespace Content.Server.Explosion.Components
|
|||||||
|
|
||||||
var sourceLocation = eventArgs.Source;
|
var sourceLocation = eventArgs.Source;
|
||||||
var targetLocation = eventArgs.Target.Transform.Coordinates;
|
var targetLocation = eventArgs.Target.Transform.Coordinates;
|
||||||
|
|
||||||
if (sourceLocation.Equals(targetLocation)) return;
|
|
||||||
|
|
||||||
var direction = (targetLocation.ToMapPos(Owner.EntityManager) - sourceLocation.ToMapPos(Owner.EntityManager)).Normalized;
|
var direction = (targetLocation.ToMapPos(Owner.EntityManager) - sourceLocation.ToMapPos(Owner.EntityManager)).Normalized;
|
||||||
|
|
||||||
var throwForce = eventArgs.Severity switch
|
var throwForce = eventArgs.Severity switch
|
||||||
@@ -27,7 +24,7 @@ namespace Content.Server.Explosion.Components
|
|||||||
ExplosionSeverity.Light => 20,
|
ExplosionSeverity.Light => 20,
|
||||||
_ => 0,
|
_ => 0,
|
||||||
};
|
};
|
||||||
Owner.TryThrow(direction, throwForce);
|
Owner.TryThrow(direction * throwForce);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user