Update content vectors to numerics (#17759)

This commit is contained in:
metalgearsloth
2023-07-08 14:08:32 +10:00
committed by GitHub
parent 15772478c9
commit 68480af109
383 changed files with 978 additions and 575 deletions

View File

@@ -28,12 +28,14 @@ namespace Content.Server.Damage.Systems
private void HandleCollide(EntityUid uid, DamageOnHighSpeedImpactComponent component, ref StartCollideEvent args)
{
if (!EntityManager.HasComponent<DamageableComponent>(uid)) return;
if (!EntityManager.HasComponent<DamageableComponent>(uid))
return;
var otherBody = args.OtherEntity;
var speed = args.OurBody.LinearVelocity.Length;
var speed = args.OurBody.LinearVelocity.Length();
if (speed < component.MinimumSpeed) return;
if (speed < component.MinimumSpeed)
return;
SoundSystem.Play(component.SoundHit.GetSound(), Filter.Pvs(otherBody), otherBody, AudioHelpers.WithVariation(0.125f).WithVolume(-0.125f));