Всякое (#271)
* - tweak: Something. * - tweak: Tweaks. * - tweak: Death to autoklickers. * - tweak: Warop tweak. * - tweak: Neuro tweaks. * - add: Translate animal accents. * - fix: Embeddable projectiles miss corpses. * - tweak: More sniper ammo. * - tweak: Free clothes in uplink. * - tweak: Less speed up from stuff. * - tweak: Ammo counter and toggleable clothing stuff. * - add: More emag stuff. * - tweak: No neuro blunt stamina damage. * - fix: Fix name. * - fix: Fix desc.
This commit is contained in:
@@ -4,8 +4,11 @@ using Content.Shared.Hands.EntitySystems;
|
||||
using Content.Shared.Implants.Components;
|
||||
using Content.Shared.Interaction.Events;
|
||||
using Content.Shared.Item;
|
||||
using Content.Shared.Mobs;
|
||||
using Content.Shared.Mobs.Components;
|
||||
using Content.Shared.Physics;
|
||||
using Content.Shared.Popups;
|
||||
using Content.Shared.Projectiles;
|
||||
using Content.Shared.Throwing;
|
||||
using Robust.Shared.Audio.Systems;
|
||||
using Robust.Shared.Containers;
|
||||
@@ -31,6 +34,14 @@ public sealed class HardlightSpearSystem : EntitySystem
|
||||
SubscribeLocalEvent<HardlightSpearComponent, GettingPickedUpAttemptEvent>(OnPickupAttempt);
|
||||
SubscribeLocalEvent<HardlightSpearComponent, PreventCollideEvent>(OnPreventCollision);
|
||||
SubscribeLocalEvent<SubdermalImplantComponent, ActivateHardlightSpearImplantEvent>(OnImplantActivate);
|
||||
SubscribeLocalEvent<MobStateComponent, PreventCollideEvent>(OnMobStatePreventCollision);
|
||||
}
|
||||
|
||||
private void OnMobStatePreventCollision(Entity<MobStateComponent> ent, ref PreventCollideEvent args)
|
||||
{
|
||||
if (ent.Comp.CurrentState == MobState.Dead && HasComp<EmbeddableProjectileComponent>(args.OtherEntity) &&
|
||||
HasComp<ThrownItemComponent>(args.OtherEntity))
|
||||
args.Cancelled = true;
|
||||
}
|
||||
|
||||
private void OnPreventCollision(EntityUid uid, HardlightSpearComponent component, ref PreventCollideEvent args)
|
||||
|
||||
Reference in New Issue
Block a user