Proto-kinetic crusher (#16277)
Co-authored-by: AJCM-git <60196617+AJCM-git@users.noreply.github.com>
This commit is contained in:
@@ -14,7 +14,6 @@ public sealed class ProjectileSystem : SharedProjectileSystem
|
||||
public override void Initialize()
|
||||
{
|
||||
base.Initialize();
|
||||
SubscribeLocalEvent<ProjectileComponent, ComponentHandleState>(OnHandleState);
|
||||
SubscribeNetworkEvent<ImpactEffectEvent>(OnProjectileImpact);
|
||||
}
|
||||
|
||||
@@ -54,11 +53,4 @@ public sealed class ProjectileSystem : SharedProjectileSystem
|
||||
_player.Play(ent, anim, "impact-effect");
|
||||
}
|
||||
}
|
||||
|
||||
private void OnHandleState(EntityUid uid, ProjectileComponent component, ref ComponentHandleState args)
|
||||
{
|
||||
if (args.Current is not ProjectileComponentState state) return;
|
||||
component.Shooter = state.Shooter;
|
||||
component.IgnoreShooter = state.IgnoreShooter;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user