@@ -19,6 +19,7 @@ using Content.Shared.Weapons.Melee.Events;
|
|||||||
using Robust.Shared.Random;
|
using Robust.Shared.Random;
|
||||||
using Content.Shared.Verbs;
|
using Content.Shared.Verbs;
|
||||||
using Robust.Shared.Utility;
|
using Robust.Shared.Utility;
|
||||||
|
using Content.Shared.Hands.Components;
|
||||||
|
|
||||||
namespace Content.Server.Forensics
|
namespace Content.Server.Forensics
|
||||||
{
|
{
|
||||||
@@ -32,7 +33,7 @@ namespace Content.Server.Forensics
|
|||||||
|
|
||||||
public override void Initialize()
|
public override void Initialize()
|
||||||
{
|
{
|
||||||
SubscribeLocalEvent<FingerprintComponent, ContactInteractionEvent>(OnInteract);
|
SubscribeLocalEvent<HandsComponent, ContactInteractionEvent>(OnInteract);
|
||||||
SubscribeLocalEvent<FingerprintComponent, MapInitEvent>(OnFingerprintInit, after: new[] { typeof(BloodstreamSystem) });
|
SubscribeLocalEvent<FingerprintComponent, MapInitEvent>(OnFingerprintInit, after: new[] { typeof(BloodstreamSystem) });
|
||||||
// The solution entities are spawned on MapInit as well, so we have to wait for that to be able to set the DNA in the bloodstream correctly without ResolveSolution failing
|
// The solution entities are spawned on MapInit as well, so we have to wait for that to be able to set the DNA in the bloodstream correctly without ResolveSolution failing
|
||||||
SubscribeLocalEvent<DnaComponent, MapInitEvent>(OnDNAInit, after: new[] { typeof(BloodstreamSystem) });
|
SubscribeLocalEvent<DnaComponent, MapInitEvent>(OnDNAInit, after: new[] { typeof(BloodstreamSystem) });
|
||||||
@@ -60,7 +61,7 @@ namespace Content.Server.Forensics
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnInteract(EntityUid uid, FingerprintComponent component, ContactInteractionEvent args)
|
private void OnInteract(EntityUid uid, HandsComponent component, ContactInteractionEvent args)
|
||||||
{
|
{
|
||||||
ApplyEvidence(uid, args.Other);
|
ApplyEvidence(uid, args.Other);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user