Beispiel #1
0
 private void PreventCollision(EntityUid uid, SharedProjectileComponent component, PreventCollideEvent args)
 {
     if (component.IgnoreShooter && args.BodyB.Owner.Uid == component.Shooter)
     {
         args.Cancel();
         return;
     }
 }
Beispiel #2
0
        public void SetShooter(SharedProjectileComponent component, EntityUid uid)
        {
            if (component.Shooter == uid)
            {
                return;
            }

            component.Shooter = uid;
            Dirty(component);
        }