Add custom paper for forensic scanner output (#16221)

Co-authored-by: Eoin Mcloughlin <helloworld@eoinrul.es>
This commit is contained in:
eoineoineoin
2023-05-31 10:09:05 +01:00
committed by GitHub
parent ee2fea7520
commit c8a2fb6cd4
8 changed files with 259 additions and 2 deletions

View File

@@ -188,7 +188,7 @@ namespace Content.Server.Forensics
}
// Spawn a piece of paper.
var printed = EntityManager.SpawnEntity("Paper", Transform(uid).Coordinates);
var printed = EntityManager.SpawnEntity(component.MachineOutput, Transform(uid).Coordinates);
_handsSystem.PickupOrDrop(args.Session.AttachedEntity, printed, checkActionBlocker: false);
if (!TryComp<PaperComponent>(printed, out var paper))