mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-09-29 23:57:29 +00:00
20 lines
707 B
C#
20 lines
707 B
C#
using Content.Shared.Humanoid;
|
|
|
|
namespace Content.Shared.Body;
|
|
|
|
public abstract partial class SharedVisualBodySystem
|
|
{
|
|
private void InitializeInitial()
|
|
{
|
|
SubscribeLocalEvent<VisualBodyComponent, MapInitEvent>(OnVisualMapInit, after: [typeof(InitialBodySystem)]);
|
|
}
|
|
|
|
private void OnVisualMapInit(Entity<VisualBodyComponent> ent, ref MapInitEvent args)
|
|
{
|
|
if (!TryComp<HumanoidProfileComponent>(ent, out var humanoidProfile))
|
|
return;
|
|
|
|
ApplyAppearanceTo(ent.AsNullable(), HumanoidCharacterAppearance.DefaultWithSpecies(humanoidProfile.Species, humanoidProfile.Sex), humanoidProfile.Sex, humanoidProfile.Height); // Delta V - Height Argument Added
|
|
}
|
|
}
|